# YouTube Video Chapters

Get chapters/timestamps from a YouTube video.

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

## 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 |
| `videoId` | string | No | YouTube video ID (11 characters). Alias for video_id. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "videoId": "dQw4w9WgXcQ",
    "hasChapters": true,
    "chapters": [
        {
            "title": "Introduction",
            "startTime": 0,
            "startTimeMillis": 0,
            "thumbnail": "https://i.ytimg.com/..."
        }
    ]
}
```

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