# Twitch Live Streams Scraper - Viewers by Game & Language (`cliqtomedia/twitch-streams`) Actor

Who is live on Twitch right now by game, language or channel: viewer count, title, tags, uptime and thumbnail from the official Twitch Helix API with your own free Client ID and Secret. No cookies, no proxy.

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

## Pricing

from $0.70 / 1,000 live streams

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 Live Streams Scraper finds who is live on Twitch right now in a game, a language or a list of channels, and returns one row per stream with viewers, title, tags, uptime and channel link from the official Twitch API, using your own free Twitch key.

Use it to scout streamers, watch a category or check your channel list; the smallest run is one category name like `Just Chatting` and gives 20 live streams in about 5 seconds.

![Twitch Live Streams Scraper: choose a game, language and minimum viewers, get live streams with viewers and uptime, export as JSON or CSV](https://api.apify.com/v2/key-value-stores/ISE2gD7YZKf3qPjJP/records/hero.png)

### Table of contents

- [What it does](#what-it-does)
- [Get your free Twitch key](#get-your-free-twitch-key)
- [Quick start](#quick-start)
- [Use cases](#use-cases)
- [Input](#input)
- [Output](#output)
- [Pricing and limits](#pricing-and-limits)
- [API, export and integrations](#api-export-and-integrations)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Support](#support)

### What it does

The Actor asks Twitch which streams are live at this moment. You choose the filters: game or category names, stream languages, channels and a minimum viewer count. Twitch sends the most-watched streams first, and the Actor saves them to the Dataset until it reaches **Max streams** or Twitch has no more live streams for your filters.

Every row is one live stream. A missing number stays `null`; it is never shown as 0.

#### Good fit

- Find the biggest live streams in a game, for example all English VALORANT streams with 1,000+ viewers.
- Build a list of Spanish, German or Japanese streamers who are live now in a category.
- Check which channels from your own list (up to 500) are live, with viewers and uptime.
- Run it on a schedule and keep a history of who streams what and when.

#### Not a fit / limits

- Only streams that are live right now. Offline channels, past broadcasts, clips and VODs are not returned.
- No follower counts, channel bios or chat messages.
- You need your own Twitch app (free, takes about 2 minutes). Without it the Actor returns one free notice row.
- At most 10,000 streams per run.

### Get your free Twitch key

The Actor uses the official Twitch API with **your own** Twitch app. Twitch does not charge for it.

1. Sign in to Twitch and turn on **two-factor authentication** (Settings → Security and Privacy). Twitch requires it for developer apps.
2. Open [dev.twitch.tv/console/apps](https://dev.twitch.tv/console/apps) and click **Register Your Application**.
3. Enter any name, add `http://localhost` as the OAuth Redirect URL, choose any category and **Client Type: Confidential**. Click **Create**.
4. Click **Manage** on your app. Copy the **Client ID**. Click **New Secret** and copy the **Client Secret**.
5. Paste both into the Actor input. They are stored encrypted by Apify.

The Actor only reads public stream data. It does not sign in as you and cannot post or change anything on your account. At the end of each run it cancels the short-lived access token it made from your key.

Your app has about 800 API points per minute. One point brings up to 100 live streams, so even a 10,000-stream run uses only about 100 points.

### Quick start

1. Open the **Input** tab.
2. Paste your **Twitch Client ID** (`clientId`) and **Twitch Client Secret** (`clientSecret`).
3. Keep the prefilled **Games / categories** (`gameNames`) value `Just Chatting` and **Max streams** (`maxStreams`) value `20`, or type your own game.
4. Click **Start**.
5. Open the **Output** tab and check the **Live streams** table: `userName`, `viewerCount` and `title` for each stream.

Expected result: 20 live Just Chatting streams, most-watched first, in about 5 seconds.

### Use cases

| Buyer job | Input path | Output entity | Key fields | Next integration |
| --- | --- | --- | --- | --- |
| Scout streamers in a game and language | `gameNames`, `languages`, `minViewers` | live stream | `userLogin`, `viewerCount`, `language`, `channelUrl` | export to a sheet or CRM |
| Check which of my channels are live | `userLogins` | live stream | `userLogin`, `viewerCount`, `uptimeMinutes`, `title` | schedule + webhook |
| Watch a category over time | `gameNames`, `maxStreams` | live stream | `rank`, `viewerCount`, `startedAt`, `fetchedAt` | schedule, append to your database |
| Find streams with a theme | `gameNames`, then filter `tags` | live stream | `tags`, `title`, `isMature` | export |

### Input

#### Input fields

| Field | Plain name | Type | Required | Default / prefill | Allowed values | Effect | Example |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `clientId` | Twitch Client ID | string (secret) | no, but needed for data | none | 10–64 letters and digits | your Twitch app ID | from dev.twitch.tv |
| `clientSecret` | Twitch Client Secret | string (secret) | no, but needed for data | none | non-empty | your Twitch app secret | from dev.twitch.tv |
| `gameNames` | Games / categories | array of strings | no | prefill `["Just Chatting"]` | up to 100 names | only streams in these categories | `["Fortnite", "League of Legends"]` |
| `languages` | Stream languages | array of strings | no | empty = any | two-letter codes like `en`, `es`, `de`, `pt`, `ja`, `zh`, plus `zh-hk` (Cantonese), `asl` (sign language) and `other`; `pt-BR` becomes `pt` | only streams in these languages | `["en", "es"]` |
| `userLogins` | Channels | array of strings | no | empty = any | up to 500 logins, `@login` or twitch.tv links | only these channels, if live | `["https://www.twitch.tv/somechannel"]` |
| `minViewers` | Min viewers | integer | no | default `0` | 0 – 10,000,000 | skip smaller streams | `1000` |
| `maxStreams` | Max streams | integer | no | default `100`, prefill `20` | 1 – 10,000 | stop after this many saved streams | `500` |

Notes:

- Category names must match Twitch exactly (the name on [twitch.tv/directory](https://www.twitch.tv/directory)); upper or lower case does not matter. The Actor does not guess: an unknown name is listed in the run summary under `games.notFound`.
- If all filters are empty, you get the most-watched live streams on all of Twitch.
- Duplicate names and channels in the input are removed.

#### Interacting settings

| When | Input A | Input B | Effective behavior | Example | Cost/result effect |
| --- | --- | --- | --- | --- | --- |
| Several filters are set | `gameNames` | `languages` | AND: a stream must match a game **and** a language | Fortnite + `de` → German Fortnite streams | fewer rows |
| Several values in one filter | `gameNames` | `gameNames` | OR: any of the listed games | Fortnite, Minecraft → both | more rows |
| Channels with a game | `userLogins` | `gameNames` | AND: listed channels that are live in that game | | fewer rows |
| High viewer floor | `minViewers` | `maxStreams` | the Actor stops when viewers drop below `minViewers`, even before `maxStreams` | 5000 → 15 rows from the top | fewer rows, faster |
| Some category names are wrong | `gameNames` | – | known names are used, unknown ones are reported | Fortnite, Fortnight | warning in the run summary |
| All category names are wrong | `gameNames` | – | no streams are fetched; status `NO_RESULTS` | Just Chating | only the start fee |

#### Input examples

##### English and Spanish streams in one game

```json
{
  "clientId": "your-client-id",
  "clientSecret": "your-client-secret",
  "gameNames": ["VALORANT"],
  "languages": ["en", "es"],
  "minViewers": 100,
  "maxStreams": 200
}
```

Expected behavior: the Actor saves up to 200 live VALORANT streams in English or Spanish with at least 100 viewers, most-watched first.
Expected output: live stream rows with `userLogin`, `viewerCount`, `language`, `title`.
Cost note: at most 200 stream events plus the start fee.

##### Which of my channels are live

```json
{
  "clientId": "your-client-id",
  "clientSecret": "your-client-secret",
  "userLogins": ["channel_one", "@channel_two", "https://www.twitch.tv/channel_three"]
}
```

Expected behavior: the Actor checks the three channels and saves only those that are live now. Offline channels give no row and are not charged.

### Output

#### Output fields

| Field | Meaning | Type | Can be empty? | Example / enum |
| --- | --- | --- | --- | --- |
| `status` | row type | string | no | `live` or `api_key_required` |
| `rank` | position in this run, 1 = most viewers | integer | notice row only | `3` |
| `streamId` | Twitch stream ID (changes with each broadcast) | string | notice row only | `317712016119` |
| `userId` | Twitch channel ID (stable) | string | notice row only | `596247354` |
| `userLogin` | channel login | string | notice row only | `e11ysa` |
| `userName` | channel display name | string | notice row only | `E11ysa` |
| `channelUrl` | channel link | string | notice row only | `https://www.twitch.tv/e11ysa` |
| `gameId`, `gameName` | category | string | yes, when the streamer set no category | `509658`, `Just Chatting` |
| `title` | stream title | string | notice row only | `GOING BLONDE!! !vote` |
| `viewerCount` | viewers at the moment of the request | integer | yes, if Twitch sends no number; 0 is a real 0 | `4674` |
| `language` | stream language code | string | notice row only | `en` |
| `startedAt` | when the stream started (UTC) | ISO date | yes, if unreadable | `2026-10-22T01:52:06.000Z` |
| `uptimeMinutes` | minutes live at `fetchedAt` | integer | yes, with `startedAt` | `226` |
| `tags` | streamer's tags | array of strings | notice row only; `[]` = no tags | `["English", "DropsEnabled"]` |
| `isMature` | streamer marked the stream for mature audiences | boolean | notice row only | `false` |
| `thumbnailUrl` | preview image, 1280×720 | string | yes, if Twitch sends none | `https://static-cdn.jtvnw.net/previews-ttv/live_user_e11ysa-1280x720.jpg` |
| `source` | data source | string | no | `twitch-helix` |
| `fetchedAt` | when the Actor read the data (UTC) | ISO date | no | `2026-10-22T05:38:08.220Z` |
| `message` | explanation on the notice row | string | stream rows | `null` |

#### Output entities and surfaces

| Situation | Where | Result shape | What to do |
| --- | --- | --- | --- |
| Normal run | Dataset, view **Live streams** | one row per live stream | open, export or call the API |
| No key | Dataset | one free row, `status: api_key_required`, with setup steps in `message` | add your Client ID and Secret |
| Nothing live / unknown category | Dataset empty; key-value store `RUN_SUMMARY` | `status: NO_RESULTS`, `games.notFound` | check spelling or try later |
| Stopped early | Dataset keeps saved rows; `RUN_SUMMARY` | `status: PARTIAL` with `stopReason` `CHARGE_LIMIT`, `QUOTA_LIMIT`, `TIME_LIMIT` or `SOURCE_ERROR` | read the message, run again |
| Key rejected or Twitch down before any row | `RUN_SUMMARY`, run FAILED | `status: ERROR`, `error.code` such as `API_KEY_INVALID` | check the key, retry later |

`RUN_SUMMARY` also shows how many streams were saved and charged, how many repeated streams were removed, whether more streams are live (`moreAvailable`), and your app's API points before and after the run. It never contains your Client ID, Secret or token.

#### Output example

Input: `{"gameNames": ["Just Chatting"], "maxStreams": 1000}`. One full row:

```json
{
  "status": "live",
  "rank": 3,
  "streamId": "317712016119",
  "userId": "596247354",
  "userLogin": "e11ysa",
  "userName": "E11ysa",
  "channelUrl": "https://www.twitch.tv/e11ysa",
  "gameId": "509658",
  "gameName": "Just Chatting",
  "title": "GOING BLONDE!! !vote",
  "viewerCount": 4674,
  "language": "en",
  "startedAt": "2026-10-22T01:52:06.000Z",
  "uptimeMinutes": 226,
  "tags": ["English", "DropsEnabled"],
  "isMature": false,
  "thumbnailUrl": "https://static-cdn.jtvnw.net/previews-ttv/live_user_e11ysa-1280x720.jpg",
  "source": "twitch-helix",
  "fetchedAt": "2026-10-22T05:38:08.220Z",
  "message": null
}
```

Viewer counts change every minute. While the Actor pages through a big category, some streams move between pages; the Actor removes the repeats, so the order is "most-watched first" but not exact to the last viewer.

### Pricing and limits

#### Pricing unit

You pay per **live stream saved** to the Dataset, plus a small fee when a run starts. Prices go down with your Apify plan:

| Event | Free plan | Bronze | Silver | Gold |
| --- | ---: | ---: | ---: | ---: |
| Live stream (per 1,000) | $1.00 | $0.90 | $0.80 | $0.70 |
| Actor start (once per run, default 256 MB) | $0.002 | $0.002 | $0.002 | $0.002 |

- The start fee (`apify-actor-start`) is charged by Apify for **every** run, also for a run without a key, a run where nothing is live and a run with wrong category names. These runs save no paid rows.
- The `api_key_required` notice row is free.
- Offline channels and unknown categories create no rows and cost nothing beyond the start fee.
- A run that stops early (for example at your maximum cost) charges only the rows it saved.
- Platform usage (compute, storage) is included in these prices.

#### Cost examples

| Scenario | Input scope | Streams saved | Free plan | Gold |
| --- | --- | ---: | ---: | ---: |
| No key | any | 0 (1 free notice row) | $0.002 | $0.002 |
| Nothing live or wrong category | any | 0 | $0.002 | $0.002 |
| Quick check | 1 category, `maxStreams` 20 | 20 | $0.022 | $0.016 |
| Default | 1 category, `maxStreams` 100 | 100 | $0.102 | $0.072 |
| Big list | 1 language, `maxStreams` 1,000 | 1,000 | $1.002 | $0.702 |
| Maximum | no filter, `maxStreams` 10,000 | 10,000 | $10.002 | $7.002 |

Use **Max streams** and Apify's **Maximum cost per run** setting to cap your spend. When the maximum cost is reached, the Actor stops and keeps the rows it already saved (`stopReason: CHARGE_LIMIT`).

#### Limits

- Up to 10,000 streams per run; a 10,000-stream run took under a minute in our tests.
- Up to 100 category names, 100 languages and 500 channels per run.
- About 800 Twitch API points per minute for your app. If they run out mid-run, the Actor keeps the saved rows and ends with `stopReason: QUOTA_LIMIT`.
- The default run timeout is 300 seconds. The Actor stops 15 seconds before the timeout to save the summary.

### API, export and integrations

- **Export:** download the Dataset as JSON, CSV, Excel, XML or HTML from the **Output** tab.
- **API:** start a run with `POST https://api.apify.com/v2/acts/cliqtomedia~twitch-streams/runs` and the same JSON input; read rows from the run's default Dataset.
- **Scheduling:** create an Apify schedule (for example every 15 minutes) to keep a history of live streams. Each run is a new snapshot; use `fetchedAt` and `streamId` to join them.
- **Webhooks / no-code:** use Apify webhooks, Make, Zapier or n8n to send new rows to Google Sheets, Slack or your database.

#### Use with AI agents (MCP)

- MCP server with only this Actor: `https://mcp.apify.com?tools=cliqtomedia/twitch-streams`.
- Smallest useful input: `{"clientId": "…", "clientSecret": "…", "gameNames": ["Just Chatting"], "maxStreams": 20}`.
- Key output fields: `userLogin` (channel), `viewerCount` (viewers now), `gameName` (category), `language` (stream language), `channelUrl` (link).
- A 20-stream run takes about 5 seconds and costs $0.022 on the Free plan. Max 10,000 streams per run. Without a Twitch Client ID and Secret the run returns only the free `api_key_required` row.

### Troubleshooting

#### Only one row with `api_key_required`

Symptom: the Dataset has one row and `message` asks for a key.
Likely reason: `clientId` or `clientSecret` is empty.
Action: create a free app at [dev.twitch.tv/console/apps](https://dev.twitch.tv/console/apps) and paste both values (see [Get your free Twitch key](#get-your-free-twitch-key)).

#### Run FAILED with `API_KEY_INVALID`

Symptom: the status message says Twitch rejected your Client ID or Client Secret, or refused your app's access.
Likely reason: the Client ID or Secret is wrong, or the secret was replaced with **New Secret**.
Check: open your app in the Twitch console and compare the Client ID. Create a new secret if you are not sure.
Action: paste the current values and run again.

#### No rows and "Twitch has no category named …"

Likely reason: the category name is not exactly the Twitch name (for example `Just Chating` or `GTA 5`; the Twitch name is `Grand Theft Auto V`).
Action: copy the name from [twitch.tv/directory](https://www.twitch.tv/directory) and run again.

#### No rows and "No live streams right now"

Likely reason: nobody matches your filters at this moment, for example all listed channels are offline or `minViewers` is too high.
Action: try later, remove a filter or lower `minViewers`. This is a normal result, not an error.

#### `PARTIAL` with `QUOTA_LIMIT`

Likely reason: your Twitch app used its API points for this minute, maybe because another tool uses the same app.
Action: the saved rows are kept. Run again after a minute, or use a separate Twitch app for this Actor.

#### Fewer rows than `maxStreams`

Check `RUN_SUMMARY`: `moreAvailable: false` means Twitch had no more live streams for your filters. `skippedBelowMinViewers` and `skippedDuplicate` show what was filtered out.

### FAQ

#### Do I need to pay Twitch?

No. The Twitch API is free. You only need a Twitch account with two-factor authentication and a free app at dev.twitch.tv.

#### Is my key safe?

The key fields are secret inputs, stored encrypted by Apify. The Actor never writes them to the Dataset, the log or the run summary. The access token made from your key lives only during the run and is cancelled at the end.

#### Why did I pay for a run with no rows?

Apify charges the $0.002 start fee for every run. Stream rows are charged only when they are saved.

#### How fresh is the data?

Each row is what Twitch reported at `fetchedAt`. Viewer counts and titles change all the time, so run the Actor again (or on a schedule) for new numbers.

#### Can I get all live streams of a big category?

Up to 10,000 per run. Twitch sends the most-watched streams first, so you always get the top of the list.

#### Can I use the data commercially?

Twitch's developer agreement covers how you use the data from your own Twitch app. It allows caching Twitch data for up to 24 hours and asks you to credit Twitch. Every row has `source` and a twitch.tv `channelUrl` for this. Please read the [Twitch Developer Agreement](https://legal.twitch.com/legal/developer-agreement/) for your case.

### Support

For a bug, a question or a feature request, open the **Issues** tab of this Actor on Apify or write to hello@cliqtomedia.com. Include the run ID and your input without the Client ID and Secret. Never send your Twitch Client Secret or Apify token.

# Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/twitch-streams/changelog.md

# Actor input Schema

## `clientId` (type: `string`):

Client ID of your own Twitch application from dev.twitch.tv/console/apps. Stored encrypted; never written to the dataset, logs or run summary.

## `clientSecret` (type: `string`):

Client Secret of the same app (Manage → New Secret). Stored encrypted; the short-lived app token made from it is revoked at the end of the run.

## `gameNames` (type: `array`):

Twitch category names exactly as on twitch.tv/directory, e.g. Just Chatting, Fortnite, League of Legends. Up to 100. Unknown names are listed in the run summary, not guessed. Empty = all categories.

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

Language codes of the stream, e.g. en, es, de, pt, ja, zh, zh-hk (Cantonese), asl (sign language), or other. Empty = any language.

## `userLogins` (type: `array`):

Channel logins or twitch.tv links to check, up to 500. Only channels that are live right now are returned. Empty = any channel.

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

Keep only streams with at least this many viewers. Paging stops as soon as viewers drop below it, so a high value is fast and cheap.

## `maxStreams` (type: `integer`):

Stop after this many saved streams, most-watched first. Each saved stream is one paid result.

## Actor input object example

```json
{
  "gameNames": [
    "Just Chatting",
    "Fortnite"
  ],
  "languages": [
    "en",
    "es"
  ],
  "userLogins": [
    "kaicenat",
    "https://www.twitch.tv/ibai"
  ],
  "minViewers": 0,
  "maxStreams": 20
}
```

# Actor output Schema

## `liveStreams` (type: `string`):

Live Twitch streams as a table, most-watched first.

## `runSummary` (type: `string`):

Status, stop reason, categories found, counts and your Twitch app's API points.

# 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 = {
    "gameNames": [
        "Just Chatting"
    ],
    "maxStreams": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/twitch-streams").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 = {
    "gameNames": ["Just Chatting"],
    "maxStreams": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/twitch-streams").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 '{
  "gameNames": [
    "Just Chatting"
  ],
  "maxStreams": 20
}' |
apify call cliqtomedia/twitch-streams --silent --output-dataset

```

## MCP server setup

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

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/dDB7cqGSB776RiO1k/builds/rLX33zn7tspvYtZue/openapi.json
