# YouTube Related Videos

Get videos related to a specific YouTube video. Returns up to 20 related videos by default.

- **Documentation:** [https://scrappa.co/docs/youtube-api/youtube_related](https://scrappa.co/docs/youtube-api/youtube_related)
- **API group:** YouTube API
- **Endpoint:** `GET https://scrappa.co/api/youtube/related`

## 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 |
| --- | --- | --- | --- |
| `video_id` | string | Yes | YouTube video ID |
| `limit` | integer | No | Number of videos (default: 20, max: 50) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/youtube/related?video_id=dQw4w9WgXcQ"
```

## Example response

```json
{
    "videoId": "dQw4w9WgXcQ",
    "count": 20,
    "videos": [
        {
            "id": "yPYZpwSpKmA",
            "title": "Rick Astley - Together Forever (Official Video) [4K Remaster]",
            "thumbnail": "https://i.ytimg.com/vi/yPYZpwSpKmA/hqdefault.jpg",
            "duration": "3:24",
            "viewCount": "196M views",
            "publishedTime": "16 years ago",
            "channel": {
                "id": null,
                "name": "Rick Astley",
                "thumbnail": null,
                "verified": false
            },
            "badges": [],
            "isLive": false
        }
    ]
}
```

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