# Twitch Channel Videos (`apt_marble/twitch-channel-videos`) Actor

Turn any Twitch channel name into a list of its recent videos: titles, view counts, durations, publish dates and links.

- **URL**: https://apify.com/apt\_marble/twitch-channel-videos.md
- **Developed by:** [Hamza](https://apify.com/apt_marble) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 videos

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 Videos

Paste one or more Twitch channel names and get back a list of each channel's videos: titles, view counts, durations, publish dates and links. Built for anyone who needs a creator's video history as data: talent scouts pricing creators on proven views, editors finding standout episodes, analysts tracking output volume, and brands checking what a streamer actually publishes.

### What you can do with it

- **List a channel's videos** — paste handles like `shroud` and get titles, views, durations and dates back as clean rows.
- **Find proven hits** — sort most-watched first to surface the videos that earned their audience.
- **Audit output and formats** — compare durations, games and publish dates across a roster or against competitors.
- **Split by video kind** — collect past broadcasts, highlights or uploads separately.
- **Monitor output on a schedule** — re-run the same channels and diff each fresh dataset against the last.

### What you get

One row per video. Abridged sample of a single record:

```json
{
  "videoId": "2827992810",
  "title": "Ranked grind day 12",
  "description": "Full broadcast from today",
  "channelName": "shroud",
  "viewCount": 187328,
  "durationSeconds": 20988,
  "publishedAt": "2026-07-24T17:56:52Z",
  "createdAt": "2026-07-23T18:19:36Z",
  "broadcastType": "ARCHIVE",
  "game": "VALORANT",
  "thumbnailUrl": "https://static-cdn.jtvnw.net/cf_vods/…-thumb.jpg",
  "videoUrl": "https://www.twitch.tv/videos/2827992810",
  "tags": []
}
```

### Input reference

| Setting | Type | Default | What it does |
| --- | --- | --- | --- |
| Channel names | list of text | — | Twitch channel names or channel links, e.g. `shroud` or `https://www.twitch.tv/shroud`. Videos are collected per channel. **Required.** |
| Video type | choice | `ARCHIVE` | Which kind of videos to collect: past broadcasts (`ARCHIVE`), highlights (`HIGHLIGHT`) or uploads (`UPLOAD`). |
| Sort by | choice | `TIME` | Newest first (`TIME`) or most-watched first (`VIEWS`). Each choice returns a different slice of the channel's videos. |
| Videos per channel | whole number | `50` | How many videos to collect per channel. Maximum 100. |
| Max items | whole number | `500` | Maximum video rows across all channels. The actor works through your channels until this number is reached or the channels run out. Maximum 2,000. |

### Output fields

| Field | Type | Description |
| --- | --- | --- |
| `videoId` | text | Stable numeric Twitch ID for the video. |
| `title` | text | Video title. |
| `description` | text | Video description, when shown. |
| `channelName` | text | Owning channel's handle. |
| `viewCount` | number | Total views at collection time. |
| `durationSeconds` | number | Length in seconds. |
| `publishedAt` | text | Publish date (ISO date). |
| `createdAt` | text | Recording date (ISO date). |
| `broadcastType` | text | `ARCHIVE`, `HIGHLIGHT` or `UPLOAD`. |
| `game` | text | Category the video is filed under, when shown. |
| `thumbnailUrl` | text | Preview image. |
| `videoUrl` | text | Clean link to the video page. |
| `tags` | list of text | Content tags, when shown. |

### Pricing

You pay per video row, with no monthly minimum.

| What you are charged for | Price |
| --- | --- |
| Video row — one row added to your dataset | **$1.50 per 1,000** |

**Worked example.** A run that collects 1,000 video rows costs 1,000 × $0.0015 = **$1.50**. A daily run collecting 200 rows is about $0.30 per run, roughly $9 a month.

### Limits & what this actor cannot do

- Each channel returns a single snapshot of up to 100 videos — the full archive of a long-running channel is not collected.
- Rows are a snapshot at the moment of collection; view counts keep changing afterwards.
- Descriptions and content tags are often empty on Twitch and come back empty rather than guessed.
- Unknown or misspelled channel names are skipped, not charged.
- Speed depends on the size of the job and on Twitch's own response times; no fixed throughput is promised.
- Twitch's terms govern automated access. You are responsible for using the data lawfully and in line with the source site's terms, and for handling any personal data in line with applicable privacy law.

### FAQ

**Do I need a Twitch account?**
No. The actor reads only what Twitch shows on video pages — paste channel names and press start.

**What is the difference between newest and most-watched?**
Newest returns the latest uploads; most-watched returns the channel's all-time best performers. They are different slices — run both for full coverage.

**How many videos can I collect per run?**
Up to 100 per channel and 2,000 rows per run.

**Can I schedule it?**
Yes. Schedule it hourly, daily or weekly from the Apify console, and each run writes a fresh dataset you can compare against the last.

**Is the data complete?**
It covers the requested slice of each channel at collection time. Videos beyond the snapshot cut-off are not included.

# Actor input Schema

## `channelNames` (type: `array`):

Twitch channel names or channel links, e.g. "shroud" or "https://www.twitch.tv/shroud". Videos are collected per channel.

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

Which kind of videos to collect: past broadcasts (ARCHIVE), highlights (HIGHLIGHT) or uploads (UPLOAD).

## `sortBy` (type: `string`):

Newest first (TIME) or most-watched first (VIEWS). Each choice returns a different slice of the channel's videos.

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

How many videos to collect per channel. Maximum 100 — each channel returns a single snapshot, not the full archive.

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

Maximum video rows to collect across all channels. The actor works through your channels until this number is reached or the channels run out.

## Actor input object example

```json
{
  "channelNames": [
    "https://www.twitch.tv/shroud"
  ],
  "videoType": "ARCHIVE",
  "sortBy": "TIME",
  "maxVideosPerChannel": 50,
  "maxItems": 500
}
```

# Actor output Schema

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

Every row this run produced.

## `runSummary` (type: `string`):

What this run collected, and anything it could not read.

# 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 = {
    "channelNames": [
        "https://www.twitch.tv/shroud"
    ],
    "videoType": "ARCHIVE",
    "sortBy": "TIME",
    "maxVideosPerChannel": 50,
    "maxItems": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/twitch-channel-videos").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 = {
    "channelNames": ["https://www.twitch.tv/shroud"],
    "videoType": "ARCHIVE",
    "sortBy": "TIME",
    "maxVideosPerChannel": 50,
    "maxItems": 500,
}

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/twitch-channel-videos").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 '{
  "channelNames": [
    "https://www.twitch.tv/shroud"
  ],
  "videoType": "ARCHIVE",
  "sortBy": "TIME",
  "maxVideosPerChannel": 50,
  "maxItems": 500
}' |
apify call apt_marble/twitch-channel-videos --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_marble/twitch-channel-videos"
        }
    }
}
```

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/vzNxsn0XlHmitWyMj/builds/eqgQLNkf68dJyw0cW/openapi.json
