APIs / Social media / Twitch

1 credit per call18 endpointsChecked working 6 Dec 2026

Twitch API

Twitch API for channels, live streams, clips, videos, games, schedules and search as JSON. 18 endpoints, 1 credit per successful call.

Twitch
GET/v1/twitch/channels?logins[]=nasa&logins[]=riotgames
curl "https://api.perceptlayer.com/v1/twitch/channels?logins[]=nasa&logins[]=riotgames" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call below or from your dashboard to see a live response.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/twitch/channels?logins[]=nasa&logins[]=riotgames" \
  -H "X-API-Key: $API_KEY"

Twitch · 18 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

Note
Endpoints marked “Needs terms” return personal or social data. They work once you accept the restricted-endpoint terms in your dashboard.
EndpointRequired parametersReturnsCost
GET/v1/twitch/channel
loginNeeds terms
JSON1 credit
GET/v1/twitch/channels
none+1 optionalNeeds terms
channelsrequestedfound
1 credit
GET/v1/twitch/clip
slugNeeds terms
JSON1 credit
GET/v1/twitch/clips
login+4 optionalNeeds terms
JSON1 credit
GET/v1/twitch/game
id+1 optionalNeeds terms
JSON1 credit
GET/v1/twitch/game-clips
id+2 optionalNeeds terms
JSON1 credit
GET/v1/twitch/games
none+2 optionalNeeds terms
idnamedisplayNameviewersCountbroadcastersCountboxArtURL
1 credit
GET/v1/twitch/schedule
channel+2 optionalNeeds terms
JSON1 credit
GET/v1/twitch/search
query+5 optionalNeeds terms
JSON1 credit
GET/v1/twitch/search-games
query+2 optionalNeeds terms
JSON1 credit
GET/v1/twitch/search-streams
query+2 optionalNeeds terms
JSON1 credit
GET/v1/twitch/search-users
query+2 optionalNeeds terms
JSON1 credit
GET/v1/twitch/streams
none+3 optionalNeeds terms
idtitleviewersCountstartedAtlanguagetype+2 more
1 credit
GET/v1/twitch/suggestions
query+1 optionalNeeds terms
JSON1 credit
GET/v1/twitch/tags
query+1 optionalNeeds terms
JSON1 credit
GET/v1/twitch/team
nameNeeds terms
JSON1 credit
GET/v1/twitch/video
idNeeds terms
JSON1 credit
GET/v1/twitch/videos
login+2 optionalNeeds terms
JSON1 credit

Overview

About the Twitch API

What you can get

The Twitch API returns public Twitch data as JSON through 18 endpoints. These are restricted endpoints: the restricted-endpoint terms apply, and they don't permit collecting personal data without a lawful basis or using it to contact people.

  • Channels: channel by login, channels for several logins[], schedule by channel with first and week_of, and team by name.
  • Streams and video: streams with first, after and sort (VIEWER_COUNT or RECENT); videos by login with first and page; video by id.
  • Clips: clips by login, with sort (VIEWS_DESC or TRENDING) and period (LAST_DAY, LAST_WEEK, LAST_MONTH or ALL_TIME); clip by slug; game-clips by game id.
  • Games: games with first and after, and game by id.
  • Search: search, search-streams, search-users and search-games take a query; suggestions takes a query and include_offline; tags takes a query and limit.

How a call works

Start from a channel's login name: GET /v1/twitch/channel?login=... with your key in the X-API-Key header. List endpoints take first, and most page with after. Every successful call costs 1 credit; failed calls cost nothing.

Social mediaJSONRESTMCPSome endpoints need terms

More social media APIs

Use cases

Track which channels are live in a category

Use the Twitch API to track which channels are live in a category

Collect the top clips for a channel or a game

Use the Twitch API to collect the top clips for a channel or a game

Follow the stream schedules of creators you work with

Use the Twitch API to follow the stream schedules of creators you work with

Find channels and games by keyword

Use the Twitch API to find channels and games by keyword

FAQ

Questions

Do I need a Twitch developer app?

No. You call this Twitch API with your Perceptlayer key in the `X-API-Key` header, so there's no Twitch client ID to register. You do need to accept the restricted-endpoint terms first.

How much does the Twitch API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Twitch API?

No. Perceptlayer is an independent service and is not affiliated with Twitch. It returns Twitch data as JSON with a Perceptlayer key, so there is no Twitch developer account, app review or partner approval to get first. It only reads data: if Twitch has an official API and you need to act on your own Twitch account, such as posting, managing orders or reading private data, use that one.

Should I build a Twitch scraper instead?

You can, but a Twitch scraper is code you maintain: page changes break it, requests get blocked, and Twitch's terms govern how you collect data. The Twitch API gives you 18 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.

Try the Twitch API with 100 free credits

No credit card. Failed calls are never billed.