# Twitch Scraper — Streams, Channels, Clips & VODs (No OAuth) (`cryptosignals/twitch-scraper`) Actor

Scrape Twitch without an OAuth token: live streams by game, top games by viewers, full channel profiles with follower counts, top clips (24h/7d/30d/all-time), and past broadcasts (VODs). Five modes, one actor. For esports analytics, influencer discovery, and clip curation. $0.01/result.

- **URL**: https://apify.com/cryptosignals/twitch-scraper.md
- **Developed by:** [Web Data Labs](https://apify.com/cryptosignals) (community)
- **Categories:** Social media, Games, Videos
- **Features:** Limited permissions
- **Stats:** 80 total users, 21 monthly users, 98.9% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 result 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 Scraper — Streams, Games, Channels, Clips & Videos

Extract live streams, top games by viewer count, full channel profiles, top clips, and past broadcasts (VODs) from Twitch — **no OAuth token required**. Built on Twitch's public GQL API used by the Twitch web app itself.

### Why Use This Twitch Scraper?

Twitch is the dominant live streaming platform with millions of concurrent viewers. Whether you're tracking game trends, discovering influencers, monitoring esports viewership, or researching the streaming market — this scraper gives you structured data without needing Twitch API credentials or developer registration.

**No OAuth token needed.** No Twitch developer account required. The scraper uses the same public GraphQL API that powers the Twitch website.

### Features

- **Live streams** — Get currently live streams across all categories or filtered by game
- **Top games** — Real-time leaderboard of games ranked by live viewer count
- **Channel profiles** — Followers, total views, account-created date, bio, partner/affiliate status, primary game, social links, profile & banner images, and live status
- **Clips** — Top clips for a channel or a whole game/category, by time window (24h / 7d / 30d / all-time)
- **Videos / VODs** — Past broadcasts, highlights, and uploads for any channel
- **No API credentials** — Uses Twitch's public GQL endpoint (no OAuth/Client-ID needed)
- **JSON & CSV export** — Download results in JSON, CSV, Excel, XML, or RSS
- **Schedule-friendly** — Run hourly/daily to build time-series datasets of Twitch metrics

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `action` | string | Yes | `streams` | `streams`, `top-games`, `channel`, `clips`, or `videos` |
| `game_name` | string | No | — | Game/category name. Filters `streams`; selects category clips for `clips` |
| `username` | string | Conditional | — | Twitch username. Required for `channel` and `videos`; for `clips` provide a username **or** a `game_name` |
| `clips_period` | string | No | `LAST_WEEK` | Time window for `clips`: `LAST_DAY`, `LAST_WEEK`, `LAST_MONTH`, `ALL_TIME` |
| `clips_sort` | string | No | `VIEWS_DESC` | Sort for `clips`: `VIEWS_DESC` (most viewed) or `TRENDING` |
| `video_type` | string | No | `ALL` | Filter for `videos`: `ALL`, `ARCHIVE`, `HIGHLIGHT`, `UPLOAD` |
| `video_sort` | string | No | `TIME` | Sort for `videos`: `TIME` (newest) or `VIEWS` |
| `maxItems` | integer | No | `25` | Maximum results to return (1–500, always 1 for `channel`) |

### Example Input

#### Get Top Live Streams

```json
{
    "action": "streams",
    "maxItems": 50
}
```

#### Get Streams for a Specific Game

```json
{
    "action": "streams",
    "game_name": "Valorant",
    "maxItems": 30
}
```

#### Get Top Games by Viewers

```json
{
    "action": "top-games",
    "maxItems": 100
}
```

#### Get Channel Details

```json
{
    "action": "channel",
    "username": "shroud"
}
```

#### Get Top Clips for a Channel

```json
{
    "action": "clips",
    "username": "xqc",
    "clips_period": "LAST_WEEK",
    "clips_sort": "VIEWS_DESC",
    "maxItems": 50
}
```

#### Get Top Clips for a Game/Category

```json
{
    "action": "clips",
    "game_name": "Just Chatting",
    "clips_period": "LAST_MONTH",
    "maxItems": 100
}
```

#### Get a Channel's Past Broadcasts (VODs)

```json
{
    "action": "videos",
    "username": "pokimane",
    "video_type": "ARCHIVE",
    "video_sort": "TIME",
    "maxItems": 50
}
```

### Output Format

#### Stream Result

```json
{
    "login": "tarik",
    "display_name": "tarik",
    "title": "Ranked grind — Road to Radiant",
    "game_id": "516575",
    "game_name": "Valorant",
    "viewer_count": 28500,
    "started_at": "2026-03-30T14:22:00Z",
    "language": "en",
    "thumbnail_url": "https://static-cdn.jtvnw.net/previews-ttv/live_user_tarik-640x360.jpg",
    "tags": ["English", "FPS", "Competitive"]
}
```

#### Top Game Result

```json
{
    "rank": 1,
    "game_id": "509658",
    "game_name": "Just Chatting",
    "viewer_count": 385000,
    "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/509658-285x380.jpg"
}
```

#### Channel Result (enriched)

```json
{
    "user_id": "37402112",
    "login": "shroud",
    "display_name": "shroud",
    "description": "Professional gamer and streamer",
    "is_partner": true,
    "is_affiliate": false,
    "broadcaster_type": "partner",
    "follower_count": 10200000,
    "primary_game": "Counter-Strike 2",
    "social_links": [
        { "name": "twitter", "title": "Twitter", "url": "https://twitter.com/shroud" },
        { "name": "youtube", "title": "YouTube", "url": "https://youtube.com/shroud" }
    ],
    "created_at": "2012-10-08T18:13:01Z",
    "profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/shroud-profile.png",
    "banner_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/shroud-banner.png",
    "primary_color_hex": "0000FF",
    "is_live": true,
    "stream": {
        "title": "CS2 with the boys",
        "game_name": "Counter-Strike 2",
        "viewer_count": 42000,
        "started_at": "2026-05-29T14:22:00Z",
        "language": "en"
    }
}
```

> Note: `social_links` is best-effort — Twitch only exposes a channel's social links to some clients, so this array may be empty for certain runs even when the channel has links set.

#### Clip Result

```json
{
    "clip_id": "3325252103",
    "slug": "AmericanHappyCurryVoteYea-RsgaDwmUmP2dganr",
    "title": "INSANE 1v5 CLUTCH",
    "url": "https://www.twitch.tv/xqc/clip/AmericanHappyCurryVoteYea-RsgaDwmUmP2dganr",
    "view_count": 120050,
    "duration_seconds": 40,
    "created_at": "2026-05-22T23:38:22Z",
    "creator_login": "someclipper",
    "creator_name": "SomeClipper",
    "broadcaster_login": "xqc",
    "broadcaster_name": "xQc",
    "game_id": "509658",
    "game_name": "Just Chatting",
    "thumbnail_url": "https://clips-media-assets2.twitch.tv/.../thumb-1920x1080.jpg",
    "video_id": "2783188044"
}
```

#### Video / VOD Result

```json
{
    "video_id": "2783188044",
    "title": "Ranked grind — full session",
    "url": "https://www.twitch.tv/videos/2783188044",
    "view_count": 412000,
    "duration_seconds": 21600,
    "published_at": "2026-05-28T20:00:00Z",
    "created_at": "2026-05-28T12:00:00Z",
    "type": "ARCHIVE",
    "game_id": "509658",
    "game_name": "Just Chatting",
    "channel_login": "pokimane",
    "channel_name": "pokimane",
    "thumbnail_url": "https://static-cdn.jtvnw.net/.../thumb-1920x1080.jpg"
}
```

### How to Use with Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

## Get top 50 live streams
run = client.actor("cryptosignals/twitch-scraper").call(run_input={
    "action": "streams",
    "maxItems": 50,
})

for stream in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{stream['display_name']} playing {stream['game_name']} — {stream['viewer_count']} viewers")
```

```python
## Track top games over time (schedule this hourly)
run = client.actor("cryptosignals/twitch-scraper").call(run_input={
    "action": "top-games",
    "maxItems": 20,
})

for game in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{game['name']} — {game['viewer_count']:,} viewers")
```

### Use Cases

#### Streaming Analytics & Market Research

- Track which games are trending by viewer count over time
- Monitor viewer distribution across a game's top broadcasters
- Build time-series databases of Twitch metrics by scheduling hourly runs

#### Influencer Discovery & Sponsorship

- Find mid-tier creators (1,000–10,000 viewers) for sponsorship outreach
- Filter streamers by language to target specific geographic markets
- Get follower counts and broadcaster type (partner/affiliate) for any channel

#### Game Industry Intelligence

- Track whether a game announcement translates to Twitch viewership
- Identify breakout games before they hit mainstream awareness
- Compare viewer counts across competing titles during launch windows

#### Esports & Competitive Gaming

- Monitor tournament viewership in real-time
- Track pro player streaming schedules and viewer counts
- Analyze which esports titles are gaining or losing audience share

### Working Around Bot Detection

Twitch's GQL API is relatively permissive since it's the same endpoint the website uses. However, aggressive scraping from a single IP can trigger rate limiting or temporary blocks.

For high-frequency scraping (multiple runs per hour) or large result sets, use residential proxies to distribute requests. [ThorData](https://thordata.partnerstack.com/partner/0a0x4nzh) offers residential proxies that make requests appear to come from regular Twitch viewers, reducing the chance of blocks.

### Integrations

- **Google Sheets** — Export viewer data to spreadsheets for analysis
- **Zapier / Make.com** — Get alerts when a specific streamer goes live or a game hits a viewer threshold
- **Slack / Discord** — Notify your team about trending streams or games
- **API** — Call programmatically from any language using the Apify API

### FAQ

**Is this legal?**
This scraper accesses Twitch's public GQL API, the same endpoint used by the Twitch website. It only collects publicly visible data. Review Twitch's Terms of Service for your specific use case.

**Do I need a Twitch account?**
No. The scraper uses Twitch's public unauthenticated GQL endpoint.

**How fresh is the data?**
Data is real-time — viewer counts and live status reflect the moment the scraper runs. Schedule the actor to run periodically for up-to-date monitoring.

**Can I filter streams by language?**
Not directly via input parameters, but you can filter the output dataset by the `language` field after the run completes.

***

*Found this actor useful? [Leave a review](https://apify.com/cryptosignals/twitch-scraper#reviews) - it helps a lot. Something broken? Report it on the [Issues tab](https://apify.com/cryptosignals/twitch-scraper/issues).*

# Actor input Schema

## `action` (type: `string`):

What to scrape: 'streams' (live streams, optionally by game), 'top-games' (top games by viewers), 'channel' (a single channel's full profile), 'clips' (top clips for a channel or a game), 'videos' (a channel's past broadcasts / VODs / highlights / uploads).

## `game_name` (type: `string`):

Game/category name (e.g. 'Minecraft', 'Just Chatting'). For 'streams': filter live streams by category. For 'clips': get top clips of this category (used when no username is given). Leave empty for top streams across all categories.

## `username` (type: `string`):

Twitch username/login (e.g. 'xqc', 'pokimane'). Required for 'channel' and 'videos'. For 'clips', provide either a username (channel clips) or a game_name (category clips).

## `clips_period` (type: `string`):

Time window for the 'clips' action.

## `clips_sort` (type: `string`):

Sort order for the 'clips' action.

## `video_type` (type: `string`):

Filter for the 'videos' action. 'ALL' returns every type.

## `video_sort` (type: `string`):

Sort order for the 'videos' action.

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

Maximum number of results to return. For the 'channel' action this is always 1.

## Actor input object example

```json
{
  "action": "streams",
  "clips_period": "LAST_WEEK",
  "clips_sort": "VIEWS_DESC",
  "video_type": "ALL",
  "video_sort": "TIME",
  "maxItems": 25
}
```

# Actor output Schema

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("cryptosignals/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 = {}

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

```

## MCP server setup

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