Get Twitch Video Chat Messages

13 endpoints • Base: https://openapi.scdata.cc

Returns the recorded chat of a video in pages ordered by time, so reactions can be aligned with what happened on stream.

GET/api/v1/twitch/video/messages

Quota usage: Each successful request to this endpoint deducts 1 quota units from your plan.

Request Parameters

Required Parameters

NameInTypeDescription
video_idquerystringVideo ID
example: 2300924413

Optional Parameters

NameInTypeDescription
pagequeryintegerPage number
page_sizequeryintegerPage size

Response Fields

NameTypeDescription
successbooleanSuccess
codeintegerCode
messagestringMessage
dataobject-
data.itemsarray<object>Items
data.totalintegerTotal
data.pageintegerPage
data.page_sizeintegerPage Size
data.total_pagesintegerTotal Pages

Try It

https://openapi.scdata.cc/api/v1/twitch/video/messages
Select an API key from Dashboard
Add an API key before sending a request.Go to Dashboard

Query Params

video_id*
page
page_size

cURL Example

bash
curl -X GET "https://openapi.scdata.cc/api/v1/twitch/video/messages?video_id=2300924413" \
-H "Authorization: YOUR_API_KEY"

Response Example (200 application/json)

json
{
"success": true,
"code": 200,
"message": "Request successful",
"data": {
"items": [
{
"message_id": "string",
"commenter_id": 0,
"commenter_name": "string",
"commenter_display_name": "string",
"content_offset_seconds": 0,
"created_at": "2019-08-24T14:15:22.123Z",
"message_fragments": "string",
"message_user_badges": "string",
"message_user_color": "string"
}
],
"total": 0,
"page": 0,
"page_size": 0,
"total_pages": 0
}
}

Use Cases

  • Sponsor mention analysisMeasure how chat reacted in the minutes around a sponsored segment.
  • Sentiment scoringFeed messages into a sentiment model to score audience mood per stream.

Related Endpoints