# Twitch Channels Scraper: Videos, Clips & Live (`luzivanlt/twitch-channels-scraper`) Actor

Twitch channels with followers, live stream, team and next stream, from names, searches or categories. $0.60 per 1,000 results. Plus videos, clips and top categories.

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

## Pricing

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

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 Channels Scraper: Videos, Clips & Live

Get Twitch channels with everything their page shows: followers, partner or
affiliate status, whether they are live with their viewers, title, tags and
category, their last broadcast, team, next scheduled stream and panels. Find
channels by name, by search (up to 1,000 channels, in Twitch's order) or by
category (up to 5,000 live channels), or take the top live streams and top
categories right now. Turn on videos and clips for up to 2,000 videos and 400
clips a channel, newest or most viewed first (400 clips with the period all
time; 300 of the last month, 200 of the last week, 100 of the last day). One
row per channel, video, clip or category. No Twitch account needed.

Tested daily. Latest check: two channels and 30 channels from a search, each
with its newest video, 60 results in 12 seconds; 6,280 results in one run
from a search, a category, the top live streams and the top categories, with
up to 10 videos a channel, in under 7 minutes.

### What does this Actor do?

You give it Twitch channels, searches or categories. It saves one row for
each channel it finds, and, when you ask, one row for each of the channel's
videos and clips. It can also save Twitch's most watched live channels and
categories.

Each **channel** row comes with:

- its id, login, display name, link, description and when it was created
- its follower count, partner and affiliate status, and how many videos it has
- its profile picture, banner, offline image and colours
- its stream title, language, category and mature-content flag
- when live: the stream's viewers, start time, title, tags, language,
  category and preview image
- its last broadcast: title, start time and category
- its team, and its next scheduled stream with start and end time and
  categories
- its panels: each one's title, text, image and link
- where it was found: the search or category, its rank there, and Twitch's
  total for that search or category

Each **video** row: its id, link, title, type (past broadcast, highlight,
upload or premiere), status, dates, length, views, language, category,
thumbnail, animated preview and how many videos of that kind the channel has.

Each **clip** row: its id, link, embed link, title, date, views, length,
language, whether it is featured, category, who clipped it, and the video and
moment it comes from.

Each **category** row: its id, name, link, description, viewers, live
channels, followers, tags, box art, release date and rank.

### Why use it?

- **Searches that go deep.** A channel search keeps going past the first page,
  to the end of Twitch's list (about 1,000 channels), each with its rank and
  the search's total.
- **Categories past Twitch's first 100.** A category's live channels are read
  past the 100 most watched that Twitch lists, language by language: 2,135
  live channels of Just Chatting in one test, where one list gives about 90.
- **A channel's whole video shelf.** Past its first 100, a channel's videos are
  read by every order and by category: 1,419 of shroud's 1,615 videos in one
  test, where one list gives 100.
- **The full channel, wherever it was found.** A channel found by a search, a
  category or the top streams gets the same full row as one you typed: team,
  schedule, panels and all.
- **Videos and clips your way.** Newest or most viewed videos first, of every
  type or one, and the most viewed clips of the last day, week, month or all
  time, plus the most viewed of each shorter period (242 of pokimane's clips
  of all time, where one list gives 100).
- **One price for everything.** Channels, videos, clips and categories cost
  the same, with no start fee.

### How to use it

1. Type one or more **Channels**, **Search channels** words or
   **Categories**, or turn on **Top live streams** or **Top categories**.
2. Optionally, turn on **Include videos** and **Include clips** and pick how
   many, which videos and the clip period.
3. Click **Start**. When the run ends, open the **Output** tab to view the
   rows or download them.

Run it with no input to see a sample: two channels and the first 30 channels
of a search for "valorant", each with its newest video, charged as usual.

#### Links that work

A channel's link or any of its pages (`https://www.twitch.tv/shroud`,
`https://www.twitch.tv/shroud/videos`), and a category's link
(`https://www.twitch.tv/directory/category/league-of-legends`). A single
video's link and other links stop the run before anything is read, naming the
link.

### Input

| Field                                                    | What it does                                                        | Default     |
| -------------------------------------------------------- | ------------------------------------------------------------------- | ----------- |
| **Channels** (`channels`)                                | Channel names or links, one row each                                | —           |
| **Search channels** (`searchQueries`)                    | Words to search channels for, one search each                       | —           |
| **Max channels per search** (`maxChannelsPerSearch`)     | Stop each search after this many channels, 1 to 1,000               | `50`        |
| **Categories** (`categories`)                            | Category names or links: their most watched live channels           | —           |
| **Max channels per category** (`maxChannelsPerCategory`) | How many of a category's live channels, 1 to 5,000                  | `50`        |
| **Top live streams** (`topStreams`)                      | Also the 30 most watched live channels on Twitch                    | `false`     |
| **Top categories** (`topCategories`)                     | Also Twitch's most watched categories                               | `false`     |
| **Max top categories** (`maxCategories`)                 | How many top categories, 1 to 100                                   | `100`       |
| **Include videos** (`includeVideos`)                     | Also each channel's videos, one row each                            | `false`     |
| **Max videos per channel** (`maxVideosPerChannel`)       | 1 to 2,000                                                          | `20`        |
| **Videos: newest or most viewed** (`videoSort`)          | `newest`, `most_viewed`                                             | `newest`    |
| **Video type** (`videoType`)                             | `all`, `past_broadcasts`, `highlights`, `uploads`, `past_premieres` | `all`       |
| **Include clips** (`includeClips`)                       | Also each channel's most viewed clips, one row each                 | `false`     |
| **Max clips per channel** (`maxClipsPerChannel`)         | 1 to 400                                                            | `20`        |
| **Clip period** (`clipPeriod`)                           | `last_day`, `last_week`, `last_month`, `all_time`                   | `last_week` |

Give at least one channel, search or category, or turn on a top list. Videos
and clips apply to every channel the run saves. Example input:

```json
{
  "channels": ["shroud", "https://www.twitch.tv/pokimane"],
  "searchQueries": ["valorant"],
  "maxChannelsPerSearch": 500,
  "categories": ["Chess"],
  "topCategories": true,
  "includeVideos": true,
  "maxVideosPerChannel": 50,
  "videoSort": "most_viewed",
  "includeClips": true,
  "clipPeriod": "last_month"
}
```

### Output

One row per channel, video, clip or category; `type` says which. Examples,
with made-up values:

```json
{
  "type": "channel",
  "item_id": "channel:12345678",
  "channel_id": "12345678",
  "channel_login": "examplestreamer",
  "channel_display_name": "ExampleStreamer",
  "url": "https://www.twitch.tv/examplestreamer",
  "description": "Variety streams most evenings.",
  "created_at": "2015-03-01T10:00:00Z",
  "followers": 125000,
  "is_partner": true,
  "is_affiliate": false,
  "videos_count": 240,
  "title": "Ranked grind",
  "language": "en",
  "category_name": "Example Game",
  "is_live": true,
  "stream_viewers": 3400,
  "stream_started_at": "2026-10-23T08:00:00Z",
  "stream_tags": ["English", "FPS"],
  "last_broadcast_started_at": "2026-10-23T08:00:00Z",
  "team_display_name": "Example Team",
  "next_stream_start_at": "2026-10-24T18:00:00Z",
  "panels": [
    {
      "type": "DEFAULT",
      "title": "About",
      "description": "Hi",
      "image_url": null,
      "link_url": null
    }
  ],
  "rank": 3,
  "source": "search",
  "source_query": "example",
  "source_total": 8000
}
```

```json
{
  "type": "video",
  "item_id": "video:2000000001",
  "channel_login": "examplestreamer",
  "video_id": "2000000001",
  "url": "https://www.twitch.tv/videos/2000000001",
  "title": "Ranked grind",
  "broadcast_type": "ARCHIVE",
  "published_at": "2026-10-22T18:00:00Z",
  "length_seconds": 14400,
  "view_count": 5200,
  "category_name": "Example Game",
  "videos_count": 240
}
```

```json
{
  "type": "clip",
  "item_id": "clip:3000000001",
  "channel_login": "examplestreamer",
  "url": "https://clips.twitch.tv/ExampleClipSlug",
  "title": "What a shot",
  "created_at": "2026-10-20T19:22:00Z",
  "view_count": 48000,
  "duration_seconds": 30,
  "curator_display_name": "ExampleViewer",
  "video_id": "2000000000",
  "video_offset_seconds": 1200,
  "clip_period": "LAST_WEEK"
}
```

Every field:

| Field                                                                                                                                                                                                                  | What it is                                                                                                                                                                                    |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type`                                                                                                                                                                                                                 | `channel`, `video`, `clip` or `category`                                                                                                                                                      |
| `item_id`                                                                                                                                                                                                              | The row's id: its type and Twitch's id, e.g. `channel:12345678`                                                                                                                               |
| `url`                                                                                                                                                                                                                  | The channel's, video's, clip's or category's link                                                                                                                                             |
| `title`                                                                                                                                                                                                                | A channel's stream title, or a video's or clip's title                                                                                                                                        |
| `channel_id`, `channel_login`, `channel_display_name`                                                                                                                                                                  | The channel the row belongs to                                                                                                                                                                |
| `description`                                                                                                                                                                                                          | A channel's bio, a video's description or a category's description, when there is one                                                                                                         |
| `created_at`, `updated_at`                                                                                                                                                                                             | When the channel, video or clip was created; when the channel was last updated                                                                                                                |
| `followers`                                                                                                                                                                                                            | A channel's or category's followers                                                                                                                                                           |
| `is_partner`, `is_affiliate`                                                                                                                                                                                           | The channel's Twitch partner and affiliate status                                                                                                                                             |
| `videos_count`                                                                                                                                                                                                         | How many videos the channel has (on a video row: of the type asked for)                                                                                                                       |
| `profile_image_url`, `banner_image_url`, `offline_image_url`                                                                                                                                                           | The channel's pictures                                                                                                                                                                        |
| `primary_color_hex`, `chat_color`                                                                                                                                                                                      | The channel's colours                                                                                                                                                                         |
| `language`, `is_mature`                                                                                                                                                                                                | The channel's stream language and mature-content flag; a video's or clip's language                                                                                                           |
| `category_id`, `category_name`                                                                                                                                                                                         | A channel's stream category, or a video's, clip's or category row's category                                                                                                                  |
| `is_live`                                                                                                                                                                                                              | Whether the channel is live now                                                                                                                                                               |
| `stream_id`, `stream_title`, `stream_type`, `stream_viewers`, `stream_started_at`, `stream_language`, `stream_tags`, `stream_category_id`, `stream_category_name`, `stream_category_box_art_url`, `stream_preview_url` | The live stream, when there is one                                                                                                                                                            |
| `last_broadcast_id`, `last_broadcast_title`, `last_broadcast_started_at`, `last_broadcast_category_id`, `last_broadcast_category_name`                                                                                 | The channel's last broadcast                                                                                                                                                                  |
| `team_id`, `team_name`, `team_display_name`                                                                                                                                                                            | The channel's team, when it has one                                                                                                                                                           |
| `next_stream_id`, `next_stream_start_at`, `next_stream_end_at`, `next_stream_title`, `next_stream_categories`                                                                                                          | The channel's next scheduled stream, when it has a schedule                                                                                                                                   |
| `panels`                                                                                                                                                                                                               | The channel's panels: type, title, text, image and link                                                                                                                                       |
| `video_id`, `broadcast_type`, `status`, `published_at`, `recorded_at`, `viewable_at`, `deleted_at`, `length_seconds`, `content_tags`, `seek_previews_url`, `animated_preview_url`, `video_sort`                        | A video's details                                                                                                                                                                             |
| `clip_id`, `slug`, `embed_url`, `duration_seconds`, `is_featured`, `curator_id`, `curator_login`, `curator_display_name`, `video_offset_seconds`, `clip_period`                                                        | A clip's details; `video_id` is the video it comes from                                                                                                                                       |
| `view_count`, `thumbnail_url`                                                                                                                                                                                          | A video's or clip's views and thumbnail                                                                                                                                                       |
| `category_box_art_url`, `category_display_name`, `category_slug`, `category_avatar_url`, `viewers`, `broadcasters`, `original_release_date`, `tags`                                                                    | A category's details; `broadcasters` is how many channels are live in it                                                                                                                      |
| `rank`                                                                                                                                                                                                                 | The row's place in its search, category or top list                                                                                                                                           |
| `source`, `source_query`, `source_category_id`, `source_category_name`, `source_total`                                                                                                                                 | How the row was found: `channel`, `search`, `category`, `top_streams` or `top_categories`, what was asked, and the total Twitch shows for it (a search's matches, a category's live channels) |

Fields Twitch leaves empty for a row are `null`.

### How much does it cost?

No surcharges and no paid options; an item that fails is not charged.

You pay for what you get:

- **$0.60 per 1,000 results** ($0.0006 a result). A result is one channel, video,
  clip or category. Each is charged once per run, even when two of your
  searches find it.
- No start fee, and nothing per search.

So 500 channels with 20 videos each cost $6.30. If you set a maximum cost for
a run, the Actor stops when it reaches it and keeps every row saved so far.

### How long does a run take?

About 60 results in 12 to 14 seconds. A run of 6,280 results from a search,
a category and both top lists, with up to 10 videos a channel, took under 7
minutes.

### Good to know

- **A search ends near 1,000 channels.** Twitch counts 12,246 channels for
  "minecraft" and serves the first 1,000 of them: its own next-page link ends
  there, a hand-made one past 999 returns nothing, and no search filter was
  found to split a search into smaller ones.
- **A category's live channels**: the 100 most watched first, then language
  by language, by most and least watched and newest. Twitch gives each of
  those lists 100 at a time with no next page, so a huge category is read
  only in part: 2,135 of Just Chatting's 4,469 live channels in a test, where
  one list gives about 90. The top live streams are Twitch's 30 most watched,
  and the top categories at most 100.
- **Up to 2,000 videos and 400 clips a channel.** The order you pick comes
  first; past a channel's first 100 videos, its others follow in no set
  order, and `video_sort` says which list each video came from. A clip's
  `clip_period` is the period it was found in.
- **Live numbers move.** Viewers, ranks and live channels are as Twitch
  showed them at the moment of the run.
- **Social links are not included**, nor subscriber counts or chat.
- A channel that does not exist ends with a message naming it; the rest of
  the run goes on.

### More Actors from us

- [2GIS Places Scraper: Every Result, Contacts](https://apify.com/luzivanlt/2gis-places-scraper): Every place a 2GIS search lists, read to 2GIS's own count, with phones, emails, sites and socials.
- [Airbnb Scraper: Every Stay, Past the 15-Page Limit](https://apify.com/luzivanlt/airbnb-listings-scraper): Every rental of an Airbnb search with its price for your dates, past the 15 pages Airbnb shows.
- [Alibaba Products Scraper: Price Tiers & Suppliers](https://apify.com/luzivanlt/alibaba-products-scraper): Alibaba.com products by keyword or link: USD price tiers, MOQ, supplier, product pages at no extra cost.
- [AliExpress Product Scraper: Search Results & Prices](https://apify.com/luzivanlt/aliexpress-products-scraper): Every product of an AliExpress search to its last page, with exact sold counts and ratings.
- [Amazon Bestsellers Scraper: Top 100 & New Releases](https://apify.com/luzivanlt/amazon-bestsellers-scraper): All 100 ranks of Amazon Best Sellers and New Releases, down its subcategories.
- [Amazon Product Scraper: Search Results & Prices](https://apify.com/luzivanlt/amazon-products-scraper): Every product of an Amazon search to the last page, with price and monthly sales, to track daily.

### Use it from an AI agent or the API

One call starts a run and returns its items (Apify waits up to 300 seconds; for a
longer run, start it with `POST /v2/acts/…/runs` and read its dataset):

```text
POST https://api.apify.com/v2/acts/luzivanlt~twitch-channels-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>
```

With the sample input as its JSON body:

```json
{
  "channels": ["shroud", "pokimane"],
  "searchQueries": ["valorant"],
  "maxChannelsPerSearch": 30,
  "maxChannelsPerCategory": 50,
  "topStreams": false,
  "topCategories": false,
  "maxCategories": 100,
  "includeVideos": true,
  "maxVideosPerChannel": 1,
  "videoSort": "newest",
  "videoType": "all",
  "includeClips": false,
  "maxClipsPerChannel": 20,
  "clipPeriod": "last_week"
}
```

Its inputs, in the order of the input form:

| Input                                                | What it takes                                                                                                                                                                                                                    | Default       |
| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| `channels` (Channels)                                | Twitch channels to read: a channel name (e.g. shroud), or a link to any of its pages (https://www.twitch.tv/shroud, …/shroud/videos).                                                                                            | —             |
| `searchQueries` (Search channels)                    | Words to search Twitch's channels for, as in Twitch's own search box (e.g. "valorant").                                                                                                                                          | —             |
| `maxChannelsPerSearch` (Max channels per search)     | Stop each search after this many channels, from 1 to 1,000 (Twitch lists about 1,000 at most).                                                                                                                                   | `50`          |
| `categories` (Categories)                            | Twitch categories (games and others such as Just Chatting) whose live channels you want: the name as Twitch shows it (e.g. "League of Legends") or a category link (https://www.twitch.tv/directory/category/league-of-legends). | —             |
| `maxChannelsPerCategory` (Max channels per category) | How many of a category's live channels to save, from 1 to 5,000, the most watched first, then language by language.                                                                                                              | `50`          |
| `topStreams` (Top live streams)                      | Also save the 30 most watched live channels across all of Twitch right now, each a full channel row with its stream, viewers and rank.                                                                                           | `false`       |
| `topCategories` (Top categories)                     | Also save Twitch's most watched categories right now (games and others such as Just Chatting), one row each: viewers, live channels, followers, tags, box art, release date and rank.                                            | `false`       |
| `maxCategories` (Max top categories)                 | How many of Twitch's most watched categories to save with Top categories, from 1 to 100 (Twitch lists the top 100).                                                                                                              | `100`         |
| `includeVideos` (Include videos)                     | Also save each channel's videos, one row per video: title, type, length, views, category, dates and thumbnails.                                                                                                                  | `false`       |
| `maxVideosPerChannel` (Max videos per channel)       | How many videos to save per channel with Include videos, from 1 to 2,000, newest or most viewed first as picked below.                                                                                                           | `20`          |
| `videoSort` (Videos: newest or most viewed)          | Which of a channel's videos come first with Include videos: the newest (newest) or the most viewed (most_viewed), e.g. a channel's 20 most viewed past broadcasts.                                                               | `"newest"`    |
| `videoType` (Video type)                             | Save every kind of video (all), or only one kind: past broadcasts, highlights, uploads or past premieres, e.g. highlights for the clips a streamer chose to keep.                                                                | `"all"`       |
| `includeClips` (Include clips)                       | Also save each channel's most viewed clips in the clip period, one row per clip: title, views, length, who clipped it, the video it comes from and its link.                                                                     | `false`       |
| `maxClipsPerChannel` (Max clips per channel)         | How many clips to save per channel with Include clips, from 1 to 400, most viewed first within the clip period, then the most viewed of each shorter period.                                                                     | `20`          |
| `clipPeriod` (Clip period)                           | The window the most viewed clips are picked from with Include clips: the last day, week or month, or all time, e.g. last_week for the clips everyone shared in the past seven days.                                              | `"last_week"` |

Apify's MCP server, `https://mcp.apify.com`, lists it as `luzivanlt/twitch-channels-scraper`. To give an
AI agent this Actor as a tool, add the server to the agent's MCP config:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=luzivanlt/twitch-channels-scraper"
    }
  }
}
```

The client signs in with OAuth, or add `"headers": { "Authorization": "Bearer <APIFY_TOKEN>" }`.

Charged per result delivered; the sample input above costs at most $0.06.

### FAQ

**Do I need a Twitch account?** No.

**Can I track a channel over time?** Yes: schedule the Actor daily on the
same channels and compare `followers`, `is_live` and `stream_viewers` by
`channel_id`.

**Can I find streamers in a game?** Yes: put the game under Categories for
who is live now, or search its name for every channel that matches.

### Is it legal to scrape Twitch?

This Actor reads only what Twitch shows to every visitor without signing in.
You are responsible for how you use the data, including any personal data;
check Twitch's terms and the laws that apply to you.

### Support

Found a problem or need a field? Open an issue on the Actor's Issues tab
and we will look at it.

# Changelog

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

# Actor input Schema

## `channels` (type: `array`):

Twitch channels to read: a channel name (e.g. shroud), or a link to any of its pages (https://www.twitch.tv/shroud, …/shroud/videos). One row per channel with its followers, live stream, last broadcast, team, next scheduled stream and panels; turn on videos or clips below for those too. A link to anything else stops the run before anything is read, naming the link.

## `searchQueries` (type: `array`):

Words to search Twitch's channels for, as in Twitch's own search box (e.g. "valorant"). Each search saves its channels in Twitch's order, up to Max channels per search, each a full channel row with its rank and the search's total match count.

## `maxChannelsPerSearch` (type: `integer`):

Stop each search after this many channels, from 1 to 1,000 (Twitch lists about 1,000 at most). Default 50. Each channel is one result ($1 per 1,000 results), and its videos and clips are results too, so this caps what one search costs.

## `categories` (type: `array`):

Twitch categories (games and others such as Just Chatting) whose live channels you want: the name as Twitch shows it (e.g. "League of Legends") or a category link (https://www.twitch.tv/directory/category/league-of-legends). Each category saves its most watched live channels, up to Max channels per category, with their stream, viewers and rank, and how many channels are live in it.

## `maxChannelsPerCategory` (type: `integer`):

How many of a category's live channels to save, from 1 to 5,000, the most watched first, then language by language. Default 50. Each channel is one result ($1 per 1,000 results), plus its videos and clips when those are on.

## `topStreams` (type: `boolean`):

Also save the 30 most watched live channels across all of Twitch right now, each a full channel row with its stream, viewers and rank. That is 30 results ($0.03), plus their videos and clips when those are on.

## `topCategories` (type: `boolean`):

Also save Twitch's most watched categories right now (games and others such as Just Chatting), one row each: viewers, live channels, followers, tags, box art, release date and rank. Up to Max top categories.

## `maxCategories` (type: `integer`):

How many of Twitch's most watched categories to save with Top categories, from 1 to 100 (Twitch lists the top 100). Default 100. Each category is one result ($1 per 1,000 results), so 100 cost $0.10.

## `includeVideos` (type: `boolean`):

Also save each channel's videos, one row per video: title, type, length, views, category, dates and thumbnails. Applies to every channel the run saves, from channels, searches, categories or top streams. Each video is one result; one more request per channel.

## `maxVideosPerChannel` (type: `integer`):

How many videos to save per channel with Include videos, from 1 to 2,000, newest or most viewed first as picked below. Default 20. Each video is one result ($1 per 1,000 results), so 20 videos for 50 channels cost $1.

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

Which of a channel's videos come first with Include videos: the newest (newest) or the most viewed (most_viewed), e.g. a channel's 20 most viewed past broadcasts. Past its first 100, a channel's other videos follow, oldest and least viewed too. Default newest.

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

Save every kind of video (all), or only one kind: past broadcasts, highlights, uploads or past premieres, e.g. highlights for the clips a streamer chose to keep. Default all. Each video row says its type.

## `includeClips` (type: `boolean`):

Also save each channel's most viewed clips in the clip period, one row per clip: title, views, length, who clipped it, the video it comes from and its link. Applies to every channel the run saves. Each clip is one result; one more request per channel.

## `maxClipsPerChannel` (type: `integer`):

How many clips to save per channel with Include clips, from 1 to 400, most viewed first within the clip period, then the most viewed of each shorter period. Up to 100 a period, so how many a channel can give depends on the period: 400 with all time, 300 with last month, 200 with last week, 100 with last day. Default 20. Each clip is one result ($1 per 1,000 results), so 20 clips for 50 channels cost $1.

## `clipPeriod` (type: `string`):

The window the most viewed clips are picked from with Include clips: the last day, week or month, or all time, e.g. last_week for the clips everyone shared in the past seven days. Default last_week.

## Actor input object example

```json
{
  "channels": [
    "shroud",
    "pokimane"
  ],
  "searchQueries": [
    "valorant"
  ],
  "maxChannelsPerSearch": 30,
  "maxChannelsPerCategory": 50,
  "topStreams": false,
  "topCategories": false,
  "maxCategories": 100,
  "includeVideos": true,
  "maxVideosPerChannel": 1,
  "videoSort": "newest",
  "videoType": "all",
  "includeClips": false,
  "maxClipsPerChannel": 20,
  "clipPeriod": "last_week"
}
```

# Actor output Schema

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

Every row the run saved: channels, videos, clips and categories, one row each.

## `allFields` (type: `string`):

The same rows with every field.

## `runReport` (type: `string`):

What happened to each input: items saved, nothing found, refused by the site, stopped at your limit, or the error.

# 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 = {
    "channels": [
        "shroud",
        "pokimane"
    ],
    "searchQueries": [
        "valorant"
    ],
    "maxChannelsPerSearch": 30,
    "includeVideos": true,
    "maxVideosPerChannel": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/twitch-channels-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 = {
    "channels": [
        "shroud",
        "pokimane",
    ],
    "searchQueries": ["valorant"],
    "maxChannelsPerSearch": 30,
    "includeVideos": True,
    "maxVideosPerChannel": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/twitch-channels-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 '{
  "channels": [
    "shroud",
    "pokimane"
  ],
  "searchQueries": [
    "valorant"
  ],
  "maxChannelsPerSearch": 30,
  "includeVideos": true,
  "maxVideosPerChannel": 1
}' |
apify call luzivanlt/twitch-channels-scraper --silent --output-dataset

```

## MCP server setup

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