---
title: "YouTube Transcript Scraper | ScrapeCrate"
description: "Full transcript of any YouTube video, with timestamps. $0.001 per transcript, free monthly credit to try it. Run it from the web, the API or MCP."
url: https://scrapecrate.com/apps/youtube-transcript
markdown: https://scrapecrate.com/apps/youtube-transcript.md
---

# YouTube Transcript Scraper

Full transcript of any YouTube video, with timestamps.

**Price:** $0.001 per transcript.

Paste a video link or ID and get its transcript as timed segments and plain text, in the original language or a translation. Works on videos with auto-generated or manual captions.

## Input

- `video_id` (string, required): 11-character video ID
- `lang` (string, optional): Language code (e.g. en, it, pt-BR); auto-translated when the video doesn't have it

## Use it from your code

```bash
curl -X POST "https://api.scrapecrate.com/v1/apps/youtube-transcript/runs?wait=60" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"video_id":"dQw4w9WgXcQ","lang":"en"},"max_items":100}'
```

```javascript
const res = await fetch("https://api.scrapecrate.com/v1/apps/youtube-transcript/runs?wait=60", {
  method: "POST",
  headers: { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "video_id": "dQw4w9WgXcQ",
      "lang": "en"
    },
    "max_items": 100
  }),
});
const { run } = await res.json();
console.log(run.status, run.result_count);

// The results
const items = await fetch(`https://api.scrapecrate.com/v1/runs/${run.id}/items?format=json`, {
  headers: { "X-API-Key": process.env.API_KEY },
}).then((r) => r.json());
```

```python
import os, requests

res = requests.post(
    "https://api.scrapecrate.com/v1/apps/youtube-transcript/runs?wait=60",
    headers={"X-API-Key": os.environ["API_KEY"]},
    json={
      "input": {
        "video_id": "dQw4w9WgXcQ",
        "lang": "en"
      },
      "max_items": 100
    },
)
run = res.json()["run"]
print(run["status"], run["result_count"])

items = requests.get(
    f"https://api.scrapecrate.com/v1/runs/{run['id']}/items?format=json",
    headers={"X-API-Key": os.environ["API_KEY"]},
).json()["items"]
```

```bash
# Claude Code
claude mcp add --transport http scrapecrate https://api.scrapecrate.com/mcp

# Then ask, in Claude, ChatGPT or Cursor:
Transcript of https://www.youtube.com/watch?v=dQw4w9WgXcQ
```

## Output example

```json
{
  "video_id": "dQw4w9WgXcQ",
  "language": "en",
  "is_generated": false,
  "text": "We're no strangers to love. You know the rules and so do I.",
  "segments": [
    {
      "text": "We're no strangers to love",
      "start": 18.6,
      "duration": 3.2
    },
    {
      "text": "You know the rules and so do I",
      "start": 22.4,
      "duration": 4.1
    }
  ]
}
```

[API reference](https://scrapecrate.com/youtube-api.md)

You pay only for the results you get. Results are kept 30 days.
