# Twitch Scraper — Channels, Emails, Live Streams, VODs & Clips (`jaybird/twitch-scraper`) Actor

Scrape Twitch channels by name, keyword search or game: followers, partner/affiliate status, bio emails, social links, live status and viewers, plus live streams per category, VODs, clips and top categories. No login, no start fee.

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

## Pricing

Pay per event

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 Scraper — Channels, Emails, Live Streams, VODs & Clips

Get Twitch data without a login or API key: channel profiles (followers, partner/affiliate, bio emails, social links, live status), live streams per game/category, videos (VODs), clips and top categories. Pay only for results — **no start fee**.

### What you can scrape

| Source | Input | What you get |
|---|---|---|
| **Channels** | names or `twitch.tv/<channel>` URLs | One channel record each |
| **Keyword search** | e.g. `speedrun`, `valorant coach` | Channels matching the keyword (paginated) |
| **Games / categories** | `VALORANT`, `Just Chatting` or `twitch.tv/directory/category/<slug>` | Channels live in that category now; optional full streamer profiles |
| **Top live streams** | toggle | Twitch's top 30 live streams |
| **Top categories** | toggle | Up to 100 categories by live viewers |
| **Videos / clips** | toggles | For every channel saved: latest or most-viewed VODs, highlights, uploads; most-viewed clips per period |

#### Channel record

`login, displayName, channelId, url, description, followers, isPartner, isAffiliate, isLive, liveViewers, liveTitle, liveGame, liveStartedAt, lastBroadcastAt, lastBroadcastTitle, lastBroadcastGame, language, team, createdAt, profileImageUrl, bannerImageUrl, emails[], panelLinks[], socialLinks[], socials{twitter, youtube, instagram, tiktok, discord, ...}`

Emails are those the streamer publishes in their bio or About panels.

#### Stream record

`rank, streamId, title, viewers, startedAt, language, tags[], game, login, displayName, followers, isPartner, isAffiliate, url, previewImageUrl, sourceGame, sort`

#### Video / clip / game records

- Video: `videoId, url, title, videoType (archive/highlight/upload), lengthSeconds, views, publishedAt, language, game, tags, login`
- Clip: `clipId, slug, url, embedUrl, title, views, createdAt, durationSeconds, language, game, clippedBy, vodId, vodOffsetSeconds, login, clipPeriod`
- Game: `gameId, name, slug, url, viewers, liveChannels, followers, tags, boxArtUrl, rank`

### Filters

Min/max followers, languages, only live, only channels with an email, partner/affiliate. Filtered records are **not charged**. Duplicates (same channel from two searches, same clip in two periods) are skipped and not charged.

### Example input

```json
{
  "searchQueries": ["speedrun"],
  "games": ["VALORANT"],
  "streamSorts": ["viewersAsc"],
  "saveStreamerProfiles": true,
  "minFollowers": 500,
  "languages": ["en"],
  "onlyWithEmail": true
}
```

### Pricing (pay per event, no start fee)

| Event | Price |
|---|---|
| Channel (profile with emails and social links) | $0.0015 |
| Live stream | $0.0005 |
| Video | $0.0005 |
| Clip | $0.0005 |
| Game / category | $0.0005 |

Example: 1,000 channel profiles = $1.50; 1,000 live streams = $0.50. Set **Max total charge** on the run to cap spend; the Actor stops cleanly when it is reached.

### Limits (be aware)

- Twitch only lets anonymous visitors load the **first page** of most lists. Per game you get up to ~100 live streams per sort order and language (combine "Most viewers", "Fewest viewers", "Recently started" and languages for up to 300). Top streams are limited to 30, videos to 100 per channel, clips to 100 per channel per period. Keyword search paginates normally.
- Follower *lists*, subscriber counts, chat and private data are not available.
- Social links come from the channel's About section; Twitch sometimes withholds them, in which case `socialLinks` is `null` (rare).
- Data is live: viewer counts and live status are as of the scrape time.

### FAQ

**Do I need a Twitch account or API key?** No.
**Do I need a proxy?** No. Leave the proxy setting empty.
**Is it legal?** It collects publicly visible data. You are responsible for how you use it (e.g. outreach must follow anti-spam laws such as CAN-SPAM/GDPR).

# Actor input Schema

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

Twitch channel names or URLs, e.g. shroud or https://www.twitch.tv/shroud. Each one gives a channel record (and videos/clips if turned on).

## `searchQueries` (type: `array`):

Keywords to search Twitch channels, e.g. speedrun or valorant coach. Good for finding streamers in a niche.

## `maxChannelsPerSearch` (type: `integer`):

Channel records to save per keyword (after filters).

## `games` (type: `array`):

Game or category names (e.g. VALORANT, Just Chatting) or URLs like https://www.twitch.tv/directory/category/valorant. Returns the channels live in that category right now.

## `maxStreamsPerGame` (type: `integer`):

Twitch shows up to ~100 streams per sort order and language without a browser session. Combine sort orders and languages to get more (up to 300).

## `streamSorts` (type: `array`):

Each sort order is a separate list of up to ~100 streams. 'Fewest viewers' finds small streamers (useful for outreach).

## `saveStreams` (type: `boolean`):

Save one record per live stream (title, viewers, language, tags, start time, streamer followers).

## `saveStreamerProfiles` (type: `boolean`):

For games and top streams: also save a channel record (bio, emails, social links, partner status) for each streamer. Charged as Channel.

## `includeGameInfo` (type: `boolean`):

Viewers, live channels, followers and tags of each input category. Charged as Game.

## `includeTopStreams` (type: `boolean`):

Twitch's current top 30 live streams.

## `includeTopGames` (type: `boolean`):

Top categories by live viewers (up to 100).

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

How many top categories to save.

## `includeSocialLinks` (type: `boolean`):

YouTube, X/Twitter, Instagram, TikTok, Discord and other links from the channel's About section. Included in the Channel price.

## `scrapeVideos` (type: `boolean`):

For every channel saved (inputs, searches, streamer profiles).

## `maxVideosPerChannel` (type: `integer`):

Videos per channel (Twitch allows up to 100 without a browser session).

## `videoSort` (type: `string`):

Newest first or most viewed first.

## `videoTypes` (type: `array`):

Leave empty for all types.

## `scrapeClips` (type: `boolean`):

Most-viewed clips for every channel saved.

## `clipPeriods` (type: `array`):

Each period gives up to 'Max clips' most-viewed clips; duplicates across periods are skipped and not charged.

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

Clips per channel for each selected period.

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

Skip channels and streams with fewer followers (not charged).

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

Skip channels and streams with more followers (not charged).

## `languages` (type: `array`):

Two-letter codes like en, es, de. Filters channels and streams; for games it also asks Twitch for streams in each language.

## `onlyLive` (type: `boolean`):

Skip channels that are offline right now (not charged).

## `onlyWithEmail` (type: `boolean`):

Skip channels without a public email (not charged).

## `channelStatus` (type: `string`):

Keep only partners and/or affiliates.

## `maxConcurrency` (type: `integer`):

Channels processed in parallel.

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

Not needed. Leave empty; social links are fetched through Apify residential proxy automatically when Twitch requires it.

## Actor input object example

```json
{
  "channels": [
    "shroud",
    "https://www.twitch.tv/lirik"
  ],
  "maxChannelsPerSearch": 50,
  "maxStreamsPerGame": 100,
  "streamSorts": [
    "viewersDesc"
  ],
  "saveStreams": true,
  "saveStreamerProfiles": false,
  "includeGameInfo": false,
  "includeTopStreams": false,
  "includeTopGames": false,
  "maxTopGames": 100,
  "includeSocialLinks": true,
  "scrapeVideos": false,
  "maxVideosPerChannel": 30,
  "videoSort": "time",
  "scrapeClips": false,
  "clipPeriods": [
    "week"
  ],
  "maxClipsPerChannel": 30,
  "onlyLive": false,
  "onlyWithEmail": false,
  "channelStatus": "any",
  "maxConcurrency": 5
}
```

# 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 = {
    "channels": [
        "shroud",
        "https://www.twitch.tv/lirik"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jaybird/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",
        "https://www.twitch.tv/lirik",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jaybird/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",
    "https://www.twitch.tv/lirik"
  ]
}' |
apify call jaybird/twitch-scraper --silent --output-dataset

```

## MCP server setup

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