APIs / Social media / Flickr
1 credit per call4 endpointsChecked working 6 Dec 2026
Flickr API
Flickr API for photo search by text, tags, licence and user, plus photo details, groups and user photostreams as JSON. 1 credit per call.
curl "https://api.perceptlayer.com/v1/flickr/search?text=mountain+sunrise&per_page=3" \
-H "X-API-Key: $API_KEY"Playground
Run this API
curl "https://api.perceptlayer.com/v1/flickr/search?text=mountain+sunrise&per_page=3" \
-H "X-API-Key: $API_KEY"Flickr · 4 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/flickr/group | group_id+3 optionalNeeds terms | infopool | 1 credit |
GET/v1/flickr/photo | photo_idNeeds terms | idownertitledescriptiondate_takendate_upload+8 more | 1 credit |
GET/v1/flickr/search | text+9 optionalNeeds terms | idownertitledescriptiontagsviews+8 more | 1 credit |
GET/v1/flickr/user | user_id+2 optionalNeeds terms | profilephotos | 1 credit |
Overview
About the Flickr API
What you can get
The Flickr API returns public Flickr data as JSON through 4 endpoints. These are restricted endpoints: the restricted-endpoint terms apply, and they don't permit collecting personal data without a lawful basis or using it to contact people.
- Search:
searchtakestext, withpage,per_page,sort(relevance, date-posted-desc or interestingness-desc),tags,user_id,group_id,license,safe_searchandcontent_type. - Photos:
phototakes aphoto_id. - Groups and users:
grouptakes agroup_id, withpage,per_pageandtags;usertakes auser_id, withpageandper_page.
How a call works
Search by text: GET /v1/flickr/search?text=mountain+sunrise&per_page=3 with your key in the X-API-Key header. Page with page and per_page. Every successful call costs 1 credit; failed calls cost nothing.
More social media APIs
Use cases
Find photos by topic, tag or licence
Use the Flickr API to find photos by topic, tag or licenceFollow a group's photo pool
Use the Flickr API to follow a group's photo poolCollect photo details for a research dataset
Use the Flickr API to collect photo details for a research datasetBrowse a user's public photos
Use the Flickr API to browse a user's public photosFAQ
Questions
Do I need a Flickr API key?
No. You call this Flickr API with your Perceptlayer key in the `X-API-Key` header, so there's no Flickr app to register. You do need to accept the restricted-endpoint terms first.
How much does the Flickr API cost?
Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Is this the official Flickr API?
No. Perceptlayer is an independent service and is not affiliated with Flickr. It returns Flickr data as JSON with a Perceptlayer key, so there is no Flickr developer account, app review or partner approval to get first. It only reads data: if Flickr has an official API and you need to act on your own Flickr account, such as posting, managing orders or reading private data, use that one.
Should I build a Flickr scraper instead?
You can, but a Flickr scraper is code you maintain: page changes break it, requests get blocked, and Flickr's terms govern how you collect data. The Flickr API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.
Try the Flickr API with 100 free credits
No credit card. Failed calls are never billed.