# See the top Twitch games and categories by live viewers

**Use case:** 

Lists the most watched Twitch games and categories right now, ranked by current viewers, with the number of live channels, followers and box art. Schedule it hourly to build a viewership history for esports, game marketing and streaming market research.

## Input

```json
{
  "includeProfiles": true,
  "includeEmails": true,
  "maxVodsPerChannel": 0,
  "vodType": "archive",
  "vodSort": "time",
  "maxClipsPerChannel": 0,
  "clipPeriod": "LAST_WEEK",
  "includeClipVideoUrls": false,
  "maxLiveStreams": 0,
  "minViewers": 0,
  "minFollowers": 0,
  "maxFollowers": 0,
  "maxTopGames": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "maxRetries": 4
}
```

## Output

```json
{
  "rank": {
    "label": "Rank",
    "format": "integer"
  },
  "boxArtUrl": {
    "label": "Box art",
    "format": "image"
  },
  "name": {
    "label": "Category",
    "format": "text"
  },
  "viewers": {
    "label": "Viewers",
    "format": "integer"
  },
  "liveChannels": {
    "label": "Live channels",
    "format": "number"
  },
  "followers": {
    "label": "Followers",
    "format": "integer"
  },
  "tags": {
    "label": "Tags",
    "format": "array"
  },
  "url": {
    "label": "Link",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Twitch Scraper: Channels, Live Streams, Top Games, VODs, Clips Actor is ready to run with the inputs already set for "See the top Twitch games and categories by live viewers". [Sign up or log in](https://console.apify.com/create-task-from-example/IR0sDc2UtfYceCc7P) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "See the top Twitch games and categories by live viewers" task

The Twitch Scraper: Channels, Live Streams, Top Games, VODs, Clips Actor will start running based on the input automatically. You can also change all the input fields, like save channel profiles, extract emails from bio and panels, and more, to match your specific use case.

### 3. Receive the "See the top Twitch games and categories by live viewers" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as rank, box art, category, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "See the top Twitch games and categories by live viewers" task via API](https://apify.com/zhtech/twitch-scraper.md).

## FAQ

### What does the top Twitch games by viewers task return?

The top Twitch games by viewers task returns one row per game or category with rank, name, current viewers, number of live channels, followers, box art and the Twitch directory URL.

### How do I also get the top streams of each game?

Raise Max live streams in the top Twitch games by viewers task and list the games in Categories (games). Each live stream row has the streamer, title, viewers, language and channel followers.

### Can I run the top Twitch games by viewers task on a schedule or through the API?

Save the top Twitch games by viewers task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the top Twitch games by viewers task cost?

The top Twitch games by viewers task is pay per event: a small start fee per run plus a fee per category row saved. Error rows are free. Prices are on the Pricing tab.

## About this Actor

This example demonstrates how to use [Twitch Scraper: Channels, Live Streams, Top Games, VODs, Clips](https://apify.com/zhtech/twitch-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhtech/twitch-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhtech/twitch-scraper.md

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`).
