# Twitch Channel Scraper (`fanndev/twitch-channel-scraper`) Actor

Extract Twitch channel profiles, live stream status, VODs, clips, and stream schedules -- no account or API key needed.

- **URL**: https://apify.com/fanndev/twitch-channel-scraper.md
- **Developed by:** [Faisal Ahdan naufal](https://apify.com/fanndev) (community)
- **Categories:** Videos
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 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.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Twitch Channel Scraper

Extract Twitch channel profiles, live stream status, VODs, clips, and stream schedules — no account, login, or API key needed.

### Why use this actor

- One actor covers a channel's full public footprint: profile + live status, past broadcasts (VODs), top/trending clips, and upcoming schedule
- No Twitch account, OAuth app, or API key required — works exactly like an anonymous visit to twitch.tv
- Structured, stable JSON output suitable for pipelines, spreadsheets, or dashboards
- Automatic retries on temporary network hiccups
- Honest about limits: if a channel has more videos/clips than fit in one page, every row is flagged so you know more exist (see Known limits below) — nothing is silently dropped

### How it works

Pick a `mode` and one or more channel logins:

1. **`channel`** — profile info (bio, followers, creation date) plus live status (is it live right now, viewer count, current game, stream title).
2. **`videos`** — the channel's past broadcasts, highlights, or uploads.
3. **`clips`** — the channel's top or trending community-made clips.
4. **`schedule`** — upcoming scheduled streams.

### Input

**Channel profile + live status** (default mode):

```json
{
  "mode": "channel",
  "logins": ["shroud", "xqc"],
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

**Videos:**

```json
{
  "mode": "videos",
  "login": "shroud",
  "limit": 20,
  "videoType": "ARCHIVE",
  "videoSort": "TIME"
}
```

**Clips:**

```json
{
  "mode": "clips",
  "login": "shroud",
  "limit": 20,
  "clipsPeriod": "ALL_TIME",
  "clipsSort": "VIEWS_DESC"
}
```

**Schedule:**

```json
{
  "mode": "schedule",
  "login": "shroud"
}
```

| Field | Type | Description |
|---|---|---|
| `mode` | string | `"channel"` (default), `"videos"`, `"clips"`, or `"schedule"`. |
| `login` | string | A single channel login (the part after `twitch.tv/` in the URL). |
| `logins` | array | Multiple channel logins to process in one run. |
| `limit` | integer | Max videos/clips returned per channel. Default 20, max 100 — see Known limits. |
| `videoType` | string | `videos` mode: `ARCHIVE` (past broadcasts, default), `HIGHLIGHT`, `UPLOAD`, `PAST_PREMIERE`, `PREMIERE_UPLOAD`. |
| `videoSort` | string | `videos` mode: `TIME` (newest first, default) or `VIEWS` (most viewed first). |
| `clipsPeriod` | string | `clips` mode: `LAST_DAY`, `LAST_WEEK`, `LAST_MONTH`, or `ALL_TIME` (default). |
| `clipsSort` | string | `clips` mode: `VIEWS_DESC` (default) or `TRENDING`. |
| `maxConcurrency` | integer | How many channels to fetch in parallel. Default 4. |
| `proxyConfiguration` | object | Apify Proxy settings. Residential is on by default (not required for this endpoint, kept for production robustness). |

### Output

**Channel mode** — one record per login:

```json
{
  "_input": "xqc",
  "_source": "S1-gql",
  "_scrapedAt": "2026-08-25T18:43:19Z",
  "id": "71092938",
  "login": "xqc",
  "displayName": "xQc",
  "description": "THE BEST AT ABSOLUTELY EVERYTHING...",
  "createdAt": "2014-09-12T23:50:05.989719Z",
  "profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/xqc-profile_image-...-300x300.jpeg",
  "bannerImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/....jpeg",
  "primaryColorHex": "FFBF00",
  "followersCount": 12537124,
  "isLive": true,
  "streamId": "319959993950",
  "streamTitle": "...",
  "streamType": "live",
  "viewersCount": 26109,
  "streamStartedAt": "2026-08-25T17:34:35Z",
  "gameName": "Special Events",
  "gameBoxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/509663-{width}x{height}.jpg",
  "tags": null,
  "lastBroadcastStartedAt": "2026-08-25T17:34:40.483789Z",
  "lastBroadcastTitle": "..."
}
```

**Videos mode** — one record per VOD:

```json
{
  "_input": "shroud",
  "_source": "S1-gql",
  "_scrapedAt": "2026-08-25T18:43:02Z",
  "channelLogin": "shroud",
  "channelTotalVideoCount": 1551,
  "_truncatedToFirstPage": true,
  "videoId": "2854436054",
  "title": "stream stops when my bank account hits 0$",
  "publishedAt": "2026-08-23T17:44:06Z",
  "viewCount": 489694,
  "lengthSeconds": 29261,
  "previewThumbnailURL": "https://static-cdn.jtvnw.net/.../thumb0-{width}x{height}.jpg",
  "gameName": "WARDOGS",
  "url": "https://www.twitch.tv/videos/2854436054"
}
```

**Clips mode** — one record per clip:

```json
{
  "_input": "shroud",
  "_source": "S1-gql",
  "_scrapedAt": "2026-08-25T18:43:03Z",
  "channelLogin": "shroud",
  "_truncatedToFirstPage": true,
  "clipId": "2358589597",
  "slug": "TangentialBillowingJalapenoYee-ccA2oB1pEYh4CHWJ",
  "title": "F Shroud",
  "viewCount": 562406,
  "createdAt": "2023-06-02T11:41:50Z",
  "durationSeconds": 28,
  "url": "https://www.twitch.tv/shroud/clip/TangentialBillowingJalapenoYee-ccA2oB1pEYh4CHWJ",
  "thumbnailURL": "https://static-cdn.jtvnw.net/.../thumb-0000000000-1920x1080.jpg",
  "curatorLogin": "pato_bolado"
}
```

**Schedule mode** — one record per upcoming stream segment:

```json
{
  "_input": "shroud",
  "_source": "S1-gql",
  "_scrapedAt": "2026-08-25T18:43:04Z",
  "channelLogin": "shroud",
  "segmentId": "eyJzZWdtZW50SUQi...",
  "title": null,
  "startAt": "2026-08-27T18:00:00Z",
  "endAt": "2026-08-28T02:00:00Z",
  "isCancelled": false,
  "hasReminder": false,
  "categories": null,
  "isNextSegment": true
}
```

A record with `_error` instead of the fields above means that channel could not be processed (for example, `"_error": "channel_not_found"` for a username that doesn't exist).

### Known limits

- **Deep pagination is not available.** Twitch enforces a device-integrity check for any page beyond the first, which an HTTP-only client cannot satisfy. `videos`/`clips` modes return at most 100 items — the most recent (or most-viewed, depending on sort) — never the full archive on channels with more than 100. Every row is flagged with `_truncatedToFirstPage: true` when more exist, so this is never silent.
- Chat messages, follower/following lists, and raw stream video (HLS) are out of scope — this actor covers public channel metadata only.
- `schedule` mode returns the near-term window Twitch itself exposes (roughly 1–2 weeks out), not an arbitrarily long future schedule.

# Actor input Schema

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

"channel" gets the profile + live stream status. "videos" lists VODs/highlights/uploads. "clips" lists top or trending clips. "schedule" lists upcoming scheduled streams.

## `login` (type: `string`):

A single Twitch channel login name (the part after twitch.tv/ in the URL, lowercase, e.g. "shroud").

## `logins` (type: `array`):

Multiple Twitch channel login names to process in one run.

## `limit` (type: `integer`):

Maximum number of videos or clips to return per channel. Twitch's own device-integrity gate blocks HTTP-only pagination beyond a single page, so this is capped at 100 (the most recent, or most-viewed, items -- not the full archive on channels with more).

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

Which kind of videos to list.

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

Order to return videos in.

## `clipsPeriod` (type: `string`):

Only consider clips created within this time window.

## `clipsSort` (type: `string`):

Order to return clips in.

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

How many channels to fetch in parallel.

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

Apify Proxy configuration. Residential is on by default. Not required for this endpoint (no WAF was found), but kept on for production robustness.

## Actor input object example

```json
{
  "mode": "channel",
  "login": "shroud",
  "limit": 20,
  "videoType": "ARCHIVE",
  "videoSort": "TIME",
  "clipsPeriod": "ALL_TIME",
  "clipsSort": "VIEWS_DESC",
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All scraped channel / video / clip / schedule records produced by this run.

# 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 = {
    "mode": "channel",
    "login": "shroud",
    "limit": 20,
    "videoType": "ARCHIVE",
    "videoSort": "TIME",
    "clipsPeriod": "ALL_TIME",
    "clipsSort": "VIEWS_DESC",
    "maxConcurrency": 4,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fanndev/twitch-channel-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 = {
    "mode": "channel",
    "login": "shroud",
    "limit": 20,
    "videoType": "ARCHIVE",
    "videoSort": "TIME",
    "clipsPeriod": "ALL_TIME",
    "clipsSort": "VIEWS_DESC",
    "maxConcurrency": 4,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("fanndev/twitch-channel-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 '{
  "mode": "channel",
  "login": "shroud",
  "limit": 20,
  "videoType": "ARCHIVE",
  "videoSort": "TIME",
  "clipsPeriod": "ALL_TIME",
  "clipsSort": "VIEWS_DESC",
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call fanndev/twitch-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fanndev/twitch-channel-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/142tjeRYLr70DD1UR/builds/03LIHIUU7bmblCI2B/openapi.json
