# Twitch API

Retrieve Twitch channel profiles, active streams, top clips and games to monitor live broadcast content.

Pass the channel login name, not a twitch.tv URL. An invalid clip period falls back to the last week.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "twitch", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/twitch-api](https://everyinfra.com/en/twitch-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
Find Twitch channels by keyword, with follower count, Partner or Affiliate status, live state and last broadcast details. It searches channels, not chat, and `is_live` reflects the moment of the call rather than a guarantee.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=30. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Channel keyword for search. The streams endpoint requires an exact game or category name via game, rather than arbitrary stream title keywords.
- Returns fields: user_id, username, display_name, bio, url, avatar_url, banner_url, follower_count, is_partner, is_affiliate, is_live, current_viewers, stream_title, current_game, stream_started_at, last_broadcast_title, last_broadcast_game, last_broadcast_at, created_at, platform
- Capability page: [https://everyinfra.com/en/twitch-api/search](https://everyinfra.com/en/twitch-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitch-api/search.md)

### profile — Profiles
Pull a Twitch channel's profile, Partner or Affiliate status, live stream details and last broadcast. Recent videos and top clips come by default. Set `include_videos` or `include_clips` to the boolean false to drop those sections. Revenue, subscriber names and private analytics are not exposed.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `username` (required): Twitch channel login short name for profile or clips, optionally prefixed with @, without parsing full twitch.tv URLs.
  - `include_clips` (optional): Boolean value defaulting to true indicating whether the profile response includes curated clip information. Its time window differs from the standalone clips endpoint.
  - `include_videos` (optional): Boolean value defaulting to true indicating whether the profile response includes recent video archive information. Set to false to omit this section; do not pass the string "false".
- Returns fields: user_id, username, display_name, bio, url, avatar_url, banner_url, follower_count, is_partner, is_affiliate, is_live, current_viewers, stream_title, current_game, stream_started_at, last_broadcast_title, last_broadcast_game, last_broadcast_at, created_at, recent_videos, top_clips, platform
- Capability page: [https://everyinfra.com/en/twitch-api/profile](https://everyinfra.com/en/twitch-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitch-api/profile.md)

### clips — Clips
Get the clips cut from a Twitch channel. Each clip has title, views, length, game and the viewer who clipped it. `period` picks the past day, week (the default), month or all time. The window may not hold every clip.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=30. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `username` (required): Twitch channel login short name for profile or clips, optionally prefixed with @, without parsing full twitch.tv URLs.
  - `period` (optional): Time window for clips: LAST_DAY for the past day, LAST_WEEK for the past week (default), LAST_MONTH for the past month, or ALL_TIME for unrestricted. Values are case-insensitive, and invalid values fall back to LAST_WEEK.
- Returns fields: id, title, url, view_count, duration_seconds, duration_sec, game, channel_username, channel_name, curator_username, curator_name, thumbnail_url, created_at, platform
- Capability page: [https://everyinfra.com/en/twitch-api/clips](https://everyinfra.com/en/twitch-api/clips?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitch-api/clips.md)

### streams — Streams
List Twitch channels currently live in a category, with stream title, viewer count, follower count and start time. `game` needs the exact category name, such as Just Chatting, and viewer counts are a snapshot.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=30. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `game` (required): Exact Twitch category name for streams, such as Just Chatting. Returns channels currently streaming in that category, not historical video archives of the game.
- Returns fields: stream_id, username, display_name, follower_count, title, viewer_count, game, started_at, url, avatar_url, platform
- Capability page: [https://everyinfra.com/en/twitch-api/streams](https://everyinfra.com/en/twitch-api/streams?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitch-api/streams.md)

### top_streams — Top streams
See the top live streams on Twitch with channel, title, game, viewer count and start time, no input required. The order is neither a lasting ranking nor a recommendation of our own.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=30. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Returns fields: stream_id, username, display_name, follower_count, title, viewer_count, game, started_at, url, avatar_url, platform
- Capability page: [https://everyinfra.com/en/twitch-api/top_streams](https://everyinfra.com/en/twitch-api/top_streams?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitch-api/top_streams.md)

### top_games — Top games
Track the top games on Twitch with viewer and broadcaster counts and box art, no input needed. The counts describe Twitch viewing only, not sales, total players or popularity elsewhere.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Returns fields: id, name, viewer_count, broadcaster_count, box_art_url, url, platform
- Capability page: [https://everyinfra.com/en/twitch-api/top_games](https://everyinfra.com/en/twitch-api/top_games?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitch-api/top_games.md)

## Twitch API questions

### What can I retrieve with the Twitch API?

Set `platform` to `twitch`. The current catalog lists search, profiles, clips, streams, top streams, and more. These action names identify different Twitch objects or views; they are not interchangeable search modes.

### Which input starts the Twitch `search` request?

Channel keyword for search. The streams endpoint requires an exact game or category name via game, rather than arbitrary stream title keywords. Send it as `keyword` inside `params`.

### Which fields can Twitch `search` return?

Its declared schema includes `user_id`, `username`, `display_name`, and `bio`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every Twitch action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=twitch
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
