---
title: "YouTube Comments Scraper | ScrapeCrate"
description: "Every comment of a YouTube video, with likes and replies. $0.01 per 1,000 comments, free monthly credit to try it. Run it from the web, the API or MCP."
url: https://scrapecrate.com/apps/youtube-comments
markdown: https://scrapecrate.com/apps/youtube-comments.md
---

# YouTube Comments Scraper

Every comment of a YouTube video, with likes and replies.

**Price:** $0.01 per 1,000 comments.

All the comments of a video, top or newest first, with author, likes, date and, if you want, their replies. Billed per 100 comments.

## Input

- `video_id` (string, required): 11-character video ID
- `sort` (enum, optional, default top): Top comments or newest first

## Use it from your code

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

```javascript
const res = await fetch("https://api.scrapecrate.com/v1/apps/youtube-comments/runs?wait=60", {
  method: "POST",
  headers: { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "video_id": "dQw4w9WgXcQ",
      "sort": "top"
    },
    "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-comments/runs?wait=60",
    headers={"X-API-Key": os.environ["API_KEY"]},
    json={
      "input": {
        "video_id": "dQw4w9WgXcQ",
        "sort": "top"
      },
      "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:
The 500 top comments of youtube.com/watch?v=dQw4w9WgXcQ
```

## Output example

```json
{
  "comment_id": "UgzX1a2b3c4d5e6f7g8h",
  "text": "Still a classic.",
  "author": "@musicfan",
  "like_count": 1520,
  "reply_count": 12,
  "published_at": "2024-03-01T10:00:00Z",
  "is_pinned": false
}
```

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

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