# Twitch Scraper: Channels, Live Streams, Top Games, VODs, Clips (`zhtech/twitch-scraper`) Actor

Scrape Twitch channel profiles (followers, bio, social links, emails, partner status, live status), top live streams by category and language, top games with viewer counts, and recent VODs and clips. No login. Optional Helix API for long lists.

- **URL**: https://apify.com/zhtech/twitch-scraper.md
- **Developed by:** [ZH Tech](https://apify.com/zhtech) (community)
- **Categories:** Social media, Videos, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 channels

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

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 Scraper: Channels, Live Streams, Top Games, VODs and Clips

Scrape **Twitch channel profiles, top live streams, top games and categories, VODs and clips** in one run, with one clean dataset. Get followers, bio, social links, public business emails, Partner or Affiliate status, live status with the current stream title, game and viewer count, plus rankings of the most watched streams and categories right now.

No Twitch login, no browser, no cookies. Runs in seconds on 256 MB.

### What you get

- **Channel profiles**: followers, bio, Partner / Affiliate / none, language, created date, avatar, banner, brand color, total videos, social links (Twitter/X, Instagram, YouTube, TikTok, Discord and more, also as separate columns), About panel links and **emails the streamer published** in the bio or panels.
- **Live status** for each channel: is live, stream title, game, viewers, start time, uptime, tags, preview image. When offline: the channel's current title and game, the last broadcast (title, game, date) and the next scheduled stream.
- **Top live streams** across all of Twitch or per category (game), ranked by viewers, with follower counts and Partner status of each streamer. Filter by language, minimum viewers and a follower range.
- **Top games and categories** ranked by viewers, with live channel count, category followers, tags and box art.
- **VODs** of a channel: past broadcasts, highlights or uploads, newest or most viewed, with views, duration, game and thumbnail.
- **Clips** of a channel: top clips of the last day, week, month or all time, with views, duration, game, who clipped it, the VOD and offset it came from, and optional **direct MP4 links** (1080p to 360p).

### Why this Twitch scraper

- **Everything in one run.** Channels, their VODs and clips, live stream rankings and top categories together, each record with a `type` and its own table view. No mode switching.
- **VODs and clips are their own rows**, not arrays hidden inside the channel row, so CSV, Excel and Google Sheets exports just work.
- **Fair, low price.** Pay per result, about half of the market leader. Errors and rows removed by your filters are never charged, and the run stops cleanly at your max cost.
- **Honest limits.** Twitch's logged-out website serves the first 30 rows of each list. We say so, widen rankings by language automatically, and let you add your own free Twitch developer credentials (official Helix API) for long lists. No hidden caps, no fake depth.
- **Stable and light.** Uses Twitch's own public data endpoints, not page HTML, so there is no layout to break. Retries with backoff, rate limit detection, optional proxy.
- **Never swaps your input.** A wrong channel name or unknown category becomes a clear error row (free) and the rest of the run continues.

### Use cases

- **Influencer marketing**: find streamers by category, language and follower range, with social links and public business emails for outreach.
- **Esports and gaming market research**: track which games and streams pull viewers right now, schedule hourly runs to build viewership history.
- **Talent and creator tracking**: monitor a roster of channels: followers, live status, last stream, next scheduled stream.
- **Clip and highlight curation**: top clips per channel and period, with MP4 links for editing tools that need a file.
- **Dashboards and AI agents**: clean JSON for Google Sheets, Looker Studio, Airtable, LLM workflows and MCP clients.

### How to use

1. Add channel names or URLs to **Channels** (for example `shroud`, `@pokimane`, `https://www.twitch.tv/xqc`).
2. Optionally set **Max VODs per channel** and **Max clips per channel**.
3. Set **Max live streams** (0 to skip) and optionally **Categories**, **Stream languages** and follower or viewer filters.
4. Set **Max top categories** if you want the game ranking.
5. Click Start. Open the **Channels**, **Live streams**, **Top categories**, **VODs** or **Clips** view, or export JSON, CSV or Excel.

The default input scrapes one channel plus the top 10 live streams on Twitch and costs about one cent.

#### Input example

```json
{
  "channels": ["shroud", "pokimane", "https://www.twitch.tv/xqc"],
  "includeEmails": true,
  "maxVodsPerChannel": 5,
  "vodType": "archive",
  "maxClipsPerChannel": 10,
  "clipPeriod": "LAST_WEEK",
  "includeClipVideoUrls": false,
  "maxLiveStreams": 30,
  "liveStreamGames": ["Just Chatting", "https://www.twitch.tv/directory/category/valorant"],
  "liveStreamLanguages": ["en", "es"],
  "minFollowers": 1000,
  "maxFollowers": 100000,
  "maxTopGames": 20
}
```

#### Input reference

| Field | What it does |
|---|---|
| `channels` | Channel names, `@names` or channel URLs. One profile row each. |
| `includeProfiles` | Turn off to get only VODs and clips of the channels. Default on. |
| `includeEmails` | Extract emails the streamer published in the bio or About panels. Default on. |
| `maxVodsPerChannel` | VODs per channel, 0 skips. |
| `vodType` | `archive` (past broadcasts), `highlight`, `upload` or `all`. |
| `vodSort` | `time` (newest first) or `views`. |
| `maxClipsPerChannel` | Top clips per channel, 0 skips. |
| `clipPeriod` | `LAST_DAY`, `LAST_WEEK`, `LAST_MONTH` or `ALL_TIME`. |
| `includeClipVideoUrls` | Add direct MP4 links to clips (they expire after about a day). |
| `maxLiveStreams` | Top live streams per category (or for all of Twitch). 0 skips. Default 10. |
| `liveStreamGames` | Category names exactly as on Twitch, or category URLs. Empty means all of Twitch. |
| `liveStreamLanguages` | Two letter codes such as `en`, `es`, `de`, `pt`, `ja`. |
| `minViewers`, `minFollowers`, `maxFollowers` | Stream filters, applied before billing. 0 means off. |
| `maxTopGames` | Top categories by viewers. 0 skips. |
| `twitchClientId`, `twitchClientSecret` | Optional: your own Twitch developer app, for lists past 30 rows. |
| `proxyConfiguration` | Optional Apify Proxy. Not needed for normal use. |
| `maxRetries` | Retries per request with backoff. Default 4. |

### Output

Every record has a `type`: `channel`, `stream`, `game`, `vod`, `clip` or `error`, plus `source` (`twitch-web` or `helix`) and `scrapedAt`.

#### Channel record

```json
{
  "type": "channel",
  "id": "37402112",
  "login": "shroud",
  "displayName": "shroud",
  "url": "https://www.twitch.tv/shroud",
  "description": "I'm back baby",
  "followers": 11287812,
  "broadcasterType": "partner",
  "isPartner": true,
  "isAffiliate": false,
  "language": "EN",
  "isLive": false,
  "streamTitle": null,
  "streamGame": null,
  "viewers": null,
  "channelTitle": "short dungeon sesh with the boys",
  "channelGame": "World of Warcraft",
  "lastBroadcastTitle": "short dungeon sesh with the boys",
  "lastBroadcastGame": "World of Warcraft",
  "lastBroadcastAt": "2026-11-18T00:48:44.519Z",
  "nextScheduledStreamAt": "2026-11-19T19:00:00.000Z",
  "totalVideos": 1621,
  "socialLinks": [
    { "network": "twitter", "title": "Twitter", "url": "https://twitter.com/shroud" },
    { "network": "youtube", "title": "YouTube", "url": "https://youtube.com/shroud" }
  ],
  "twitter": "https://twitter.com/shroud",
  "instagram": "https://instagram.com/shroud",
  "youtube": "https://youtube.com/shroud",
  "tiktok": null,
  "discord": "https://discord.gg/shroud",
  "panelLinks": [{ "title": null, "url": "https://www.youtube.com/shroud" }],
  "emails": [],
  "profileImageUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/...-profile_image-300x300.png",
  "createdAt": "2012-11-03T15:50:32.878Z",
  "source": "twitch-web",
  "scrapedAt": "2026-11-18T04:24:43.400Z"
}
```

A live channel also fills `streamId`, `streamTitle`, `streamGame`, `viewers`, `streamStartedAt`, `streamUptimeSeconds`, `streamTags` and `streamPreviewUrl`.

#### Live stream record

```json
{
  "type": "stream",
  "rank": 1,
  "id": "317908411383",
  "login": "caseoh_",
  "displayName": "caseoh_",
  "url": "https://www.twitch.tv/caseoh_",
  "title": "LOSING MY MIND",
  "viewers": 67792,
  "game": "Trees Hate You",
  "language": "EN",
  "tags": ["English"],
  "startedAt": "2026-11-18T03:01:16.000Z",
  "uptimeSeconds": 5008,
  "followers": 9258193,
  "broadcasterType": "partner",
  "thumbnailUrl": "https://static-cdn.jtvnw.net/previews-ttv/live_user_caseoh_-640x360.jpg"
}
```

#### Top category record

```json
{ "type": "game", "rank": 1, "id": "509658", "name": "Just Chatting", "slug": "just-chatting", "viewers": 192958, "liveChannels": 4692, "followers": 53334976, "tags": ["IRL"], "boxArtUrl": "https://static-cdn.jtvnw.net/ttv-boxart/509658-285x380.jpg" }
```

#### VOD record

```json
{ "type": "vod", "id": "2926037201", "url": "https://www.twitch.tv/videos/2926037201", "title": "hello!!! updates, shopping and more", "login": "pokimane", "vodType": "archive", "createdAt": "2026-11-11T18:55:38.000Z", "durationSeconds": 9257, "duration": "2:34:17", "viewCount": 200602, "game": "Just Chatting" }
```

#### Clip record

```json
{ "type": "clip", "slug": "FaintBrainyDonutVoteNay-YqJuCK9sQ4D4ZcC1", "url": "https://www.twitch.tv/pokimane/clip/FaintBrainyDonutVoteNay-YqJuCK9sQ4D4ZcC1", "title": "s", "login": "pokimane", "viewCount": 139894, "createdAt": "2026-11-01T04:34:54.000Z", "durationSeconds": 5, "game": "VALORANT", "curatorLogin": "tnico123", "vodId": "2886466687", "vodOffsetSeconds": 8041, "period": "LAST_MONTH", "videoUrls": [{ "quality": "1080", "frameRate": 60, "url": "https://...index.mp4?sig=...&token=..." }], "videoUrlsExpireAt": "2026-11-19T04:25:07.000Z" }
```

#### Error record (never charged)

```json
{ "type": "error", "input": "zz_nonexist_qq9x", "login": "zz_nonexist_qq9x", "error": "Channel \"zz_nonexist_qq9x\" not found (it may be banned, renamed or never existed)" }
```

A run summary (counts, notes about limits, request stats) is saved as `RUN_SUMMARY` in the default key-value store.

### How many results can I get?

Twitch's public website, as seen by a logged-out visitor, returns the **first 30 rows of each list**. Going further requires an anti-bot integrity token, which this actor does not obtain or bypass. In practice:

| List | Without credentials | With your Helix credentials |
|---|---|---|
| Channel profiles | Unlimited (10 per request) | Unlimited |
| Live streams, all of Twitch or one category | 30 per language. Above 30 the actor automatically adds one query per language and merges by viewers: the top 30 are exact, deeper rows are best effort. With `liveStreamLanguages` set, up to 30 per language, exact. | As many as you ask (exact ranking, 100 per page) |
| Top categories | 30 | As many as you ask |
| VODs per channel | 30 per type (90 with `all`) | As many as you ask |
| Clips per channel | 30 per period | As many as you ask |

#### Optional: Helix credentials for long lists

1. Go to dev.twitch.tv/console/apps and register an application (free; any name, OAuth redirect `http://localhost`, category Analytics Tool).
2. Copy the Client ID and create a Client Secret.
3. Paste both into the **Helix API** section. The secret is stored encrypted by Apify.

The actor uses the app access token flow (no Twitch user login) and only for lists longer than 30 rows. Follower counts and category viewer counts are still filled from public data, because Helix does not return them to app tokens.

### Pricing

Pay per event, no monthly rental. You pay a small start fee per run and a fee per saved row: channel profiles cost a bit more than streams, categories, VODs and clips, because each profile carries much more data. See the **Pricing** tab for the exact amounts. Error rows, rows removed by your filters and duplicates are free, and the run stops cleanly when your max cost per run is reached.

### API and integrations

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('zhtech/twitch-scraper').call({
    channels: ['shroud', 'pokimane'],
    maxLiveStreams: 20,
    liveStreamGames: ['Just Chatting'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((i) => i.type === 'stream'));
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("zhtech/twitch-scraper").call(run_input={"maxLiveStreams": 0, "maxTopGames": 30})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["rank"], item["name"], item["viewers"])
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/zhtech~twitch-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"channels":["shroud"],"maxClipsPerChannel":10,"clipPeriod":"LAST_WEEK","maxLiveStreams":0}'
```

#### LLM agents and MCP

Connect the Apify MCP server with only this actor enabled, for example `https://mcp.apify.com?tools=zhtech/twitch-scraper`, in Claude Desktop, Cursor, VS Code or any MCP client. Example prompts:

- "Get the top 30 English live streams in Just Chatting with 10,000 to 100,000 followers and list their Twitter links."
- "Which 20 categories have the most viewers on Twitch right now?"
- "Is shroud live? If not, when was his last stream and what did he play?"

Other integrations: Google Sheets, Make, Zapier, Slack, webhooks and schedules from the Apify Console.

### FAQ

**Do I need a Twitch account or API key?** No. Everything works without login. Helix credentials are optional and only for lists longer than 30 rows.

**Why did I get fewer live streams than I asked for?** Without Helix credentials each list is limited to what Twitch's logged-out website serves (see the table above), and your viewer, follower and language filters remove rows. The run log and `RUN_SUMMARY.notes` explain which limit applied.

**Are the emails real?** They are addresses the streamer typed into the public bio or About panels. Many channels publish none. Turn extraction off with `includeEmails: false`.

**How fresh is the data?** Live data (viewers, live status, rankings) is as of the moment of the run. Schedule the actor to track changes over time.

**Can I get chat messages or subscriber counts?** No. Subscriber counts are private, and chat is out of scope.

**How long do clip MP4 links work?** About a day (see `videoUrlsExpireAt`). Run again to get fresh links.

### Limitations

- Lists are capped at 30 rows per query without Helix credentials (see above). Deeper language widened stream rankings are best effort.
- Clips are sorted by views; Twitch's public site does not offer newest first clips.
- Twitch reports some channels' stream language differently from their tags; with a language filter we keep only streams whose language matches.
- Data reflects what Twitch shows publicly at run time; banned or renamed channels return an error row.

### Responsible use

This actor collects only data that Twitch shows publicly to logged-out visitors. It does not log in, does not bypass anti-bot protection and does not access private data. Twitch's Terms of Service restrict automated data collection, so review them for your use case. Personal data such as emails is subject to GDPR, CCPA and anti-spam laws: have a legitimate purpose and honor opt outs. Clips and VODs are the creators' content; downloading or reusing them may require permission.

This actor is an independent tool by ZH Tech and is not affiliated with, endorsed by or sponsored by Twitch or Amazon.

# Actor input Schema

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

Twitch channel names or URLs, for example shroud, @pokimane or https://www.twitch.tv/xqc. Each channel gives one profile record (followers, bio, social links, partner or affiliate status, live status with current title, game and viewers). Leave empty if you only want live streams or top categories.

## `includeProfiles` (type: `boolean`):

Turn off to only collect VODs and clips of the channels above, without profile records.

## `includeEmails` (type: `boolean`):

Collect email addresses that the streamer publicly wrote in the channel bio or About panels (usually business contact emails). Only what is visible on the channel page.

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

Recent videos (past broadcasts, highlights, uploads) per channel. 0 skips VODs. Without Helix credentials Twitch's logged-out site gives up to 30 per video type (90 with type "All").

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

Which videos to collect.

## `vodSort` (type: `string`):

Newest first or most viewed first.

## `maxClipsPerChannel` (type: `integer`):

Top clips per channel for the period below, most viewed first. 0 skips clips. Up to 30 without Helix credentials.

## `clipPeriod` (type: `string`):

Time window for clips.

## `includeClipVideoUrls` (type: `boolean`):

Adds direct MP4 links (1080p, 720p, 480p, 360p when available) to each clip, the same links the Twitch player uses. They expire after about a day (see videoUrlsExpireAt). Costs one extra request per clip.

## `maxLiveStreams` (type: `integer`):

Top live streams by current viewers, for all of Twitch or for each category below. 0 skips live streams. Up to 30 per category and language without Helix credentials; above 30 the ranking is widened with one query per language (best effort).

## `liveStreamGames` (type: `array`):

Category names exactly as on Twitch (Just Chatting, VALORANT, League of Legends) or category URLs (https://www.twitch.tv/directory/category/fortnite). Empty means the top live streams across all of Twitch.

## `liveStreamLanguages` (type: `array`):

Only keep streams in these languages, as 2 letter codes (en, es, de, fr, pt, ja, ko, ru). Each language is queried separately, so this also raises the 30 row limit.

## `minViewers` (type: `integer`):

Skip streams with fewer current viewers. 0 means no minimum.

## `minFollowers` (type: `integer`):

Skip streams whose channel has fewer followers. 0 means no minimum.

## `maxFollowers` (type: `integer`):

Skip streams whose channel has more followers (useful for finding small and mid size streamers). 0 means no maximum.

## `maxTopGames` (type: `integer`):

Top games and categories ranked by current viewers, with live channel counts and followers. 0 skips this. Up to 30 without Helix credentials.

## `twitchClientId` (type: `string`):

Optional. Your own free Twitch developer app (dev.twitch.tv/console/apps). With a Client ID and Secret the actor uses the official Helix API for lists longer than 30 rows (live streams, top categories, VODs, clips). No Twitch login is needed, only app credentials.

## `twitchClientSecret` (type: `string`):

Secret of the same Twitch developer app. Stored encrypted by Apify.

## `proxyConfiguration` (type: `object`):

Usually not needed: Twitch's public endpoints are light and fast. Enable Apify Proxy (datacenter is enough) only if you run very large or very frequent jobs and see rate limit errors.

## `maxRetries` (type: `integer`):

How many times a failed or rate limited request is retried with backoff.

## Actor input object example

```json
{
  "channels": [
    "shroud"
  ],
  "includeProfiles": true,
  "includeEmails": true,
  "maxVodsPerChannel": 0,
  "vodType": "archive",
  "vodSort": "time",
  "maxClipsPerChannel": 0,
  "clipPeriod": "LAST_WEEK",
  "includeClipVideoUrls": false,
  "maxLiveStreams": 10,
  "minViewers": 0,
  "minFollowers": 0,
  "maxFollowers": 0,
  "maxTopGames": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "maxRetries": 4
}
```

# Actor output Schema

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

No description

## `channels` (type: `string`):

No description

## `streams` (type: `string`):

No description

## `games` (type: `string`):

No description

## `videos` (type: `string`):

No description

## `clips` (type: `string`):

No description

## `runSummary` (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 = {
    "channels": [
        "shroud"
    ],
    "maxLiveStreams": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhtech/twitch-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 = {
    "channels": ["shroud"],
    "maxLiveStreams": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("zhtech/twitch-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 '{
  "channels": [
    "shroud"
  ],
  "maxLiveStreams": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call zhtech/twitch-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zhtech/twitch-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/dRW70kZc2riRidn3j/builds/rOQbeAkyiG5sobyaR/openapi.json
