# Twitch API API reference

> The Twitch API (Helix) returns public data about Twitch users, channels, streams and categories. An investigator uses it to resolve a login to an account ID and profile, to find channels by name, and to see who is live and in which category. Requests go to https://api.twitch.tv/helix. Each call…

Source: https://osinttools.io/apis/twitch-api/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/twitch-api/

- Base URL: https://api.twitch.tv/helix
- Authentication: Bearer token in the `Authorization` header. Get a key: https://dev.twitch.tv/console Also send your app's Client-Id header with every request.
- Rate limits: Token bucket per app (and per client ID per user for user tokens); 1 point per request by default; 429 when the bucket is empty
- Vendor docs: https://dev.twitch.tv/docs/api/reference/

## Overview

The Twitch API (Helix) returns public data about Twitch users, channels, streams and categories. An investigator uses it to resolve a login to an account ID and profile, to find channels by name, and to see who is live and in which category.

Requests go to `https://api.twitch.tv/helix`. Each call sends an `Authorization: Bearer <token>` header and a `Client-Id` header. An app access token comes from a POST to `https://id.twitch.tv/oauth2/token` with `client_id`, `client_secret` and `grant_type=client_credentials`. Get Users, search, streams and channel information accept either an app or a user access token.

Limits use a token bucket: each request costs 1 point unless the endpoint says otherwise, and an empty bucket returns 429. Responses carry `Ratelimit-Limit`, `Ratelimit-Remaining` and `Ratelimit-Reset` headers.

## Errors

| Status | Meaning |
| --- | --- |
| 429 | The rate-limit bucket ran out of points within one minute; use the Ratelimit-Reset header |

## Users

### Get information about one or more users by login name or ID.

`GET /users`

- Takes: Username
- Footprint: passive (the target is not contacted)

Repeat id or login for several users; at most 100 values in total. With a user access token and neither parameter, it describes the token's own user. Deleted and suspended accounts are not returned.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Client-Id` | header | string | yes | Your application's client ID Example: YOUR_CLIENT_ID |
| `login` | query | string | no | Login name to look up; repeatable, max 100 Example: examplestreamer |
| `id` | query | string | no | User ID to look up; repeatable, max 100 Example: 123456789 |

Response fields:

- `data[].id` (string): User ID
- `data[].login` (string): Login name
- `data[].display_name` (string): Display name
- `data[].type` (string): admin, global_mod or staff; empty string for a normal user
- `data[].broadcaster_type` (string): affiliate or partner; empty string for a normal broadcaster
- `data[].description` (string): Channel description
- `data[].profile_image_url` (string): Profile image URL
- `data[].offline_image_url` (string): Offline image URL
- `data[].email` (string): Only for the token's own user with the user:read:email scope
- `data[].created_at` (string): Account creation time, RFC 3339 UTC

```bash
curl 'https://api.twitch.tv/helix/users' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
```

Example response (200):

```json
{
  "data": [
    {
      "id": "123456789",
      "login": "examplestreamer",
      "display_name": "ExampleStreamer",
      "type": "",
      "broadcaster_type": "affiliate",
      "description": "Example channel",
      "profile_image_url": "https://example.com/profile.png",
      "offline_image_url": "",
      "created_at": "2020-01-01T00:00:00Z"
    }
  ]
}
```

## Search

### Find channels that match a search string.

`GET /search/channels`

- Takes: Username, Name
- Footprint: passive (the target is not contacted)

Returns channels matching the query, optionally only live ones. Page with the cursor in pagination.cursor.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Client-Id` | header | string | yes | Your application's client ID Example: YOUR_CLIENT_ID |
| `query` | query | string | yes | URI-encoded search string Example: examplestreamer |
| `live_only` | query | boolean | no | Return only live channels |
| `first` | query | integer | no | Results per page, 1 to 100 Example: 20 |
| `after` | query | string | no | Cursor for the next page Example: YOUR_CURSOR |

Response fields:

- `data[].id` (string): Broadcaster's channel ID
- `data[].broadcaster_login` (string): Login name
- `data[].display_name` (string): Display name
- `data[].broadcaster_language` (string): ISO 639-1 code, or other
- `data[].game_id` (string): ID of the current or last-played game
- `data[].game_name` (string): Name of the current or last-played game
- `data[].is_live` (boolean): Whether the broadcaster is live
- `data[].tags` (string[]): Tags on the channel
- `data[].thumbnail_url` (string): Profile image URL
- `data[].title` (string): Stream title, or empty
- `data[].started_at` (string): Stream start, RFC 3339 UTC; empty if not live
- `pagination.cursor` (string): Cursor for the next page

```bash
curl 'https://api.twitch.tv/helix/search/channels?query=examplestreamer' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
```

Example response (200):

```json
{
  "data": [
    {
      "id": "123456789",
      "broadcaster_login": "examplestreamer",
      "display_name": "ExampleStreamer",
      "broadcaster_language": "en",
      "game_id": "1000",
      "game_name": "Example Game",
      "is_live": false,
      "tags": [
        "English"
      ],
      "thumbnail_url": "https://example.com/thumb.png",
      "title": "Example title",
      "started_at": ""
    }
  ],
  "pagination": {
    "cursor": "YOUR_CURSOR"
  }
}
```

### Find games or categories that match a search string.

`GET /search/categories`

- Footprint: passive (the target is not contacted)

Returns categories with their IDs, usable as game_id in Get Streams.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Client-Id` | header | string | yes | Your application's client ID Example: YOUR_CLIENT_ID |
| `query` | query | string | yes | URI-encoded search string Example: example game |
| `first` | query | integer | no | Results per page, 1 to 100 Example: 20 |
| `after` | query | string | no | Cursor for the next page Example: YOUR_CURSOR |

Response fields:

- `data[].id` (string): Category ID
- `data[].name` (string): Category name
- `data[].box_art_url` (string): Box art image URL
- `pagination.cursor` (string): Cursor for the next page

```bash
curl 'https://api.twitch.tv/helix/search/categories?query=example%20game' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
```

Example response (200):

```json
{
  "data": [
    {
      "id": "1000",
      "name": "Example Game",
      "box_art_url": "https://example.com/box.jpg"
    }
  ],
  "pagination": {
    "cursor": "YOUR_CURSOR"
  }
}
```

## Streams

### Get live streams, filtered by broadcaster, category or language.

`GET /streams`

- Takes: Username
- Footprint: passive (the target is not contacted)

Only live streams are returned. first is ignored when user_id or user_login is set. A page can hold fewer than first items even when more pages exist.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Client-Id` | header | string | yes | Your application's client ID Example: YOUR_CLIENT_ID |
| `user_login` | query | string | no | Broadcaster login name; repeatable, max 100 Example: examplestreamer |
| `user_id` | query | string | no | Broadcaster user ID; repeatable, max 100 Example: 123456789 |
| `game_id` | query | string | no | Category ID; repeatable, max 100 Example: 1000 |
| `type` | query | string | no | Stream type filter One of: all, live |
| `language` | query | string | no | ISO 639-1 code or other; repeatable, max 100 Example: en |
| `first` | query | integer | no | Results per page, 1 to 100 Example: 20 |
| `after` | query | string | no | Cursor for the next page Example: YOUR_CURSOR |
| `before` | query | string | no | Cursor for the previous page Example: YOUR_CURSOR |

Response fields:

- `data[].id` (string): Stream ID
- `data[].user_id` (string): Broadcaster ID
- `data[].user_login` (string): Broadcaster login name
- `data[].user_name` (string): Broadcaster display name
- `data[].game_id` (string): Category ID; empty if none
- `data[].game_name` (string): Category name; empty if none
- `data[].type` (string): Always live
- `data[].title` (string): Stream title
- `data[].tags` (string[]): Tags, or null
- `data[].viewer_count` (integer): Current viewers
- `data[].started_at` (string): Broadcast start, RFC 3339 UTC
- `data[].language` (string): ISO 639-1 code or other
- `data[].thumbnail_url` (string): Frame image URL with {width} and {height} placeholders
- `pagination.cursor` (string): Cursor for the next or previous page; empty when no pages remain

```bash
curl 'https://api.twitch.tv/helix/streams' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
```

Example response (200):

```json
{
  "data": [
    {
      "id": "40000000001",
      "user_id": "123456789",
      "user_login": "examplestreamer",
      "user_name": "ExampleStreamer",
      "game_id": "1000",
      "game_name": "Example Game",
      "type": "live",
      "title": "Example title",
      "tags": [
        "English"
      ],
      "viewer_count": 42,
      "started_at": "2026-11-29T10:00:00Z",
      "language": "en",
      "thumbnail_url": "https://example.com/thumb-{width}x{height}.jpg"
    }
  ],
  "pagination": {}
}
```

## Channels

### Get channel information for one or more broadcaster IDs.

`GET /channels`

- Footprint: passive (the target is not contacted)

Duplicate IDs and IDs that are not found are ignored. Take the ID from Get Users.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Client-Id` | header | string | yes | Your application's client ID Example: YOUR_CLIENT_ID |
| `broadcaster_id` | query | string | yes | Broadcaster ID; repeatable, max 100 Example: 123456789 |

Response fields:

- `data[].broadcaster_id` (string): Broadcaster ID
- `data[].broadcaster_login` (string): Login name
- `data[].broadcaster_name` (string): Display name
- `data[].broadcaster_language` (string): ISO 639-1 code, or other
- `data[].game_id` (string): Current or last-played game ID; empty if none
- `data[].game_name` (string): Current or last-played game name; empty if none
- `data[].title` (string): Current or last stream title
- `data[].delay` (integer): Stream delay in seconds; 0 unless specific conditions are met
- `data[].tags` (string[]): Channel tags
- `data[].content_classification_labels` (string[]): Content classification labels
- `data[].is_branded_content` (boolean): Whether the channel has branded content

```bash
curl 'https://api.twitch.tv/helix/channels?broadcaster_id=123456789' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
```

Example response (200):

```json
{
  "data": [
    {
      "broadcaster_id": "123456789",
      "broadcaster_login": "examplestreamer",
      "broadcaster_name": "ExampleStreamer",
      "broadcaster_language": "en",
      "game_id": "1000",
      "game_name": "Example Game",
      "title": "Example title",
      "delay": 0,
      "tags": [
        "English"
      ],
      "content_classification_labels": [],
      "is_branded_content": false
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
