# Twitch Game Streams & Clips Scraper (`pellucid_bird/twitch-game-streams-scraper`) Actor

Your Twitch research toolkit for game categories. Get first-page snapshots of live streams and popular clips with titles, languages, viewer or view counts, stream and clip links, and timestamps. Export JSON or CSV; compare your earlier observations. No login required.

- **URL**: https://apify.com/pellucid_bird/twitch-game-streams-scraper.md
- **Developed by:** [O M](https://apify.com/pellucid_bird) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 94.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 stream or clip 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 Game Streams & Clips Scraper

Get a **first-page snapshot of live streams and popular clips for a Twitch game category**. Export broadcaster names, titles, languages, viewer or view counts, timestamps and Twitch links as JSON, CSV or Excel. Use it for a current gaming content shortlist, creator discovery, or repeatable category snapshots in a dashboard.

Each game returns up to **100 visible live streams and 100 popular clips before filters**. This is a bounded snapshot: it does not scroll through every channel or clip in the category. No Twitch login, access token or proxy configuration is needed.

### Start with one game

```json
{
  "games": ["Grand Theft Auto V"],
  "mode": "streams",
  "maxItems": 20
}
```

Run the Actor, open **Dataset**, and choose your export format. Open **Coverage and run costs** to see which categories were found, how many rows were saved, and whether Twitch reports more results beyond the captured first page.

To collect both stream and clip snapshots:

```json
{
  "games": ["Grand Theft Auto V"],
  "mode": "both",
  "maxItems": 200,
  "maxItemsPerGame": 200,
  "clipPeriodDays": 7
}
```

`Grand Theft Auto VI` is also a recognized Twitch category, verified on November 13, 2026. A category label describes how a broadcaster categorized the content; it is not proof of a game's release, official status, or the content of a broadcast. Availability changes throughout the day.

### Example result

This shortened record comes from a real public snapshot on November 13, 2026. Counts change over time.

```json
{
  "recordType": "stream",
  "key": "stream:316330358890",
  "gameName": "Grand Theft Auto V",
  "broadcasterName": "TGG_gta",
  "title": "GOODBYE GTA 5 - PART 3",
  "language": "en",
  "viewerCount": 862,
  "viewCount": null,
  "startedAt": "2026-11-13T08:54:58Z",
  "url": "https://www.twitch.tv/tgg_gta",
  "metricDelta": null
}
```

| Field                                                   | Meaning                                                                                     |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `recordType`, `key`, `id`                               | Stream or clip identity; stream ID or stable clip slug                                      |
| `gameId`, `gameName`                                    | Matched Twitch category                                                                     |
| `broadcasterId`, `broadcasterName`, `broadcasterLogin`  | Public broadcaster identity                                                                 |
| `title`, `language`, `url`                              | Content title, language and canonical Twitch link                                           |
| `viewerCount`                                           | Current concurrent viewers of a live stream; null for clips                                 |
| `viewCount`                                             | Clip view count reported by Twitch; null for streams                                        |
| `startedAt`, `createdAt`                                | Stream start or clip creation time, respectively                                            |
| `durationSeconds`, `thumbnailUrl`                       | Clip duration and available preview image URL                                               |
| `tags`, `isMature`                                      | Available stream tags and mature-content flag; clips have no equivalent flag in this source |
| `scrapedAt`                                             | When this record was observed                                                               |
| `metricDelta`, `previousObservedAt`, `comparisonStatus` | Optional comparison against an earlier observation you supply                               |
| `warnings`                                              | Missing source language or incompatible baseline details                                    |

Missing fields are `null` where appropriate. A missing count is not fabricated as zero; malformed source rows are excluded and reported.

### Price

**$0.0149 per run + $0.0004 per saved stream or clip. Apify platform resources are included.** The result rate is $0.40 per 1,000 rows, plus the startup fee for each run.

| Saved rows in one run | Complete Actor charge |
| --------------------- | --------------------- |
| 0                     | $0.0149               |
| 10                    | $0.0189               |
| 100                   | $0.0549               |
| 200                   | $0.0949               |
| 1,000                 | $0.4149               |

The startup fee applies when a run starts, including runs that return no results or encounter unavailable categories. Only saved rows create result events; filters, excluded rows and failed requests do not create result charges. Availability and first-page source limits determine how many rows a run can return.

The default `maxEstimatedCostUsd` is $0.10. For larger runs, increase both this input and the Apify run's maximum charge to cover the total shown above. For example, allow at least $0.42 for 1,000 rows. Spending controls can stop collection early; inspect `OUTPUT` for the stop reason and saved rows.

### Input options

| Option                | Default              | What it controls                                                            |
| --------------------- | -------------------- | --------------------------------------------------------------------------- |
| `games`               | `Grand Theft Auto V` | 1–5 exact category names; repeated names are collected once                 |
| `mode`                | `streams`            | `streams`, `clips`, or `both`                                               |
| `maxItems`            | 100                  | Maximum saved rows in the whole run, up to 1,000                            |
| `maxItemsPerGame`     | 100                  | Combined rows per category, up to 1,000; source snapshot limits still apply |
| `languages`           | All                  | Local language filter, such as `["en", "uk"]`                               |
| `minViewers`          | 0                    | Minimum concurrent stream viewers; does not filter clips                    |
| `clipPeriodDays`      | 7                    | Clip creation window ending at run start, from 1 to 30 days                 |
| `pageSize`            | 100                  | First-page source request size, from 2 to 100                               |
| `baseline`            | Empty                | Your own earlier metrics for optional signed changes                        |
| `maxEstimatedCostUsd` | $0.10                | Early spending stop control; not an exact final invoice guarantee           |
| `requestTimeoutSecs`  | 10                   | Maximum seconds for an entire source request, from 1 to 30                  |
| `maxRetries`          | 0                    | Optional one retry for transient network, rate-limit or server failures     |
| `requestDelayMs`      | 100                  | Delay between the stream and clip requests in both mode                     |

In `both` mode, streams are collected first. Result caps are shared, so a full stream page can consume a small `maxItems` allowance before clips are requested. Use `clips` mode when clips are your priority. Filters apply to the captured first page; a restrictive filter can return few or zero rows even if matching content exists deeper in the category.

### Compare your own snapshots

Pass earlier records in `baseline`. For streams, `metricValue` must be the earlier `viewerCount`; for clips, use the earlier `viewCount`. Match the same `key` and `gameId`, and include the earlier `scrapedAt` timestamp. That observation must be at or after the stream start or clip creation time; an impossible earlier observation is marked incompatible.

```json
{
  "games": ["Grand Theft Auto V"],
  "mode": "streams",
  "maxItems": 20,
  "baseline": [
    {
      "key": "stream:316330358890",
      "gameId": "32982",
      "scrapedAt": "2026-11-13T09:00:00Z",
      "metricValue": 800
    }
  ]
}
```

The change is current minus earlier value. Concurrent-viewer changes can be negative. Clip counts can also be corrected downward by the source. This comparison is not a growth forecast, a historical database, or a measure of new unique viewers. The Actor keeps no shared customer history. A later broadcast has a new stream ID and will not be compared to a previous broadcast.

### Coverage and limitations

- Only the first public page is collected. There is no authenticated browsing, scrolling, pagination, integrity-token generation, or access-control bypass.
- `sourceHasMore.streams` and `.clips` in the coverage report reflect Twitch's first-page completeness flags. `null` means that source was not requested. `sourceExhausted` describes the requested source snapshot only; it does not guarantee a complete Twitch archive.
- The clip source supplies popular clips from day, week or month buckets. The Actor then applies the exact requested day window. It cannot promise every clip, newest-first order, or a global ranking.
- No video/audio files, chat messages, subscriber lists, private accounts, follower histories, revenue estimates, or personal contact information are collected.
- Public Twitch data and access can change. An empty category, blocked request, unavailable source, invalid row and result limit are reported distinctly. Confirmed earlier rows can remain in a partial run.
- Use a fresh run for every snapshot. Reusing nonempty dataset storage is refused to avoid duplicate charging or inaccurate per-game totals. Supply earlier metrics through `baseline` instead.

### Automation and exports

Use Apify schedules to take independent snapshots, the Actor API to call it from an application, and dataset exports for CSV, JSON or Excel. Each row has a stable type-prefixed `key` for joining your own observations. For an AI assistant selecting a tool: this Actor accepts exact Twitch game category names and returns bounded public stream/clip metadata with explicit coverage. Choose another tool for an exhaustive channel crawl, private Twitch data or video downloads.

### Runtime details

Runs use 512 MB memory, a five-minute cumulative deadline, bounded request/response sizes and conservative resource reservations. Retries are limited and do not apply to source integrity challenges or incompatible query responses. Dataset rows are counted only after confirmed writes; an uncertain append stops the run for reconciliation. These safeguards reduce avoidable costs but are not a guarantee of an exact invoice or uninterrupted source availability.

For reproducible local development with Node.js 24:

```sh
npm ci
npm run typecheck
npm test
npm run validate:schemas
npm run lint
npm run build
npm run local -- examples/INPUT.json
```

# Actor input Schema

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

Exact Twitch category names. Defaults to Grand Theft Auto V. Up to five categories, with repeated names collected once. A category can exist with no streams or clips.

## `mode` (type: `string`):

Collect live streams, popular clips, or both. In both mode, streams are collected first and share the same per-game result allowance. Defaults to streams.

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

Optional lowercase language codes, for example en, uk or ja. Applied locally to both streams and clips. An empty list includes every language.

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

Filter live streams by current concurrent viewers. Does not filter clip view counts. Default: 0.

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

Total saved rows across all categories and modes. Default: 100.

## `maxItemsPerGame` (type: `integer`):

Combined stream and clip result allowance for each category. Default: 100.

## `pageSize` (type: `integer`):

Rows requested from the single first page of each selected source, before local filters. Range 2–100. No pagination is performed. Default: 100.

## `clipPeriodDays` (type: `integer`):

Include clips created during the preceding number of days, ending at run start. Popular clips from the public day/week/month bucket are filtered to this exact window. Not a complete archive. Default: 7.

## `requestTimeoutSecs` (type: `integer`):

Maximum seconds for DNS, connection and one response combined. Default: 10.

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

Optional single retry for network errors, HTTP 429 or server errors. Access denials and incompatible responses are not retried. Default: 0.

## `requestDelayMs` (type: `integer`):

Milliseconds between the stream and clip requests in both mode; source retry delays can add a bounded wait. Default: 100.

## `maxEstimatedCostUsd` (type: `number`):

Estimated run allowance including startup and saved-result events after tariff approval. Default $0.10. Zero performs no source collection. This early stop control is not a final invoice guarantee.

## `baseline` (type: `array`):

Your own earlier observations: key, gameId, scrapedAt and metricValue. Use viewerCount for streams or viewCount for clips. Signed deltas use only matching earlier records. No shared history is stored.

## Actor input object example

```json
{
  "games": [
    "Grand Theft Auto V"
  ],
  "mode": "streams",
  "minViewers": 0,
  "maxItems": 100,
  "maxItemsPerGame": 100,
  "pageSize": 100,
  "clipPeriodDays": 7,
  "requestTimeoutSecs": 10,
  "maxRetries": 0,
  "requestDelayMs": 100,
  "maxEstimatedCostUsd": 0.1
}
```

# Actor output Schema

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

No description

## `report` (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 = {
    "games": [
        "Grand Theft Auto V"
    ],
    "mode": "streams",
    "minViewers": 0,
    "maxItems": 100,
    "maxItemsPerGame": 100,
    "pageSize": 100,
    "clipPeriodDays": 7,
    "requestTimeoutSecs": 10,
    "maxRetries": 0,
    "requestDelayMs": 100,
    "maxEstimatedCostUsd": 0.1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pellucid_bird/twitch-game-streams-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 = {
    "games": ["Grand Theft Auto V"],
    "mode": "streams",
    "minViewers": 0,
    "maxItems": 100,
    "maxItemsPerGame": 100,
    "pageSize": 100,
    "clipPeriodDays": 7,
    "requestTimeoutSecs": 10,
    "maxRetries": 0,
    "requestDelayMs": 100,
    "maxEstimatedCostUsd": 0.1,
}

# Run the Actor and wait for it to finish
run = client.actor("pellucid_bird/twitch-game-streams-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 '{
  "games": [
    "Grand Theft Auto V"
  ],
  "mode": "streams",
  "minViewers": 0,
  "maxItems": 100,
  "maxItemsPerGame": 100,
  "pageSize": 100,
  "clipPeriodDays": 7,
  "requestTimeoutSecs": 10,
  "maxRetries": 0,
  "requestDelayMs": 100,
  "maxEstimatedCostUsd": 0.1
}' |
apify call pellucid_bird/twitch-game-streams-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pellucid_bird/twitch-game-streams-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/1VoXefVCENGeE8zhG/builds/7gd0x4JXAdvJMYerj/openapi.json
