# Twitch Channel Info (`xtracto/twitch-channel`) Actor

Scrape public channel metadata, live-stream status, follower count, and last broadcast from Twitch.

- **URL**: https://apify.com/xtracto/twitch-channel.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (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

from $2.67 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Channel Scraper

Extract public profile data from any Twitch channel in bulk — display name, bio, follower count, partner / affiliate status, profile picture, live-stream status, current game, and last broadcast details — in a clean structured JSON output.

### Why use this actor

- **No account / no login required** — just give it a Twitch channel login (the slug from `twitch.tv/<login>`).
- **No API key needed** — no Twitch developer registration, no OAuth, no client-ID juggling; this actor returns the same data the Twitch website shows.
- **Partner & affiliate status** — instantly tell whether a channel is a Twitch Partner, an Affiliate, or neither.
- **Live follower count** — exact subscriber-of-the-channel count, useful for tracking growth or building leaderboards.
- **Live status + current game** — see whether the channel is currently streaming, what game / category, viewer count, and stream title.
- **Last broadcast snapshot** — even when the channel is offline you get the title, game, and start time of the previous stream.
- **Stable JSON output** suitable for pipelines, spreadsheets, and databases — every row carries `_input`, `_source`, `_scrapedAt` envelope fields so you can join results back to your input list.

### How it works

1. You provide a list of Twitch channel logins (e.g. `xqc`, `shroud`). Logins are case-insensitive and a leading `@` is tolerated.
2. The actor fetches each channel record the same way the Twitch web app does and assembles a flat JSON record with profile, partner status, live state, and last-broadcast fields.
3. Results stream into your dataset, ready to download as JSON, CSV, or Excel.

You do not need to manage scrapers, browsers, or rotating IPs — all handled internally.

### Input

```json
{
  "channels": [
    "xqc",
    "shroud"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["DATACENTER"]
  }
}
```

| Field | Type | Description |
|---|---|---|
| `channels` | array | List of Twitch channel logins to scrape. Use the short URL slug (the part after `twitch.tv/`), case-insensitive. |
| `proxyConfiguration` | object | Apify Proxy settings. Datacenter proxy works for most channels; switch to residential for very large bulk runs. |

### Output

Input: `xqc`

```json
{
  "_input": "xqc",
  "_source": "S1-primary",
  "_scrapedAt": "2026-05-18T11:23:30.360835+00:00",
  "id": "71092938",
  "login": "xqc",
  "displayName": "xQc",
  "description": "THE BEST AT ABSOLUTELY EVERYTHING. THE JUICER. LEADER OF THE JUICERS.",
  "profileImageUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/xqc-profile_image-9298dca608632101-300x300.jpeg",
  "offlineImageUrl": "https://static-cdn.jtvnw.net/jtv_user_pictures/00f23655-a8b0-4d87-8053-d407892bda4d-channel_offline_image-1920x1080.png",
  "primaryColorHex": "FFBF00",
  "followerCount": 12420194,
  "isAffiliate": false,
  "isPartner": true,
  "schedule": null,
  "isLive": false,
  "stream": null,
  "lastBroadcast": {
    "title": "LIVE CLICK HERE LOCK IN DRAMA NEWS VIDEOS REACTS CLIPS GAMES LOCK IN ERA IS UPON US W0W",
    "game": "Subnautica 2",
    "startedAt": "2026-05-18T01:16:58.283105Z"
  }
}
```

| Field | Type | Description |
|---|---|---|
| `_input` | string | The login exactly as you supplied it. Use this to join results back to your input list. |
| `_source` | string | Internal tag for the path used to fetch the record. `S1-primary` means the fastest, richest path; values starting with `S2-` indicate a fallback was used. |
| `_scrapedAt` | string | ISO-8601 UTC timestamp when the record was scraped. |
| `id` | string | Twitch's internal numeric user ID (stable across login changes). |
| `login` | string | Lowercase URL slug for the channel (e.g. `xqc`). |
| `displayName` | string | Display name shown in the Twitch UI, with casing and special characters preserved (e.g. `xQc`). |
| `description` | string | Channel bio / "About" text. `null` if the streamer didn't set one. |
| `profileImageUrl` | string | URL of the channel's profile picture (300x300). |
| `offlineImageUrl` | string | URL of the offline banner shown when the channel isn't live. `null` if not set. |
| `primaryColorHex` | string | Channel's primary accent color as a 6-character hex code (no leading `#`). |
| `followerCount` | integer | Total followers of the channel. Refreshed live on every run. |
| `isAffiliate` | boolean | `true` if the channel is in the Twitch Affiliate program. |
| `isPartner` | boolean | `true` if the channel is a Twitch Partner (verified checkmark). |
| `schedule` | object | Upcoming stream schedule, when published by the streamer. `null` otherwise. |
| `isLive` | boolean | `true` if the channel is broadcasting right now. |
| `stream` | object | When `isLive` is `true`: `id`, `title`, `game`, `viewerCount`, `startedAt`, `previewImageUrl`. `null` when offline. |
| `lastBroadcast` | object | Title, game, and `startedAt` of the previous stream — populated even when the channel is offline. |

#### Error envelope

Channels that don't exist or fail to fetch return a structured error instead of crashing the run:

```json
{
  "_input": "this-channel-does-not-exist-xyz",
  "_error": "not_found",
  "_scrapedAt": "2026-05-18T11:23:31.012345+00:00"
}
```

Filter on `_error` to triage failed rows.

### Pricing

This actor is billed per result: **$3.50 per 1,000 results**. Each successful channel = 1 result. Errors (not-found, banned, suspended) are not billed.

### Other Sosmed Actors

| Platform | Actor | Best for |
|---|---|---|
| Twitch | [Twitch Clips Scraper](https://apify.com/xtracto/twitch-clips) | Top / recent clips for a channel |
| Twitch | [Twitch Video Detail Scraper](https://apify.com/xtracto/twitch-video-detail) | VOD metadata, duration, view count |
| YouTube | [YouTube Channel Scraper](https://apify.com/xtracto/youtube-channel-scraper) | Subscriber count, video count, channel bio |
| Instagram | [Instagram Account Scraper](https://apify.com/xtracto/instagram-account-scraper) | Bio, followers, post count |
| X (Twitter) | [X Account Scraper](https://apify.com/xtracto/x-account-scraper) | Profile + tweet counts for any handle |
| Bluesky | [Bluesky Account Scraper](https://apify.com/xtracto/bluesky-account-scraper) | atproto profile + counters |
| Mastodon | [Mastodon Account Scraper](https://apify.com/xtracto/mastodon-account-scraper) | Federated profile data for any handle |

Browse the full catalog at [apify.com/xtracto](https://apify.com/xtracto).

### Notes

- Channel logins are case-insensitive (`Ninja` and `ninja` return the same record) and a leading `@` is tolerated.
- Banned, suspended, or never-existed channels return `{"_error": "not_found", "_input": "..."}` rather than crashing the run.
- Very large channels (millions of followers) may show a follower count rounded to the nearest few hundred on Twitch's side — the actor returns whatever Twitch publishes.
- Channels that have never streamed return `lastBroadcast: null`; brand-new channels without bios return `description: null`.
- For large jobs (>500 channels), enable Apify Proxy rotation to avoid per-IP rate limits.

# Actor input Schema

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

List of Twitch channel logins to scrape. Use the short URL slug (the part after twitch.tv/), case-insensitive. Examples: 'xqc', 'shroud', 'pokimane'.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Datacenter proxy works for most channels; switch to residential for very large bulk runs.

## Actor input object example

```json
{
  "channels": [
    "xqc",
    "shroud"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `id` (type: `string`):

Unique identifier of the item at the source.

## `login` (type: `string`):

Login as reported by the source.

## `displayName` (type: `string`):

Display name of the account.

## `description` (type: `string`):

Short description or summary.

## `profileImageUrl` (type: `string`):

Link to the profile image.

## `offlineImageUrl` (type: `string`):

Link to the offline image.

## `primaryColorHex` (type: `string`):

Primary Color Hex as reported by the source.

## `followerCount` (type: `string`):

Follower Count. Whole number.

## `isAffiliate` (type: `string`):

Is Affiliate. Boolean value.

## `isPartner` (type: `string`):

Is Partner. Boolean value.

## `schedule` (type: `string`):

Schedule as reported by the source.

## `isLive` (type: `string`):

Is Live. Boolean value.

## `stream` (type: `string`):

Stream as reported by the source.

## `lastBroadcast` (type: `string`):

Last Broadcast as reported by the source.

## `title` (type: `string`):

Title of the item.

## `game` (type: `string`):

Game as reported by the source.

## `viewerCount` (type: `string`):

Viewer Count. Whole number.

## `startedAt` (type: `string`):

Started At as reported by the source.

## `previewImageUrl` (type: `string`):

Link to the preview image.

## `_input` (type: `string`):

The input value this row was produced from.

## `_source` (type: `string`):

Which extraction strategy produced the row.

## `_scrapedAt` (type: `string`):

UTC timestamp of the scrape, ISO 8601.

## `_error` (type: `string`):

Set only on diagnostic rows - why that target produced no data.

## `_errorDetail` (type: `string`):

Extra context for 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": [
        "xqc",
        "shroud"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/twitch-channel").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": [
        "xqc",
        "shroud",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("xtracto/twitch-channel").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": [
    "xqc",
    "shroud"
  ]
}' |
apify call xtracto/twitch-channel --silent --output-dataset

```

## MCP server setup

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

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/WRYoXTT43OoH0hohf/builds/YpnTo1Ha1g1LtXkHU/openapi.json
