# Flickr User Profile API Documentation

Retrieve a public Flickr user profile (NSID, username, real name, location, photos URL and public photo count) plus one page of the user's public photos with views, faves and comments counts. A valid user with zero public photos is a successful response.

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

## 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 |
| --- | --- | --- | --- |
| `user_id` | string | Yes | Flickr NSID. Example: 135660584@N08. |
| `page` | integer | No | 1-based photos page. Defaults to 1. |
| `per_page` | integer | No | Photos per page (1-500). Defaults to 10. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/flickr/user?user_id=135660584%40N08&per_page=3"
```

## Example response

```json
{
    "success": true,
    "data": {
        "profile": {
            "nsid": "135660584@N08",
            "username": "kiransphoto",
            "photos_url": "https://www.flickr.com/photos/kiransgallery/",
            "photos_count": 246
        },
        "photos": {
            "page": 1,
            "pages": 82,
            "per_page": 3,
            "total": 246,
            "has_more": true,
            "results": [
                {
                    "id": "36965029772",
                    "owner": "135660584@N08",
                    "title": "Golden Sunset",
                    "views": 67,
                    "date_upload": "2017-09-10T05:57:33Z",
                    "faves_count": 3,
                    "comments_count": 0,
                    "url": "https://www.flickr.com/photos/135660584@N08/36965029772",
                    "image_url": "https://live.staticflickr.com/4364/36965029772_5153babb37.jpg"
                }
            ]
        }
    },
    "meta": {
        "endpoint_family": "user_profile",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | User Not Found | The requested Flickr User was not found. This response is not billable. |
| 422 | Validation Error | A public parameter or range is invalid. 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)
