# 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:** [Seemu Scraping](https://apify.com/seemuapps) (community)
- **Categories:** Social media, Lead generation, Developer tools
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 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/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 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(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 '{
  "username": "shroud"
}' |
apify call seemuapps/twitch-channel-scraper --silent --output-dataset

```

## MCP server setup

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