Skip to content
OSINTtools.io

Twitch API API

Twitch's Helix API: look up users, live streams, videos and clips by login name or ID, and search channels by name.

Base URL
https://api.twitch.tv/helix
Sign-in
Bearer token
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from dev.twitch.tv · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with Twitch API and copy your bearer token. Where to get it

  2. Make your first request

    Get information about one or more users by login name or ID.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.twitch.tv/helix/users' \
      -H 'Authorization: Bearer YOUR_API_KEY' \
      -H 'Client-Id: YOUR_CLIENT_ID'
  3. Read the response

    A 200 response looks like this.

    {
      "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"
        }
      ]
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Also send your app's Client-Id header with every request.

Get a key from Twitch API

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

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

Errors

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

Users

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.

Query parameters

loginstringtakes your username

Login name to look up; repeatable, max 100

Example: examplestreamer
idstring

User ID to look up; repeatable, max 100

Example: 123456789

Headers

Client-Idstringrequired

Your application's client ID

Example: YOUR_CLIENT_ID
Response fields · 10Show

idstring

User ID

loginstring

Login name

display_namestring

Display name

typestring

admin, global_mod or staff; empty string for a normal user

broadcaster_typestring

affiliate or partner; empty string for a normal broadcaster

descriptionstring

Channel description

profile_image_urlstring

Profile image URL

offline_image_urlstring

Offline image URL

emailstring

Only for the token's own user with the user:read:email scope

created_atstring

Account creation time, RFC 3339 UTC

curl 'https://api.twitch.tv/helix/users' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
Replace YOUR_API_KEY with your key
Response
{
  "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"
    }
  ]
}

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

Query parameters

querystringrequiredtakes your username

URI-encoded search string

Example: examplestreamer
live_onlyboolean

Return only live channels

Default: false
firstinteger

Results per page, 1 to 100

Example: 20Default: 20
afterstring

Cursor for the next page

Example: YOUR_CURSOR

Headers

Client-Idstringrequired

Your application's client ID

Example: YOUR_CLIENT_ID
Response fields · 12Show

idstring

Broadcaster's channel ID

broadcaster_loginstring

Login name

display_namestring

Display name

broadcaster_languagestring

ISO 639-1 code, or other

game_idstring

ID of the current or last-played game

game_namestring

Name of the current or last-played game

is_liveboolean

Whether the broadcaster is live

tagsstring[]

Tags on the channel

thumbnail_urlstring

Profile image URL

titlestring

Stream title, or empty

started_atstring

Stream start, RFC 3339 UTC; empty if not live

cursorstring

Cursor for the next page

curl 'https://api.twitch.tv/helix/search/channels?query=examplestreamer' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
Replace YOUR_API_KEY with your key
Response
{
  "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"
  }
}
  • Passive: the target is not contacted

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

Query parameters

querystringrequired

URI-encoded search string

Example: example game
firstinteger

Results per page, 1 to 100

Example: 20Default: 20
afterstring

Cursor for the next page

Example: YOUR_CURSOR

Headers

Client-Idstringrequired

Your application's client ID

Example: YOUR_CLIENT_ID
Response fields · 4Show

idstring

Category ID

namestring

Category name

box_art_urlstring

Box art image URL

cursorstring

Cursor for the next page

curl 'https://api.twitch.tv/helix/search/categories?query=example%20game' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
Replace YOUR_API_KEY with your key
Response
{
  "data": [
    {
      "id": "1000",
      "name": "Example Game",
      "box_art_url": "https://example.com/box.jpg"
    }
  ],
  "pagination": {
    "cursor": "YOUR_CURSOR"
  }
}

Streams

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.

Query parameters

user_loginstringtakes your username

Broadcaster login name; repeatable, max 100

Example: examplestreamer
user_idstring

Broadcaster user ID; repeatable, max 100

Example: 123456789
game_idstring

Category ID; repeatable, max 100

Example: 1000
typestring

Stream type filter

Default: allOne of: all, live
languagestring

ISO 639-1 code or other; repeatable, max 100

Example: en
firstinteger

Results per page, 1 to 100

Example: 20Default: 20
afterstring

Cursor for the next page

Example: YOUR_CURSOR
beforestring

Cursor for the previous page

Example: YOUR_CURSOR

Headers

Client-Idstringrequired

Your application's client ID

Example: YOUR_CLIENT_ID
Response fields · 14Show

idstring

Stream ID

user_idstring

Broadcaster ID

user_loginstring

Broadcaster login name

user_namestring

Broadcaster display name

game_idstring

Category ID; empty if none

game_namestring

Category name; empty if none

typestring

Always live

titlestring

Stream title

tagsstring[]

Tags, or null

viewer_countinteger

Current viewers

started_atstring

Broadcast start, RFC 3339 UTC

languagestring

ISO 639-1 code or other

thumbnail_urlstring

Frame image URL with {width} and {height} placeholders

cursorstring

Cursor for the next or previous page; empty when no pages remain

curl 'https://api.twitch.tv/helix/streams' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
Replace YOUR_API_KEY with your key
Response
{
  "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

  • Passive: the target is not contacted

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

Query parameters

broadcaster_idstringrequired

Broadcaster ID; repeatable, max 100

Example: 123456789

Headers

Client-Idstringrequired

Your application's client ID

Example: YOUR_CLIENT_ID
Response fields · 11Show

broadcaster_idstring

Broadcaster ID

broadcaster_loginstring

Login name

broadcaster_namestring

Display name

broadcaster_languagestring

ISO 639-1 code, or other

game_idstring

Current or last-played game ID; empty if none

game_namestring

Current or last-played game name; empty if none

titlestring

Current or last stream title

delayinteger

Stream delay in seconds; 0 unless specific conditions are met

tagsstring[]

Channel tags

content_classification_labelsstring[]

Content classification labels

is_branded_contentboolean

Whether the channel has branded content

curl 'https://api.twitch.tv/helix/channels?broadcaster_id=123456789' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Client-Id: YOUR_CLIENT_ID'
Replace YOUR_API_KEY with your key
Response
{
  "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
    }
  ]
}