Twitch API endpoint
Use Crawlora's Twitch VOD comments (chat replay) API to extract supported public Twitch data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/twitch/vod-commentsReturns one page of a Twitch VOD's chat replay (past-broadcast chat messages), starting at a given point in the video's timeline. Paginate forward by re-requesting with the last returned comment's offset_seconds. Public data sourced from Twitch's own GraphQL API. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| video | string | Yes | Twitch VOD/video id (the numeric id from twitch.tv/videos/{id}) | ||
| offset | integer | No | Start the page from this point in the VOD's timeline, in seconds (default 0) | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/twitch/vod-comments" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| 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 |
This endpoint is executed through Crawlora's managed scraping infrastructure.
- Pagination is offset-based only: use the last returned comment's `offset_seconds` (or `next_offset_seconds`) as the next request's `offset` to page forward. Twitch's own cursor-based paging mode for this operation requires a device-integrity token this endpoint does not carry, so it is not exposed here. - `message` is the comment's flattened plain text; `fragments` breaks it into text/emote runs, with `emote_id` set on emote fragments. - `has_more` reflects whether Twitch has additional comments after this page's last offset. - A video with no chat replay data (or that never had chat) returns a `200` with an empty `comments` list. - An unknown video id returns `404`. A missing `video` returns `400` before any upstream request is made. Example response: ```json { "code": 200, "msg": "OK", "data": { "video_id": "2845804307", "offset_seconds": 0, "count": 55, "has_more": true, "next_offset_seconds": 140, "comments": [ { "id": "d19286b9-dd9c-45b7-91eb-1fff28926f2c", "commenter": { "id": "271911711", "login": "mrfluffernuts", "display_name": "mrfluffernuts" }, "offset_seconds": 53, "created_at": "2026-08-14T07:19:45.217Z", "message": "I'm going to spend my 50million during game 5 of worlds so you have to end stream @caedrel", "fragments": [ { "text": "I'm going to spend my 50million during game 5 of worlds so you have to end stream @caedrel" } ] } ] } } ```
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"code": 200,
"msg": "OK",
"data": {
"video_id": "2845804307",
"offset_seconds": 0,
"count": 55,
"has_more": true,
"next_offset_seconds": 140,
"comments": [
{
"id": "d19286b9-dd9c-45b7-91eb-1fff28926f2c",
"commenter": {
"id": "271911711",
"login": "mrfluffernuts",
"display_name": "mrfluffernuts"
},
"offset_seconds": 53,
"created_at": "2026-08-14T07:19:45.217Z",
"message": "I'm going to spend my 50million during game 5 of worlds so you have to end stream @caedrel",
"fragments": [
{
"text": "I'm going to spend my 50million during game 5 of worlds so you have to end stream @caedrel"
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/twitch.vodCommentsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | twitch.VodCommentsResponse | No | ||||
| data.comments | array | No | ||||
| data.comments[].badges | array | No | ||||
| data.comments[].commenter | twitch.VodCommentCommenter | No | ||||
| data.comments[].commenter.display_name | string | No | ||||
| data.comments[].commenter.id | string | No | ||||
| data.comments[].commenter.login | string | No | ||||
| data.comments[].created_at | string | No | 2026-08-14T07:20:39Z | |||
| data.comments[].fragments | array | No | ||||
| data.comments[].fragments[].emote_id | string | No | ||||
| data.comments[].fragments[].text | string | No | ||||
| data.comments[].id | string | No | ||||
| data.comments[].message | string | No | ||||
| data.comments[].offset_seconds | integer | No | 113 | |||
| data.comments[].user_color | string | No | #0000FF | |||
| data.count | integer | No | 55 | |||
| data.has_more | boolean | No | true | |||
| data.next_offset_seconds | integer | No | 140 | |||
| data.offset_seconds | integer | No | 0 | |||
| data.video_id | string | No | ||||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/twitch/vod-comments" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms