# Twitch VOD Chat Replay, Emote Catalog & Team Roster (`xyrelith-data/twitch-vod-chat-replay-emotes-teams`) Actor

Download a Twitch VOD's full chat replay with per-minute activity aggregates, list a channel's subscriber and follower emotes, and export Twitch team rosters. Cookieless, with time-window, keyword and badge filters.

- **URL**: https://apify.com/xyrelith-data/twitch-vod-chat-replay-emotes-teams.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Social media, Videos, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Twitch VOD Chat Replay, Emote Catalog & Team Roster

Download a Twitch VOD's full timestamped chat replay, see how chat activity rises and falls minute by minute, pull a channel's subscriber and follower emotes with working CDN images, and export the member roster of any Twitch team — all without a Twitch login, OAuth token, cookie, or proxy setup.

Twitch keeps a public chat replay for most archived broadcasts. This actor walks that replay from the first second to the last, or from any start/end offset you choose, and writes one clean JSON row per message. It also returns optional per-minute aggregation rows so you can spot raid spikes, giveaway storms, and the exact minute a highlight happened.

### What you can extract

| Mode | What it returns |
|---|---|
| `vodChat` | Every chat message in one or more VODs you specify by ID or URL |
| `channelChat` | Chat replay from the newest N VODs of one or more channels, filtered by VOD type and publish date |
| `emotes` | A channel's subscriber emotes per tier, follower emotes, and optionally Twitch's global emote set |
| `teams` | Team profile and the complete member roster, including members beyond the first page |

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `mode` | string | `channelChat` | What to extract: `vodChat`, `channelChat`, `emotes`, or `teams`. |
| `vodIds` | array | – | VOD IDs or full VOD URLs for `vodChat`, e.g. `2926946185` or `https://www.twitch.tv/videos/2926946185`. |
| `channelLogins` | array | – | Channel logins or channel URLs for `channelChat` and `emotes`, e.g. `shroud` or `https://www.twitch.tv/shroud`. |
| `teamNames` | array | – | Team names or team URLs for `teams`, e.g. `nrg` or `https://www.twitch.tv/team/nrg`. |
| `maxVodsPerChannel` | integer | `5` | How many matching VODs to read per channel in `channelChat`. |
| `vodType` | string | `ARCHIVE` | `ARCHIVE`, `HIGHLIGHT`, `UPLOAD`, or `ALL`. Highlights and uploads may not have a chat replay. |
| `vodPublishedAfter` | string | – | Earliest VOD publish date, inclusive, as `YYYY-MM-DD` in UTC. |
| `vodPublishedBefore` | string | – | Latest VOD publish date, inclusive, as `YYYY-MM-DD` in UTC. |
| `startOffsetSeconds` | integer | `0` | Skip chat before this many seconds into each VOD. |
| `endOffsetSeconds` | integer | – | Stop after this many seconds into each VOD. Leave empty to read to the end. |
| `keywords` | array | – | Keep only messages containing a keyword. Works with unicode and treats punctuation literally. |
| `keywordMatch` | string | `ANY` | `ANY` keeps messages with at least one keyword; `ALL` requires every keyword. |
| `includeSystemMessages` | boolean | `true` | Keep subscription, gift, raid, watch-streak, moderation, and room-mode notices. Turn off for viewer-authored messages only. |
| `includeBadges` | boolean | `true` | Add badges plus subscriber, moderator, VIP, broadcaster, and bits flags to each chat row. |
| `includeAggregates` | boolean | `false` | Add one extra row per minute with message count, unique chatters, and top emotes. |
| `includeGlobalEmotes` | boolean | `false` | In `emotes` mode, also return Twitch's global emote catalog. |
| `maxItems` | integer | `1000` | Maximum primary rows: chat messages, emote rows, or team rows. Minute aggregates are additional. |

### Examples

#### Full chat replay for one VOD

```json
{
  "mode": "vodChat",
  "vodIds": ["2926946185"],
  "includeBadges": true,
  "includeAggregates": true,
  "maxItems": 5000
}
```

#### A 10-minute window around a moment you want to review

```json
{
  "mode": "vodChat",
  "vodIds": ["https://www.twitch.tv/videos/2926946185"],
  "startOffsetSeconds": 5400,
  "endOffsetSeconds": 6000,
  "keywords": ["clutch", "no way"],
  "keywordMatch": "ANY",
  "maxItems": 2000
}
```

#### Chat from a channel's last three archived streams

```json
{
  "mode": "channelChat",
  "channelLogins": ["shroud"],
  "maxVodsPerChannel": 3,
  "vodType": "ARCHIVE",
  "maxItems": 20000
}
```

#### Emote catalog with tier and image URLs

```json
{
  "mode": "emotes",
  "channelLogins": ["xqc", "pokimane"],
  "includeGlobalEmotes": true,
  "maxItems": 500
}
```

#### Team roster

```json
{
  "mode": "teams",
  "teamNames": ["nrg", "cloud9"],
  "maxItems": 10
}
```

### Chat message output

Each `chatMessage` row carries the VOD metadata plus:

| Field | Description |
|---|---|
| `messageId` | Twitch's unique chat message ID. |
| `offsetSeconds` | Seconds from the start of the VOD. |
| `offsetHms` | The same offset formatted as `hh:mm:ss`. |
| `createdAt` | Wall-clock UTC time the message was posted. |
| `commenterId`, `commenterLogin`, `commenterDisplayName` | The sender's Twitch identity. |
| `userColor` | The sender's chat colour, when Twitch provides one. |
| `messageText` | The complete plain-text message. |
| `fragments` | Ordered text and emote fragments, including emote ID, name, position, and a CDN image URL. |
| `emotes` | A flat list of the emotes used in the message. |
| `badges` | Badge set ID, version, and a readable type such as `subscriber`, `moderator`, `vip`, `bits`, or `channelBadge`. |
| `isSubscriber`, `isModerator`, `isVip`, `hasBitsBadge`, `isBroadcaster`, `isStaff` | Convenience flags derived from the badges. |
| `isSystemMessage`, `systemMessageType` | Flags subscription, gift, raid, watch-streak, follow, moderation, room-mode, announcement, and milestone notices. |
| `subscriberMonths` | Parsed from subscription notices that state a tenure. |
| `bitsUsed` | Parsed when a notice states a bits amount. |
| `vodId`, `vodUrl`, `vodTitle`, `vodLengthSeconds`, `vodViewCount`, `vodCreatedAt`, `vodPublishedAt`, `vodBroadcastType`, `vodStatus`, `vodLanguage` | Source VOD metadata. |
| `channelId`, `channelLogin`, `channelDisplayName`, `gameId`, `gameName`, `sourceUrl` | Source channel and category metadata. |
| `recordType`, `scrapedAt` | Row type and extraction timestamp. |

#### Per-minute aggregate output

When `includeAggregates` is on, a `chatMinute` row is added for every minute that contains matching messages:

| Field | Description |
|---|---|
| `minuteOffsetSeconds` | Minute start in seconds. |
| `minuteStartHms`, `minuteEndHms` | Minute boundaries as `hh:mm:ss`. |
| `messageCount` | Messages kept in that minute. |
| `uniqueChatterCount` | Distinct commenter logins in that minute. |
| `topEmotes` | Up to five `{name, count}` entries, sorted by count. |
| VOD and channel metadata | The same source fields as chat rows, so aggregates can be joined or filtered without a lookup. |

### Emote output

Each `emote` row contains `channelLogin`, `channelId`, `channelDisplayName`, `emoteId`, `emoteName`, `emoteSetId`, `emoteSetName`, `tier`, `tierLabel`, `emoteType`, `animated`, `assetType`, `state`, `imageUrl`, `imageUrl1x`, `imageUrl2x`, `animatedImageUrl`, `sourceUrl`, `recordType`, and `scrapedAt`.

`tier` is `1000`, `2000`, or `3000` for subscriber emotes, `follower` for follower emotes, and `global` for the optional global catalog. `emoteType` is `subscription`, `follower`, or `global`. `imageUrl` and the 1x/2x variants point at Twitch's static CDN; animated emotes also get `animatedImageUrl`.

### Team output

Each `team` row contains `teamId`, `teamName`, `teamDisplayName`, `teamDescription`, `teamBannerUrl`, `teamLogoUrl`, `teamOwnerLogin`, `teamOwnerDisplayName`, `memberCount`, `capturedMemberCount`, `members`, `sourceUrl`, `recordType`, and `scrapedAt`.

`members` is a complete roster of `{userId, login, displayName}` objects. The actor follows Twitch's team-member cursor to the end of the roster, so `capturedMemberCount` normally equals `memberCount`.

### Use cases

- Build a chat dataset for moderation-classifier training or sentiment analysis.
- Find the exact minute of a raid, giveaway, or clutch play for clip editing.
- Measure chat velocity and unique participation across a stream.
- Export a channel's emote catalog with ready-to-use image URLs for chat overlays or archives.
- Keep a searchable roster of Twitch teams for esports research or partnership tracking.
- Review subscriber and watch-streak messages in a chosen VOD window.

### Limitations

- Twitch only exposes chat replay for VODs it still hosts. Expired VODs return no messages.
- Channels can disable chat replay or enable subscriber-only chat; anonymous requests then return nothing. The run status says when a VOD has no chat replay.
- Chat replay does not expose a moderator action log. Bans, timeouts, and deleted messages may be absent or look like ordinary messages.
- Twitch does not return a bits amount in the chat-replay schema. `hasBitsBadge` is available, and `bitsUsed` is filled when a notice states the amount, but a per-message bits total is not available.
- Bits-tier cheer emotes are not in the public channel emote response used here. Subscriber and follower emotes are complete; the global catalog is available as an option.
- System-message detection is text-based because the replay schema has no event-type field. A viewer typing an exact subscription notice could be classified as a system message.
- Live chat is out of scope. This actor reads finished VOD replays, not the live IRC/WebSocket stream.
- Very long VODs can produce tens of thousands of messages. Use `maxItems` and the time window to keep a run small.

### Frequently asked questions

**Do I need a Twitch account or API key?**
No. The actor uses Twitch's public web data. It never asks for a login, cookie, OAuth token, or proxy configuration.

**How far back can I go?**
As far back as Twitch still hosts the VOD and its chat replay. `channelChat` can scan recent VODs by type and date; `vodChat` accepts any VOD ID or URL that still resolves.

**Why did a VOD return zero messages?**
The VOD may have no chat replay, subscriber-only chat, or an expired chat archive. The status message names how many VODs had no replay. Try another VOD from the same channel or a different date range.

**What is the difference between `messageText` and `fragments`?**
`messageText` is the readable message with emote tokens left in place. `fragments` preserves the original structure: text runs and emote runs with IDs, names, positions, and image URLs.

**Can I filter by a specific user?**
Use `keywords` to match message content. Per-user filtering is not a separate field; filter the dataset on `commenterLogin` after export.

**Why is `subscriberMonths` missing on some subscriber messages?**
Twitch only states a tenure in subscription notices. A normal message with a subscriber badge does not include a month count, so the field is omitted rather than guessed.

**Can I get every message in a six-hour stream?**
Yes, subject to Twitch's source limits and the `maxItems` cap. Raise `maxItems`, leave the time window open, and let the actor follow the VOD's chat cursor to the end. The run status reports how many messages were saved.

**Are emote image URLs permanent?**
They point at Twitch's public emote CDN. They work without a referer or cookie, but Twitch can change or remove an emote at any time.

**Does this download video or clips?**
No. It extracts chat text, emote metadata, and team rosters. It does not download video, audio, or clip files.

# Actor input Schema

## `mode` (type: `string`):

What to extract.

## `vodIds` (type: `array`):

(mode=vodChat) Twitch VOD IDs or full URLs, e.g. `2926946185` or `https://www.twitch.tv/videos/2926946185`.

## `channelLogins` (type: `array`):

(mode=channelChat, emotes) Channel logins or URLs, e.g. `shroud` or `https://www.twitch.tv/shroud`. Used as the channel for the emote catalog and as the VOD source in channel chat mode.

## `teamNames` (type: `array`):

(mode=teams) Twitch team names or team URLs, e.g. `nrg` or `https://www.twitch.tv/team/nrg`.

## `maxVodsPerChannel` (type: `integer`):

(mode=channelChat) How many matching VODs to read per channel.

## `vodType` (type: `string`):

(mode=channelChat) Which kind of VOD to select. Highlights and uploads often have no chat replay.

## `vodPublishedAfter` (type: `string`):

(mode=channelChat) Optional earliest VOD date, inclusive, in `YYYY-MM-DD` format (UTC).

## `vodPublishedBefore` (type: `string`):

(mode=channelChat) Optional latest VOD date, inclusive, in `YYYY-MM-DD` format (UTC).

## `startOffsetSeconds` (type: `integer`):

(mode=vodChat, channelChat) Skip chat before this many seconds into each VOD.

## `endOffsetSeconds` (type: `integer`):

(mode=vodChat, channelChat) Stop after this many seconds into each VOD. Leave empty to read to the end.

## `keywords` (type: `array`):

(mode=vodChat, channelChat) Keep only messages containing at least one of these words (or all of them when match mode is ALL). Leave empty to keep every message.

## `keywordMatch` (type: `string`):

(mode=vodChat, channelChat) Whether one keyword or every keyword must appear in the message.

## `includeSystemMessages` (type: `boolean`):

(mode=vodChat, channelChat) Keep subscription, gift, raid, watch-streak and moderation notices. Turn off to keep only viewer-authored messages.

## `includeBadges` (type: `boolean`):

(mode=vodChat, channelChat) Add chat badges and subscriber, moderator, VIP and bits flags to each message.

## `includeAggregates` (type: `boolean`):

(mode=vodChat, channelChat) Add one extra row per minute with message count, unique chatters and top emotes. Useful for finding highlight moments.

## `includeGlobalEmotes` (type: `boolean`):

(mode=emotes) Also return Twitch's global emote catalog alongside each channel's subscriber and follower emotes.

## `maxItems` (type: `integer`):

Maximum primary rows to save: chat messages (vodChat, channelChat), emote rows (emotes), or team rows (teams). Minute aggregates are additional rows.

## Actor input object example

```json
{
  "mode": "channelChat",
  "channelLogins": [
    "shroud"
  ],
  "maxVodsPerChannel": 1,
  "vodType": "ARCHIVE",
  "startOffsetSeconds": 0,
  "keywordMatch": "ANY",
  "includeSystemMessages": true,
  "includeBadges": true,
  "includeAggregates": false,
  "includeGlobalEmotes": false,
  "maxItems": 1
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all extracted Twitch records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "channelChat",
    "channelLogins": [
        "shroud"
    ],
    "maxVodsPerChannel": 1,
    "vodType": "ARCHIVE",
    "startOffsetSeconds": 0,
    "keywordMatch": "ANY",
    "includeSystemMessages": true,
    "includeBadges": true,
    "includeAggregates": false,
    "includeGlobalEmotes": false,
    "maxItems": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/twitch-vod-chat-replay-emotes-teams").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "channelChat",
    "channelLogins": ["shroud"],
    "maxVodsPerChannel": 1,
    "vodType": "ARCHIVE",
    "startOffsetSeconds": 0,
    "keywordMatch": "ANY",
    "includeSystemMessages": True,
    "includeBadges": True,
    "includeAggregates": False,
    "includeGlobalEmotes": False,
    "maxItems": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/twitch-vod-chat-replay-emotes-teams").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "channelChat",
  "channelLogins": [
    "shroud"
  ],
  "maxVodsPerChannel": 1,
  "vodType": "ARCHIVE",
  "startOffsetSeconds": 0,
  "keywordMatch": "ANY",
  "includeSystemMessages": true,
  "includeBadges": true,
  "includeAggregates": false,
  "includeGlobalEmotes": false,
  "maxItems": 1
}' |
apify call xyrelith-data/twitch-vod-chat-replay-emotes-teams --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/twitch-vod-chat-replay-emotes-teams"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/h7JMv6cE6NcHPySPs/builds/YXRY87aO77hhiTxV0/openapi.json
