# 🚀 Twitch Chat Scraper · 10,000 Free Messages/Month (`omkar-cloud/twitch-chat-scraper`) Actor

Twitch Chat Scraper gets you Twitch chat replays ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — every message, timestamp, badge and emote of any VOD. 💰 $0.50 per 1,000 messages, no start fee. Scrape your first 10,000 messages free every month 🚀

- **URL**: https://apify.com/omkar-cloud/twitch-chat-scraper.md
- **Developed by:** [Omkar Cloud](https://apify.com/omkar-cloud) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 message scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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 Chat Scraper

Twitch Chat Scraper by Omkar Cloud gets you 🎯 accurate, 🔍 detailed Twitch chat replays.

Twitch uses integrity checks and bot protection to stop you from getting its data. Twitch Chat Scraper beats it and reads Twitch live on every run — so you get every chat message of any VOD, and can successfully complete your project.

**$0.50 per 1,000 messages.** And with Apify's free plan you get $5 of credit every month, so your first **~10,000 messages each month are free**.

This is an excellent Actor made by Omkar Cloud, which is Rated Excellent — [4.7 based on 30 reviews on Trustpilot](https://www.trustpilot.com/review/omkar.cloud).

👉 [**Try Twitch Chat Scraper free**](https://apify.com/omkar-cloud/twitch-chat-scraper) — your first ~10,000 messages are Free.

### What can I get

- 💬 **Every chat message of a VOD** — text, time sent and the exact second in the video
- 👤 **The sender** — username, chat color and badges, with subscriber, moderator and VIP flags
- 😀 **Emotes & fragments** — every emote with its image, and the message split into text and emote parts
- 📺 **Latest broadcasts of any channel** — give a channel and read the chat of its newest past broadcasts
- ⏩ **Start anywhere** — skip to any second of the video

### Why Twitch Chat Scraper

Most other Twitch chat scrapers fail you in one of four ways:

- 🧩 **Low-detail data** — text only, never the badges, emotes or video timestamp
- 🗄️ **Live-only capture** — miss the stream and the chat is gone
- 💸 **Pay more to get the same data** — start fees on every run elsewhere
- 🪦 **Works today, breaks next month** — nobody maintains it

Twitch Chat Scraper reads Twitch live, is priced honestly, and actively maintained.

### Example: A Chat Message from Ninja's Stream

```json
{
  "source": "ninja",
  "source_type": "channel",
  "video": { "id": "2881528985", "link": "https://www.twitch.tv/videos/2881528985", "duration_seconds": 7166 },
  "id": "9d5b9ae5-58be-400d-8ba8-0d65bef9ed39",
  "offset_seconds": 34,
  "offset": "0:34",
  "sent_at": "2026-09-23T01:01:15Z",
  "text": "yoooo ninja",
  "user": {
    "login": "the___dark___knight",
    "username": "the___dark___knight",
    "color": "#FF7F50",
    "is_subscriber": false,
    "is_moderator": false,
    "is_vip": false
  },
  "emotes": []
}
```

*Trimmed for readability.*

### Get Started with 10,000 Free Messages

1. [Hit **Try for Free Button**](https://apify.com/omkar-cloud/twitch-chat-scraper) — the input is pre-filled with one of Ninja's videos.
2. Enjoy your data 😎.

### Pricing

High value, Low price.

| What | Price | What you get |
|---|---|---|
| **Messages** | **$0.50 per 1,000** | Text, video timestamp, time sent, sender with color and badges, emotes and fragments |

No start fee, one flat price on every plan — you pay only for the messages you get. Control your spend with **Max Messages per Video**.

💡 Apify's free plan includes $5 of credit every month — about **10,000 free messages, every month**.

👉 [**Scrape your first 10,000 messages free**](https://apify.com/omkar-cloud/twitch-chat-scraper)

### Run It from Code

Grab your API token from [Integrations Settings here](https://console.apify.com/settings/integrations) and replace `<YOUR_API_TOKEN>` below.

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("omkar-cloud/twitch-chat-scraper").call(run_input={
    "videos": ["https://www.twitch.tv/videos/1302227402"],
    "maxMessages": 5000,
})
for message in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(message["offset"], message["user"]["username"], message["text"])
```

**Node.js** (`npm install apify-client`)

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('omkar-cloud/twitch-chat-scraper').call({
    channels: ['ninja'],
    videosPerChannel: 3,
    maxMessages: 2000,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### FAQ

#### Which videos have chat replay?

Past broadcasts and highlights. Twitch keeps past broadcasts for 7 to 60 days depending on the channel; highlights stay until the streamer deletes them.

#### Can I start partway through a video?

Yes. Set **Start at (seconds into the video)** and reading begins there.

#### Are duplicates billed?

No. A message is pushed and billed once per run.

#### What does it cost?

$0.0005 per message — $0.50 per 1,000 — flat on every plan, with no start fee. Apify's free plan gives you $5 of credit every month, which is about 10,000 messages free every month.

#### Is it legal to scrape Twitch?

The Actor collects the public data twitch.tv shows any visitor. Please review Twitch's terms of service and make sure your use complies with the law of your jurisdiction, including data-protection law.

### 💬 Have Questions? We Have Answers.

You're a business owner — we know how hard completing a project can be. So we offer full support: just message us and we'll reply ✅ with a solution within 1 working day.

[![Message Us on WhatsApp](https://raw.githubusercontent.com/omkarcloud/assets/master/images/whatsapp-us.png)](https://api.whatsapp.com/send?phone=918178804274\&text=I%20need%20help%20with%20using%20the%20Twitch%20Chat%20Scraper%20Actor.)

[![Ask Us on Email](https://raw.githubusercontent.com/omkarcloud/assets/master/images/ask-on-email.png)](mailto:happy.to.help@omkar.cloud?subject=Help%20with%20Twitch%20Chat%20Scraper%20Actor\&body=I%20need%20help%20with%20using%20the%20Twitch%20Chat%20Scraper%20Actor.)

You are important to us — just message us and we will solve your problem ✅ within 1 working day. 🩷 Pinky Promise 🤙!

### Popular Actors by Omkar Cloud

- [**Twitch Scraper**](https://apify.com/omkar-cloud/twitch-scraper) — Twitch channels, search, live streams & VODs, $1 per 1,000 results
- [**Twitch Clips Scraper**](https://apify.com/omkar-cloud/twitch-clips-scraper) — top clips of any channel or category with MP4 links, $1 per 1,000 clips
- [**Kick Scraper**](https://apify.com/omkar-cloud/kick-scraper) — Kick channels, search & every live stream, $1 per 1,000 results
- [**IMDb Scraper**](https://apify.com/omkar-cloud/imdb-scraper) — IMDb titles, charts, cast, ratings & box office
- [**Website Email Contact Scraper**](https://apify.com/omkar-cloud/website-email-contact-scraper) — emails, phones & socials from any website

👉 [**Scrape your first 10,000 messages free now**](https://apify.com/omkar-cloud/twitch-chat-scraper)

# Actor input Schema

## `videos` (type: `array`):

Twitch video IDs (`1302227402`) or twitch.tv video URLs (`https://www.twitch.tv/videos/1302227402`).

## `channels` (type: `array`):

Twitch logins (`ninja`), numeric user IDs or twitch.tv channel URLs.

## `videosPerChannel` (type: `integer`):

How many of each channel's latest past broadcasts to read.

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

Skip the start of each video and read chat from this many seconds in.

## `maxMessages` (type: `integer`):

Cap on messages per video. Keeps your cost predictable.

## Actor input object example

```json
{
  "videos": [
    "1302227402"
  ],
  "videosPerChannel": 1,
  "startOffsetSeconds": 0,
  "maxMessages": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "videos": [
        "1302227402"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("omkar-cloud/twitch-chat-scraper").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 = { "videos": ["1302227402"] }

# Run the Actor and wait for it to finish
run = client.actor("omkar-cloud/twitch-chat-scraper").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 '{
  "videos": [
    "1302227402"
  ]
}' |
apify call omkar-cloud/twitch-chat-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,omkar-cloud/twitch-chat-scraper"
        }
    }
}
```

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/GOBRJ8DbX4LmWVUgK/builds/7hsx5vUvor5bJyoHd/openapi.json
