# Flickr API

Search public photos and videos, or read a creator’s uploads, with metadata for organizing visual research.

Use a Flickr NSID for the uploads of a known creator. A display name is not the same identifier.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "flickr", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/flickr-api](https://everyinfra.com/en/flickr-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
Search Flickr for photos or videos that match a `keyword`. Get title, image link, tags, photographer name and ID, capture date and upload date. `taken_at` comes from EXIF, can be empty and differs from upload time. A link grants no reuse rights.
- Sync delivery · Price: $24 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Specifies the search term for photos or videos in the search action. The returned media scope is controlled by media_type, and this parameter does not perform exact author display name lookups.
  - `media_type` (optional): Filters media scope with allowed values: photos (photos only), videos (videos only), or all (all media). Defaults to photos in search and all in user_posts. This parameter controls query filtering and does not determine whether raw source files are downloaded.
  - `sort` (optional): Sorts photos and videos in search (defaults to relevance) and user_posts (defaults to date-posted-desc). Supported values include relevance, interestingness-desc, interestingness-asc, date-posted-desc, date-posted-asc, date-taken-desc, and date-taken-asc. Upload dates (date-posted) and capture dates (date-taken) represent distinct attributes and cannot be used interchangeably.
- Returns fields: id, url, title, image_url, media_type, author_name, author_id, tags, taken_at, posted_at, platform
- Capability page: [https://everyinfra.com/en/flickr-api/search](https://everyinfra.com/en/flickr-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/flickr-api/search.md)

### user_posts — Posts by user
List a Flickr member's photos and videos by their NSID in `user_id`. Get titles, image links, tags, capture date and upload date. Pass the NSID from a search result's `author_id`, not a display name. Private albums are not included.
- Sync delivery · Price: $24 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `user_id` (required): Specifies the target Flickr user's NSID, such as 12345678@N04, which can be retrieved from the author_id field of search results. It does not accept display names, vanity profile aliases, or full profile URLs.
  - `author_id` (optional): Specifies the target Flickr NSID in the format 12345678@N04. This is an internal NSID—not a username—and should be extracted from the author_id field returned in search responses.
  - `media_type` (optional): Filters media scope with allowed values: photos (photos only), videos (videos only), or all (all media). Defaults to photos in search and all in user_posts. This parameter controls query filtering and does not determine whether raw source files are downloaded.
  - `sort` (optional): Sorts photos and videos in search (defaults to relevance) and user_posts (defaults to date-posted-desc). Supported values include relevance, interestingness-desc, interestingness-asc, date-posted-desc, date-posted-asc, date-taken-desc, and date-taken-asc. Upload dates (date-posted) and capture dates (date-taken) represent distinct attributes and cannot be used interchangeably.
  - `username` (optional): Acts as a compatibility alias for user_id in user_posts. It still requires a valid Flickr NSID rather than a human-readable display name, and public user_posts requests must still include the required user_id parameter.
- Returns fields: id, url, title, image_url, media_type, author_name, author_id, tags, taken_at, posted_at, platform
- Capability page: [https://everyinfra.com/en/flickr-api/user_posts](https://everyinfra.com/en/flickr-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/flickr-api/user_posts.md)

## Flickr API questions

### What can I retrieve with the Flickr API?

Set `platform` to `flickr`. The current catalog lists search and posts by user. These action names identify different Flickr objects or views; they are not interchangeable search modes.

### Which input starts the Flickr `search` request?

Specifies the search term for photos or videos in the search action. The returned media scope is controlled by media_type, and this parameter does not perform exact author display name lookups. Send it as `keyword` inside `params`.

### Which fields can Flickr `search` return?

Its declared schema includes `title`, `image_url`, `media_type`, and `author_name`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every Flickr action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=flickr
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
