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

Scrape every clip from any Twitch channel with view counts, durations, thumbnails, game info, and direct video URLs across all qualities.

- **URL**: https://apify.com/seemuapps/twitch-channel-scraper.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:** Social media, Lead generation, Developer tools
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Clips Scraper

Extract the top clips from any Twitch channel. Get titles, view counts, durations, thumbnails, game info, creator credits, and direct video download URLs across all available qualities. No login required.

### What you get

One row per clip from the channel's clip library:

- `clipId`, `slug`, `url` — direct link to the clip on twitch.tv
- `title` — clip title set by the creator
- `viewCount`, `durationSeconds`, `createdAt` (ISO timestamp)
- `thumbnailUrl` — cover image URL
- `videoQualities` — array of `{ quality, sourceURL, frameRate }` for every available resolution (e.g. `1080`, `720`, `480`, `360`) — direct MP4 URLs
- `gameName`, `gameId` — game/category the clip was captured in
- `broadcasterUsername`, `broadcasterDisplayName` — channel the clip is from
- `creatorUsername`, `creatorDisplayName` — viewer who created/clipped the moment
- `language`, `scrapedAt`

Plus a separate **channel info** record (in the Key-value store) for the queried channel:

- `userId`, `login`, `displayName`, `description`
- `profileImageUrl`, `offlineImageUrl`, `bannerImageUrl`
- `isLive`, `liveStreamId`, `liveStreamTitle`, `liveStreamGameName`, `liveStreamViewerCount`
- `broadcasterType` (`partner` / `affiliate` / `""`)
- `followerCount`, `createdAt`, `isVerified`

### Use cases

- **Highlight reel mining** — pull a creator's top clips for compilation videos
- **Esports / gaming research** — find the most-viewed moments per game
- **Sponsor / brand analysis** — measure clip volume and engagement per channel
- **Content monitoring** — track new clips on a competitor's channel
- **Dataset building** — clean clip metadata (title, game, language) for ML training sets

### How to use

1. Enter the **Twitch channel username** — for example `shroud`, `@shroud`, or `https://twitch.tv/shroud`
2. Choose a **Time range** — *All time*, *Last 24h*, *Last 7 days*, or *Last 30 days*. Clips are returned in descending view count.
3. Set **Max Items** (1-100) — default 50
4. Run the actor — clip rows appear in the **Dataset** tab
5. Open the **Key-value store** tab to find the `CHANNEL_INFO` record (followers, live status, description, etc.)

> **Want more than 100 clips per channel?** Run the actor four times with different **Time Range** values — *Last 24h*, *Last 7 days*, *Last 30 days*, *All time* — and merge the results. Each filter surfaces a different slice of clips ranked by view count, so combining them gives much broader coverage than any single run.

### Output format

**Clip row:**
```json
{
  "clipId": "2358589597",
  "slug": "TangentialBillowingJalapenoYee-ccA2oB1pEYh4CHWJ",
  "url": "https://www.twitch.tv/shroud/clip/TangentialBillowingJalapenoYee-ccA2oB1pEYh4CHWJ",
  "title": "F Shroud",
  "viewCount": 561429,
  "durationSeconds": 28,
  "createdAt": "2023-06-02T11:41:50Z",
  "thumbnailUrl": "https://static-cdn.jtvnw.net/twitch-video-assets/.../landscape/thumb/thumb-0000000000-1920x1080.jpg",
  "videoQualities": [
    { "quality": "1080", "sourceURL": "https://d1ndex63qxojbr.cloudfront.net/.../1080/index.mp4", "frameRate": 0 },
    { "quality": "720", "sourceURL": "https://d1ndex63qxojbr.cloudfront.net/.../720/index.mp4", "frameRate": 0 },
    { "quality": "480", "sourceURL": "https://d1ndex63qxojbr.cloudfront.net/.../480/index.mp4", "frameRate": 0 },
    { "quality": "360", "sourceURL": "https://d1ndex63qxojbr.cloudfront.net/.../360/index.mp4", "frameRate": 0 }
  ],
  "gameName": "Diablo IV",
  "gameId": "515024",
  "broadcasterUsername": "shroud",
  "broadcasterDisplayName": "shroud",
  "creatorUsername": "pato_bolado",
  "creatorDisplayName": "pato_bolado",
  "language": "EN",
  "scrapedAt": "2026-05-27T15:20:07.188Z"
}
````

**Channel info record (Key-value store `CHANNEL_INFO`):**

```json
{
  "userId": "37402112",
  "login": "shroud",
  "displayName": "shroud",
  "description": "I'm back baby",
  "profileImageUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/...-profile_image-300x300.png",
  "offlineImageUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/...-channel_offline_image-1920x1080.jpeg",
  "bannerImageUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/...-profile_banner-480.jpeg",
  "isLive": false,
  "liveStreamId": null,
  "liveStreamTitle": null,
  "liveStreamGameName": null,
  "liveStreamViewerCount": null,
  "broadcasterType": "partner",
  "followerCount": 11305300,
  "totalViewCount": null,
  "createdAt": "2012-11-03T15:50:32.878Z",
  "isVerified": true
}
```

# Actor input Schema

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

Twitch channel handle, with or without the URL prefix. Examples: 'shroud', '@shroud', 'https://twitch.tv/shroud'.

## `filter` (type: `string`):

Only return clips created within this time range. Clips are returned in descending view count order within the range.

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

Maximum clips to return (1-100). Twitch's API returns at most 100 clips per request and blocks deeper pagination for unauthenticated traffic. To get more clips, run the actor multiple times with different Time Range values (Last 24h, Last 7 days, Last 30 days, All time).

## `pageId` (type: `string`):

Reserved for future use. Twitch currently blocks unauthenticated cursor-based pagination of clips, so this field has no effect.

## Actor input object example

```json
{
  "username": "shroud",
  "filter": "all_time",
  "maxItems": 50
}
```

# Actor output Schema

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

One row per clip: clipId, slug, url, title, viewCount, durationSeconds, createdAt, thumbnailUrl, videoQualities (array of source URLs), gameName, gameId, broadcaster, creator, language, scrapedAt.

## `channelInfo` (type: `string`):

CHANNEL\_INFO record in the default key-value store. Contains userId, login, displayName, description, profileImageUrl, bannerImageUrl, isLive, broadcasterType, followerCount, totalViewCount, createdAt, isVerified.

## `nextPageId` (type: `string`):

NEXT\_PAGE\_ID record in the default key-value store. Paste into Page ID on the next run to resume; null when all clips for the chosen time range have been fetched.

# 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 = {
    "username": "shroud"
};

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

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/twitch-channel-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "username": "shroud"
}' |
apify call seemuapps/twitch-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=seemuapps/twitch-channel-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Twitch Channel Clips Scraper",
        "description": "Scrape every clip from any Twitch channel with view counts, durations, thumbnails, game info, and direct video URLs across all qualities.",
        "version": "1.0",
        "x-build-id": "I1XhGoAHMAuTjihBV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/seemuapps~twitch-channel-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-seemuapps-twitch-channel-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/seemuapps~twitch-channel-scraper/runs": {
            "post": {
                "operationId": "runs-sync-seemuapps-twitch-channel-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/seemuapps~twitch-channel-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-seemuapps-twitch-channel-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "username"
                ],
                "properties": {
                    "username": {
                        "title": "Twitch channel username",
                        "type": "string",
                        "description": "Twitch channel handle, with or without the URL prefix. Examples: 'shroud', '@shroud', 'https://twitch.tv/shroud'."
                    },
                    "filter": {
                        "title": "Time range",
                        "enum": [
                            "all_time",
                            "last_day",
                            "last_week",
                            "last_month"
                        ],
                        "type": "string",
                        "description": "Only return clips created within this time range. Clips are returned in descending view count order within the range.",
                        "default": "all_time"
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 0,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum clips to return (1-100). Twitch's API returns at most 100 clips per request and blocks deeper pagination for unauthenticated traffic. To get more clips, run the actor multiple times with different Time Range values (Last 24h, Last 7 days, Last 30 days, All time).",
                        "default": 50
                    },
                    "pageId": {
                        "title": "Page ID (pagination)",
                        "type": "string",
                        "description": "Reserved for future use. Twitch currently blocks unauthenticated cursor-based pagination of clips, so this field has no effect."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
