Imgur: Search
Search from Imgur as JSON. 1 credit per successful call.
GET /v1/imgur/searchNeeds terms
Note
This endpoint needs the restricted-endpoint terms, which you can accept in your dashboard.
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
q | string | Required | Up to 200 characters |
page | integer | Optional | Any |
sort | string | Optional | -time, -viral |
Example request
curl "https://api.perceptlayer.com/v1/imgur/search?q=cats" \
-H "X-API-Key: $API_KEY"Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.posts has these 14 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
id | string |
title | string |
view_count | integer |
upvote_count | integer |
downvote_count | integer |
point_count | integer |
comment_count | integer |
favorite_count | integer |
image_count | integer |
is_album | boolean |
is_mature | boolean |
cover_id | string |
created_at | string |
url | url |