# Genius Videos API Documentation

<p>List the videos linked to an artist or an album with title, duration, view count, poster and URL. Send artist_id or album_id, not both.</p>

- **Documentation:** [https://scrappa.co/docs/genius-api/genius_videos](https://scrappa.co/docs/genius-api/genius_videos)
- **API group:** Genius API
- **Endpoint:** `GET https://scrappa.co/api/genius/videos`

## 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 |
| --- | --- | --- | --- |
| `artist_id` | integer | No | Genius artist id. Required when album_id is not set. |
| `album_id` | integer | No | Genius album id. Required when artist_id is not set. |
| `page` | integer | No | Page number, starting at 1. Default: 1. |

## Example response

```json
{
    "data": {
        "videos": [
            {
                "id": 18117,
                "url": "https://genius.com/videos/Example-video",
                "title": "Example video",
                "duration": 551403,
                "view_count": 1854406
            }
        ],
        "next_page": 2
    },
    "meta": {
        "billable": true,
        "proxy_tier": "mobile-proxies",
        "technology": "http",
        "endpoint_family": "videos"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | Genius has no resource for this id or path. This response is not billable. |
| 422 | Validation Error | A parameter is missing or invalid. No upstream request is made. This response is not billable. |
| 503 | Genius Temporarily Unavailable | Genius did not answer in time or the request was blocked. Retry after a short pause. 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)
