Gallery Search
GET https://api.imgur.com/3/gallery/search/{{sort}}/{{window}}/{{page}}?q=cats
Search the gallery with a given query string.
Parameters
Key | Required | Value |
---|
sort | optional | time | viral | top - defaults to time |
window | optional | Change the date range of the request if the sort is 'top', day | week | month | year | all, defaults to all. |
page | optional | integer - the data paging number |
Simple Search Query Parameters
Key | Value |
---|
q | Query 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
Key | Value |
---|
q_all | Search for all of these words (and) |
q_any | Search for any of these words (or) |
q_exactly | Search for exactly this word or phrase |
q_not | Exclude results matching this |
q_type | Show results for any file type, jpg | png | gif | anigif (animated gif) | album |
qsizepx | Size 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
Key | Datatype | Required | Description |
---|
q | string | | |
Key | Datatype | Required | Description |
---|
Authorization | string | | |