YouTube API endpoint
Retrieve video comments (top-level & replies)
Returns a page of comments for a specific YouTube video.
/youtube/comments/{id}Parameters
| Name | In | Type | Required | Enum | Example | Description |
|---|---|---|---|---|---|---|
| id | path | string | Yes | YouTube video ID (11-character code) | ||
| continuation_token | query | string | No | Pagination token returned by a previous request, first page if empty | ||
| x-api-key | header | string | Yes | API key required |
Authentication
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Billing
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
- Credit cost
- 3 credits/request
- Charged response
- Successful 2xx responses
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
Response behavior
- Pass the previous `continuation_token` value to fetch the next page. Example response: ```json { "code": 200, "msg": "OK", "data": { "comments": [ { "comment_id": "UgzjL_eQm9EVQN5n9Ex4AaABAg", "content": "This is OpenAI's daily reminder to NOT PUT ADS ON CHATGPT!!!", "channel_id": "UC1VvgrsdOvQoQvXixTe9Y3Q", "user_name": "@hudsonsknexproductions", "published_time": "2025-07-02T17:13:47.01045379Z", "reply_count": 7 } ], "continuation_token": "Eg0SC2F0WHlYUDN5WVo0GAYy0AIKpgJnZXRfcmFua2VkX3N0cmVhbXMtLUNxVUJDSUFFRlJlMzBUZ2FtZ0VLbFFFSTJGOFFnQVFZQnlLS0Fac1VKOWstb2JpbmtlTGExaFI3aEhFV..." } } ```
Catalog quality warnings
- missing example for required path param: id
Failure responses
| Status | Description | Schema |
|---|---|---|
| 400 | Missing or invalid parameters | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
Example response
{
"code": 200,
"msg": "OK",
"data": {
"comments": [
{
"comment_id": "UgzjL_eQm9EVQN5n9Ex4AaABAg",
"content": "This is OpenAI's daily reminder to NOT PUT ADS ON CHATGPT!!!",
"channel_id": "UC1VvgrsdOvQoQvXixTe9Y3Q",
"user_name": "@hudsonsknexproductions",
"published_time": "2025-07-02T17:13:47.01045379Z",
"reply_count": 7
}
],
"continuation_token": "Eg0SC2F0WHlYUDN5WVo0GAYy0AIKpgJnZXRfcmFua2VkX3N0cmVhbXMtLUNxVUJDSUFFRlJlMzBUZ2FtZ0VLbFFFSTJGOFFnQVFZQnlLS0Fac1VKOWstb2JpbmtlTGExaFI3aEhFV..."
}
}Request schema
No body schema
Response schema
#/definitions/youtube.commentsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | youtube.CommentResponse | No | ||||
| data.comments | array | No | ||||
| data.comments[].channel_id | string | No | ||||
| data.comments[].comment_id | string | No | ||||
| data.comments[].content | string | No | ||||
| data.comments[].continuation_token | string | No | ||||
| data.comments[].likes_count | integer | No | ||||
| data.comments[].published_time | string | No | ||||
| data.comments[].reply_count | integer | No | ||||
| data.comments[].user_name | string | No | ||||
| data.continuation_token | string | No | ||||
| msg | string | No | OK |
Example request
curl -X GET "https://api.crawlora.net/api/v1/youtube/comments/user-1" -H "x-api-key: <api-key>"
TypeScript fetch
const url = new URL("https://api.crawlora.net/api/v1/youtube/comments/user-1");
const headers = new Headers();
headers.set("x-api-key", "<api-key>");
const response = await fetch(url, {
method: "GET",
headers,
});
const payload = await response.json();