# Flickr Photo Search API Documentation

Search public Flickr photos by free text with pagination. Each result carries the photo id, owner, title, description, tags (list of strings), view count, dates (ISO 8601, UTC), license (id and name), media type, the photopage URL and a thumbnail image URL. Sorting, tag, user, group, license, safe-search and content-type filters are supported. A valid empty result (no matches) is a successful response.

- **Documentation:** [https://scrappa.co/docs/flickr-api/flickr_search](https://scrappa.co/docs/flickr-api/flickr_search)
- **API group:** Flickr API
- **Endpoint:** `GET https://scrappa.co/api/flickr/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | Free-text search query. Example: mountain sunrise. |
| `page` | integer | No | 1-based page number. Defaults to 1. |
| `per_page` | integer | No | Results per page (1-500). Defaults to 10. |
| `sort` | string | No | relevance, date-posted-desc or interestingness-desc. |
| `tags` | string | No | Comma-separated tag filter. |
| `user_id` | string | No | Limit results to one Flickr NSID (e.g. 135660584@N08). |
| `group_id` | string | No | Limit results to one Flickr group NSID. |
| `license` | string | No | License filter (0-9). |
| `safe_search` | integer | No | 1 = safe, 2 = moderate, 3 = restricted. |
| `content_type` | integer | No | 1 = photos, 2 = screenshots, 3 = other, 7 = all. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/flickr/search?text=mountain+sunrise&per_page=3"
```

## Example response

```json
{
    "success": true,
    "data": {
        "page": 1,
        "pages": 193217,
        "per_page": 3,
        "total": 579651,
        "has_more": true,
        "results": [
            {
                "id": "55586741331",
                "owner": "8013880@N06",
                "title": "Andorra rural: La Massana, Vall nord, Andorra",
                "description": "Cortals de Sispony, La Massana, Vall nord, Andorra, Pyrenees",
                "tags": [
                    "lamassanaparroquia",
                    "canoneos5dmarkiii"
                ],
                "views": 9,
                "date_taken": "2016-04-07T11:36:45Z",
                "date_upload": "2026-10-13T11:48:29Z",
                "license": 0,
                "license_name": "All Rights Reserved",
                "media": "photo",
                "owner_name": "lutzmeyer",
                "url": "https://www.flickr.com/photos/8013880@N06/55586741331",
                "image_url": "https://live.staticflickr.com/65535/55586741331_5afa1c0895_t.jpg"
            }
        ]
    },
    "meta": {
        "endpoint_family": "search",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter or range is invalid. This response is not billable. |
| 503 | Upstream Unavailable | The Flickr API returned a failure (stat:fail) or was unreachable. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
