# Twitch Scraper (`donjuan_mime/twitch-scraper`) Actor

Scrape Twitch channels, live streams by category, top streams, VODs, and clips: followers, viewers, titles, categories, views, durations, and dates. No login needed.

- **URL**: https://apify.com/donjuan_mime/twitch-scraper.md
- **Developed by:** [Donjuan](https://apify.com/donjuan_mime) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

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, live streams, videos, and clips

Twitch Scraper collects public data from Twitch. Get a channel's profile with its followers, partner status, live stream, and last broadcast. See who is live in a category or across all of Twitch, with viewers, titles, languages, and tags. Collect a channel's past broadcasts, highlights, and uploads with views and duration, and its most viewed clips for a day, a week, a month, or all time.

You don't need a Twitch account, an API key, or any code. Add channels, categories, or links, press **Start**, and download the results as JSON, CSV, Excel, XML, or HTML. Or pull them into your app through the Apify API.

### What can you do with Twitch data?

- **Find streamers to work with.** Rank channels in a category by viewers and followers, and check who is partnered.
- **Track a category.** Snapshot the live streams of a game every few minutes to see how many people stream and watch it, and in which languages.
- **Monitor channels.** Watch follower counts, live status, and stream titles of the channels you care about on a schedule.
- **Find the best moments.** Pull a channel's most viewed clips for a week or all time for highlights, research, or content ideas.
- **Analyze content.** Video titles, categories, durations, and views show what a channel streams and what performs.

### What data does Twitch Scraper extract?

| Item | Fields |
|---|---|
| Channel | ID, login, display name, URL, bio, profile image, followers, partner and affiliate flags, account creation date, live status, current stream (title, category, viewers, start time), last broadcast |
| Live stream | ID, title, channel URL, viewers, category, language, tags, thumbnail, start time, channel |
| Video | ID, title, URL, type (past broadcast, highlight, upload), duration, views, category, thumbnail, publish time, channel |
| Clip | ID, slug, title, URL, views, duration, category, thumbnail, who clipped it, creation time, channel |

### How to scrape Twitch

1. Open the actor and go to the **Input** tab.
2. Add channels, categories, or twitch.tv links, or turn on top live streams. You can mix them.
3. Turn on **Include videos** or **Include clips** if you want them for every channel.
4. Press **Start**. When the run finishes, open the **Output** tab to preview the tables, or press **Export** to download the data.

### Input

| Field | Type | Description |
|---|---|---|
| `channels` | array of strings | Logins (`shroud`) or channel links. |
| `categories` | array of strings | Category names as Twitch shows them: `Just Chatting`, `Counter-Strike`. |
| `includeTopStreams` | boolean | Also scrape the most watched live streams on Twitch. |
| `languages` | array of strings | Only live streams in these languages: `en`, `de`, `uk`. |
| `startUrls` | array | Links to channels, `/videos` or `/clips` pages, videos, clips, categories, or the directory. |
| `maxItems` | integer | Live streams per category, up to 100 (top streams: up to 30). |
| `includeVideos` | boolean | Also collect each channel's videos. |
| `videoType` | string | `all`, `archive`, `highlight`, or `upload`. |
| `maxVideosPerChannel` | integer | Up to 100. |
| `includeClips` | boolean | Also collect each channel's most viewed clips. |
| `clipPeriod` | string | `LAST_DAY`, `LAST_WEEK`, `LAST_MONTH`, or `ALL_TIME`. |
| `maxClipsPerChannel` | integer | Up to 100. |

Example input:

```json
{
  "channels": ["shroud", "xqc"],
  "categories": ["Just Chatting"],
  "languages": ["en"],
  "maxItems": 100,
  "includeVideos": true,
  "videoType": "archive",
  "includeClips": true,
  "clipPeriod": "LAST_MONTH"
}
```

### Output

Every item has a `type`: `channel`, `stream`, `video`, or `clip`. A channel looks like this:

```json
{
  "type": "channel",
  "id": "37402112",
  "login": "shroud",
  "displayName": "shroud",
  "url": "https://www.twitch.tv/shroud",
  "followers": 11286932,
  "isPartner": true,
  "isAffiliate": false,
  "createdAtISO": "2012-11-03T15:50:32.87847Z",
  "isLive": false,
  "lastBroadcast": {
    "title": "short dungeon sesh with the boys",
    "startedAtISO": "2026-11-18T00:48:44.519028Z"
  },
  "input": "shroud"
}
```

Streams, videos, and clips carry a `channel` object with the login, display name, and URL of the channel they belong to.

### Limits

- **Up to 100 items per list.** Twitch serves only the first page of a list to visitors, so each category gives up to 100 live streams (top streams up to 30), and each channel up to 100 videos and 100 clips. For more clips, run the same channel with different clip periods.
- **Live data is a snapshot.** Viewers and live status are as of the moment the run reads them; schedule the actor to track them over time.
- **Chat and subscriber-only content are not included.**

### Is it legal to scrape Twitch?

The scraper reads only public data that twitch.tv shows to any visitor. Personal data such as usernames is protected by laws like the GDPR, so collect it only for a legitimate purpose, and consult a lawyer if you are unsure.

# Actor input Schema

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

Channels to scrape, as a login (shroud) or a twitch.tv link. Each gives the channel's profile and live status, plus its videos and clips if turned on below.

## `categories` (type: `array`):

Categories (games) whose live streams to scrape, most viewers first, by their name on Twitch, for example "Just Chatting" or "Counter-Strike".

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

Also scrape the most watched live streams on Twitch right now, up to 30.

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

Only take live streams in these languages, as two-letter codes such as en, de, or uk. Applies to categories and top streams.

## `startUrls` (type: `array`):

twitch.tv links: a channel, a channel's /videos or /clips page, a video, a clip, a category (twitch.tv/directory/category/just-chatting), or the directory for top streams.

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

The maximum number of live streams from each category, up to 100, and from top streams, up to 30.

## `includeVideos` (type: `boolean`):

Also collect each channel's videos (past broadcasts, highlights, uploads), newest first.

## `videoType` (type: `string`):

Which videos to collect.

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

The maximum number of videos from each channel, up to 100.

## `includeClips` (type: `boolean`):

Also collect each channel's most viewed clips.

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

The time window for the most viewed clips.

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

The maximum number of clips from each channel, up to 100.

## Actor input object example

```json
{
  "channels": [
    "shroud"
  ],
  "includeTopStreams": false,
  "maxItems": 30,
  "includeVideos": false,
  "videoType": "all",
  "maxVideosPerChannel": 50,
  "includeClips": false,
  "clipPeriod": "LAST_WEEK",
  "maxClipsPerChannel": 50
}
```

# Actor output Schema

## `items` (type: `string`):

One item per channel, live stream, video, or clip.

# 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"
    ],
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("donjuan_mime/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"],
    "maxItems": 30,
}

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

```

## MCP server setup

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