# Twitch Posts Scraper (`icoe-man/twitch-posts-scraper`) Actor

A twitch videos scraper for channels and clips: list the latest videos of a channel, or read a single clip, with title, date, views, length and game. Export JSON, CSV or Excel.

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

## Pricing

Pay per event

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 Posts Scraper

Get a table with details on a Twitch channel's latest public videos or a single public clip. To collect videos, choose Profile videos and enter channel names in Channels. For a clip, choose Single clip and paste its link in Clip links. You can export the table to a spreadsheet or another tool. The export contains details about the videos or clips, with no media files.

### What you get

Under **What to collect**, choose the type of results you want. Fill in the fields for that choice, then start the run. Each run returns one kind of result. The Actor ignores fields from other modes. Use full web addresses. If you have a short link, open it and copy the full address from your browser's address bar. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Collection modes

#### Profile videos

List up to 100 public videos per Twitch channel, with the newest or most viewed first and the view count, length and game for each video. In `profile-videos` mode, fill in **Channels** (up to 100 entries), and **Order** (optional), **Video kind** (optional). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 30 and the highest setting is 100. Each post appears in its own row and counts as one **Channel video result** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "twitch",
  "id": "2000000001",
  "url": "https://www.twitch.tv/videos/2000000001",
  "author": {
    "id": "36029255",
    "username": "riotgames",
    "displayName": "Riot Games"
  },
  "text": "An example video title for a channel broadcast, shown for illustration.",
  "createdAt": "2026-11-12T18:00:00Z",
  "metrics": {
    "views": 48210
  },
  "hashtags": [],
  "mentions": [],
  "media": [],
  "details": {
    "twitch": {
      "kind": "video",
      "durationSec": 7200,
      "game": "League of Legends",
      "channelPartner": true
    }
  },
  "collectedAt": "2026-11-15T12:00:00Z",
  "input": {
    "channel": "riotgames",
    "maxItems": 10,
    "sortBy": "views"
  }
}
```

#### Single clip

Get the title, date, view count, length and game for a public Twitch clip, plus the original broadcast and the clip creator when available. In `clip-get` mode, fill in **Clip links** (up to 100 entries). You get one post per entry. Each post appears in its own row and counts as one **Clip result** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "twitch",
  "id": "PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l",
  "url": "https://www.twitch.tv/riotgames/clip/PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l",
  "author": {
    "id": "36029255",
    "username": "riotgames",
    "displayName": "Riot Games"
  },
  "text": "An example clip title, shown for illustration.",
  "language": "en",
  "createdAt": "2026-11-12T19:30:00Z",
  "metrics": {
    "views": 1520
  },
  "hashtags": [],
  "mentions": [],
  "media": [],
  "details": {
    "twitch": {
      "kind": "clip",
      "durationSec": 30,
      "game": "League of Legends",
      "channelFollowers": 8200000,
      "channelPartner": true,
      "featured": false,
      "broadcastId": "2000000002",
      "broadcastTitle": "An example broadcast title, shown for illustration",
      "offsetSec": 5400,
      "clipCreator": {
        "login": "exampleviewer",
        "displayName": "ExampleViewer"
      }
    }
  },
  "collectedAt": "2026-11-15T12:00:00Z",
  "input": {
    "url": "https://www.twitch.tv/riotgames/clip/PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l",
    "maxItems": 1
  }
}
```

### Ways to use the data

- Channel research: Compare how long a channel's latest public videos run and how many views they get.
- Content research: Note a clip's title, date and game so you can refer to it later.
- Reporting: List a channel's videos by publication date for your report.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `mode` | What to collect | Choose one type of result per run, then fill in the fields for that choice. |
| `channels` | Channels | Enter Twitch channel names like riotgames or paste channel links like https://www.twitch.tv/riotgames. |
| `sortBy` | Order | Choose newest (the default) to see the latest videos first or views to see the most viewed first. Both options return up to 100 videos per channel. |
| `videoType` | Video kind | Leave this set to all to include every kind, or choose archive for past broadcasts, highlight for highlights or upload for uploads. You get the first 100 matches at most per channel. |
| `clipUrls` | Clip links | Paste full Twitch clip links, like https://www.twitch.tv/riotgames/clip/PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l. |
| `maxItems` | Result limit per target | Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. The limit you set doesn't apply to these modes, which return one result per target: Single clip. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "mode": "profile-videos",
  "channels": [
    "riotgames"
  ],
  "sortBy": "newest",
  "videoType": "all",
  "maxItems": 10,
  "freshness": "standard"
}
```

### Your results

Each mode has its own view of the results table. See **Collection modes** for what each mode returns.

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`. If a required field for your mode is blank, the run returns one error row and collects no data.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Clip result | $4.246 | $3.692 | $3.692 | $3.692 | $3.692 | $3.692 |
| Channel video result | $2.592 | $2.254 | $1.795 | $1.352 | $1.352 | $1.352 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 10 results per run and make up to 20 runs per day.

### Common questions

#### What data do I get in each mode?

Profile videos lists up to 100 videos per channel, with the newest or most viewed first. You can include all video kinds or limit the list to past broadcasts, highlights or uploads. Single clip gives you one row per clip link. In either mode, each row shows the title, date, view count, length, game and whether the channel is a Twitch partner. When available, clip details include the channel's follower count, whether the clip is featured, which broadcast it came from, where it starts in that broadcast and who Twitch lists as its creator.

#### Do I get the actual videos or clips?

No. The tool does not download video files. You can export a table with details about the videos or clips.

#### Do I need to sign in to Twitch?

No. The Actor collects only public Twitch data, so you don't need to sign in or share browser cookies.

#### How do I limit results, and what do I pay for?

Set Result limit per target to cap the number of results for each channel or clip link. You pay only for results you receive. Errors and empty results don't count. The run stops when it reaches your spending limit.

#### Is this tool affiliated with Twitch?

No. This tool is independent and has no affiliation with Twitch. Twitch does not endorse or sponsor it. The tool collects only information Twitch shows publicly.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by Twitch. All trademarks belong to their owners.

# Actor input Schema

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

Choose one type of result per run, then fill in the fields for that choice.

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

Enter Twitch channel names like riotgames or paste channel links like https://www.twitch.tv/riotgames.

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

Choose newest (the default) to see the latest videos first or views to see the most viewed first. Both options return up to 100 videos per channel.

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

Leave this set to all to include every kind, or choose archive for past broadcasts, highlight for highlights or upload for uploads. You get the first 100 matches at most per channel.

## `clipUrls` (type: `array`):

Paste full Twitch clip links, like https://www.twitch.tv/riotgames/clip/PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l.

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

Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. The limit you set doesn't apply to these modes, which return one result per target: Single clip.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "mode": "profile-videos",
  "channels": [
    "riotgames"
  ],
  "sortBy": "newest",
  "videoType": "all",
  "clipUrls": [
    "https://www.twitch.tv/riotgames/clip/PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l"
  ],
  "maxItems": 10,
  "freshness": "standard"
}
```

# Actor output Schema

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

See everything this run collected in one table.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "profile-videos",
    "channels": [
        "riotgames"
    ],
    "clipUrls": [
        "https://www.twitch.tv/riotgames/clip/PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/twitch-posts-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "profile-videos",
    "channels": ["riotgames"],
    "clipUrls": ["https://www.twitch.tv/riotgames/clip/PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l"],
    "maxItems": 10,
}

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

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

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

```

## CLI example

```bash
echo '{
  "mode": "profile-videos",
  "channels": [
    "riotgames"
  ],
  "clipUrls": [
    "https://www.twitch.tv/riotgames/clip/PoliteBitterBeeTTours-WU9-yzZPbr_nCU7l"
  ],
  "maxItems": 10
}' |
apify call icoe-man/twitch-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,icoe-man/twitch-posts-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/RMYBQXCbpZtZepwA9/builds/ezVYdRPh4dJGrxO2N/openapi.json
