# Imgur Viral Gallery

Returns the current viral (hot) gallery posts. Each post includes title, view count, vote counts, cover and tags. Paginate with the page parameter (1-indexed). A valid empty result is a successful, charged request.

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

## 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 |
| --- | --- | --- | --- |
| `page` | integer | No | Page number, 1-indexed (default 1). |
| `sort` | string | No | Sort order: -time (default). |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": {
        "posts": [
            {
                "id": "pSzoeGq",
                "view_count": 807,
                "cover_id": "pSzoeGq",
                "is_album": true,
                "url": "https://imgur.com/gallery/pSzoeGq"
            }
        ],
        "has_more": true
    },
    "meta": {
        "endpoint_family": "viral",
        "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)
