# Imgur Tag Gallery

Returns posts for a tag with the tag display name. Paginate with the page parameter (1-indexed). A valid empty result is a successful, charged request.

- **Documentation:** [https://scrappa.co/docs/imgur-api/imgur_tag](https://scrappa.co/docs/imgur-api/imgur_tag)
- **API group:** Imgur API
- **Endpoint:** `GET https://scrappa.co/api/imgur/tag`

## 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 |
| --- | --- | --- | --- |
| `tag` | string | Yes | The tag name (e.g. cats). |
| `page` | integer | No | Page number, 1-indexed (default 1). |
| `window` | string | No | Time window: week (default), day, month, year or all. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/imgur/tag?tag=cats"
```

## Example response

```json
{
    "success": true,
    "data": {
        "tag": "cats",
        "display": "cats",
        "posts": [
            {
                "id": "bPrdrQz",
                "title": "Getting snuggles before I leave",
                "view_count": 1203,
                "upvote_count": 89,
                "url": "https://imgur.com/gallery/bPrdrQz"
            }
        ],
        "has_more": true
    },
    "meta": {
        "endpoint_family": "tag",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | The requested Imgur resource does not exist. |  |
|  | The Imgur upstream service is busy or unavailable. Not charged. meta.retryable is true. |  |
|  | The Imgur upstream service returned an unreadable payload. Not charged. meta.retryable is true. |  |

## 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)
