Flickr photo search

GET https://api.api.sh/flickr/v1/search
1 credit / call social try it in the playground →

Flickr photos matching text or tags, 25 a page: id, link, title, description, license, owner, faves, comments, likes and every image size with its URL and dimensions. Filter by license, media type, taken or upload dates, orientation, dominant colour, style, minimum size, content type (photos, screenshots, art), safe-search level, a place (lat/lon with radius), Flickr Commons and photos in galleries (the filters applied are echoed in applied_filters); sort by relevance, date or interestingness. Pass next_page back as page; null on the last page.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
q string Search text (q or tags is required). Example: sunset
tags string Comma-separated tags to match.
license string Comma-separated Flickr license ids: 0 All Rights Reserved, 1 CC BY-NC-SA 2.0, 2 CC BY-NC 2.0, 3 CC BY-NC-ND 2.0, 4 CC BY 2.0, 5 CC BY-SA 2.0, 6 CC BY-ND 2.0, 7 No known copyright restrictions, 8 US Government Work, 9 CC0, 10 Public Domain Mark, 11-16 the CC 4.0 licenses (BY, BY-SA, BY-ND, BY-NC, BY-NC-SA, BY-NC-ND). Example: 4,5,9,10
sort relevance | date-posted-desc | date-posted-asc | date-taken-desc | date-taken-asc | interestingness-desc Sort order. Example: relevance
media all | photos | videos all (default), photos or videos. Example: all
min_taken_date string Taken on or after (YYYY-MM-DD).
max_taken_date string Taken on or before (YYYY-MM-DD).
min_upload_date string Uploaded on or after (YYYY-MM-DD).
max_upload_date string Uploaded on or before (YYYY-MM-DD).
orientation string Comma-separated: landscape, portrait, square, panorama.
color string Dominant colour(s), comma-separated: red, dark_orange, orange, yellow, school_bus_yellow, green, lime, cyan, blue, violet, pink, pale_pink, white, gray, black.
style string Comma-separated: blackandwhite, depthoffield, minimalism, pattern.
min_width integer Minimum width in pixels.
min_height integer Minimum height in pixels.
content_type string Comma-separated: photos, screenshots, art, virtual.
safe_search safe | moderate | restricted safe, moderate or restricted.
lat number Latitude of a place to search around (with lon).
lon number Longitude of a place to search around (with lat).
radius_km number Radius around lat/lon in km (default 5, max 32).
is_commons boolean Only photos from The Commons (public-domain archives).
in_gallery boolean Only photos that appear in a gallery.
page integer Page number, starting at 1. Example: 1

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/flickr/v1/search?q=sunset" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.