Twitch Chat Scraper avatar

Twitch Chat Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Twitch Chat Scraper

Twitch Chat Scraper

Extract Twitch chat messages including user IDs, subscriber status, bits, and reply details. 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

1

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Share

This actor extracts Messages in a Chat from Twitch. It captures real-time message content, user metadata, and reply threading from any active Twitch channel.

Data Fields

Field NameDescriptionExample
Message BodyThe text content of the message"Hello world!"
User Display NameThe visible name of the user"TwitchUser123"
User LoginThe unique username of the user"twitchuser123"
User IDUnique numerical ID for the user"123456789"
User TypeThe role of the user"mod"
User ColorHex code for the user name color"#FF0000"
Is SubscriberBoolean indicating subscription statustrue
All BadgesList of badges held by the user"subscriber/12, moderator/1"
BitsNumber of bits sent with the message100
TimestampDate and time of the message"2023-10-27T10:00:00Z"
TypeInternal message type"chat"
Message TypeCategory of the message"privmsg"
Has ReplyBoolean indicating if this is a replytrue
Reply Parent Display NameName of the user being replied to"OriginalPoster"
Reply Parent Message BodyContent of the parent message"What time does it start?"
Reply Parent Message IDUnique ID of the parent message"abc-123-def"
Reply Parent User IDUser ID of the parent message author"987654321"
Reply Parent User LoginLogin of the parent message author"originalposter"

Input

  • urls: Array of Twitch channel URL strings. Example: https://www.twitch.tv/channelname.
  • maxItems: Maximum number of chat messages to collect per URL. Default is 100.

Example Input

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

Example Output

[
{
"messageBody": "Great stream today!",
"userDisplayName": "ViewerOne",
"userLogin": "viewerone",
"userId": "445566",
"userType": "",
"userColor": "#00FF00",
"isSubscriber": true,
"allBadges": "subscriber/6",
"bits": 0,
"timestamp": "2023-10-27T10:05:00Z",
"type": "chat",
"messageType": "privmsg",
"hasReply": false,
"replyParentDisplayName": null,
"replyParentMessageBody": null,
"replyParentMessageId": null,
"replyParentUserId": null,
"replyParentUserLogin": null
},
{
"messageBody": "I agree!",
"userDisplayName": "ViewerTwo",
"userLogin": "viewertwo",
"userId": "778899",
"userType": "mod",
"userColor": "#0000FF",
"isSubscriber": false,
"allBadges": "moderator/1",
"bits": 0,
"timestamp": "2023-10-27T10:05:10Z",
"type": "chat",
"messageType": "privmsg",
"hasReply": true,
"replyParentDisplayName": "ViewerOne",
"replyParentMessageBody": "Great stream today!",
"replyParentMessageId": "msg-id-123",
"replyParentUserId": "445566",
"replyParentUserLogin": "viewerone"
}
]

Want more from Twitch?

This actor only covers Messages in a Chat. The full Twitch Scraper browser extension also includes Channels in a List, Channels in a Search, Videos in a List, Clips in a List, Channel Details 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

Disclaimer

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