Twitch Messages Scraper avatar

Twitch Messages Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Twitch Messages Scraper

Twitch Messages Scraper

Extract live chat messages from any Twitch channel with active chat. Powered by Twitch Scraper.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Nifty

Nifty

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

a day ago

Last modified

Share

This actor extracts Messages from Twitch. It works on any Twitch channel with an active live stream and visible chat panel. The scraper captures real-time communication data including user metadata, message content, and reply structures.


Want more from Twitch?

This actor covers Messages only. The full Twitch Scraper browser extension also includes Channels, Videos, Clips with unlimited personal use, real-time scraping with your logged-in sessions, CSV/Excel/JSON export, field customization, and scheduled monitoring.

Get the Twitch Scraper extension


Data Fields

Field NameDescriptionExample
Message BodyThe text content of the chat message"pogchamp in the chat!"
User Display NameThe visible name of the sender"StreamFan99"
User LoginThe unique username of the sender"streamfan99"
User IDThe internal Twitch ID for the user"12345678"
User TypeThe role of the user (e.g., mod, global_mod)"mod"
User ColorThe hex code for the user's name color"#FF0000"
Is SubscriberBoolean indicating if user is a subscribertrue
All BadgesList of badges assigned to the user"subscriber/12, moderator/1"
BitsNumber of bits sent with the message100
TimestampWhen the message was sent"2023-10-27T10:00:00Z"
TypeThe event type"message"
Message TypeSpecific category of message"chat_message"
Has ReplyBoolean indicating if message is a replytrue
Reply Parent Display NameDisplay name of the user being replied to"StreamerName"
Reply Parent Message BodyContent of the original message"Hello everyone!"
Reply Parent Message IDUnique ID of the parent message"abc-123-def"
Reply Parent User IDUser ID of the parent message author"87654321"
Reply Parent User LoginUsername of the parent message author"streamername"

Input

  • urls: Array of Twitch channel URLs with active live streams.
  • maxItems: Max messages to collect per URL. Default is 100.

Example Input

{
"urls": ["https://www.twitch.tv/example_channel"],
"maxItems": 50
}

Example Output

[
{
"messageBody": "Great stream today!",
"userDisplayName": "ViewerOne",
"userLogin": "viewerone",
"userId": "445566",
"userType": "",
"userColor": "#00FF7F",
"isSubscriber": true,
"allBadges": "subscriber/6",
"bits": 0,
"timestamp": "2023-10-27T14:30:05Z",
"type": "message",
"messageType": "chat_message",
"hasReply": false,
"replyParentDisplayName": null,
"replyParentMessageBody": null,
"replyParentMessageId": null,
"replyParentUserId": null,
"replyParentUserLogin": null
},
{
"messageBody": "I agree!",
"userDisplayName": "ViewerTwo",
"userLogin": "viewertwo",
"userId": "778899",
"userType": "mod",
"userColor": "#1E90FF",
"isSubscriber": false,
"allBadges": "moderator/1",
"bits": 0,
"timestamp": "2023-10-27T14:30:10Z",
"type": "message",
"messageType": "chat_message",
"hasReply": true,
"replyParentDisplayName": "ViewerOne",
"replyParentMessageBody": "Great stream today!",
"replyParentMessageId": "msg_987",
"replyParentUserId": "445566",
"replyParentUserLogin": "viewerone"
}
]

Disclaimer

This tool extracts publicly available data. Users are responsible for compliance with applicable terms of service.