Gallery Search

GET https://api.imgur.com/3/gallery/search/{{sort}}/{{window}}/{{page}}?q=cats

Search the gallery with a given query string.

Parameters

KeyRequiredValue
sortoptionaltime | viral | top - defaults to time
windowoptionalChange the date range of the request if the sort is 'top', day | week | month | year | all, defaults to all.
pageoptionalinteger - the data paging number

Simple Search Query Parameters

KeyValue
qQuery string (note: if advanced search parameters are set, this query string is ignored). This parameter also supports boolean operators (AND, OR, NOT) and indices (tag: user: title: ext: subreddit: album: meme:). An example compound query would be 'title: cats AND dogs ext: gif'

Advanced Search Query Parameters

KeyValue
q_allSearch for all of these words (and)
q_anySearch for any of these words (or)
q_exactlySearch for exactly this word or phrase
q_notExclude results matching this
q_typeShow results for any file type, jpg | png | gif | anigif (animated gif) | album
qsizepxSize ranges, small (500 pixels square or less) | med (500 to 2,000 pixels square) | big (2,000 to 5,000 pixels square) | lrg (5,000 to 10,000 pixels square) | huge (10,000 square pixels and above)

Request Params

KeyDatatypeRequiredDescription
qstring

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring