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.
curl "https://api.perceptlayer.com/v1/twitch/channels?logins[]=nasa&logins[]=riotgames" \
-H "X-API-Key: $API_KEY"Playground
Run this API
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.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/twitch/channel | loginNeeds terms | JSON | 1 credit |
GET/v1/twitch/channels | none+1 optionalNeeds terms | channelsrequestedfound | 1 credit |
GET/v1/twitch/clip | slugNeeds terms | JSON | 1 credit |
GET/v1/twitch/clips | login+4 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/game | id+1 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/game-clips | id+2 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/games | none+2 optionalNeeds terms | idnamedisplayNameviewersCountbroadcastersCountboxArtURL | 1 credit |
GET/v1/twitch/schedule | channel+2 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/search | query+5 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/search-games | query+2 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/search-streams | query+2 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/search-users | query+2 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/streams | none+3 optionalNeeds terms | idtitleviewersCountstartedAtlanguagetype+2 more | 1 credit |
GET/v1/twitch/suggestions | query+1 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/tags | query+1 optionalNeeds terms | JSON | 1 credit |
GET/v1/twitch/team | nameNeeds terms | JSON | 1 credit |
GET/v1/twitch/video | idNeeds terms | JSON | 1 credit |
GET/v1/twitch/videos | login+2 optionalNeeds terms | JSON | 1 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:
channelbylogin,channelsfor severallogins[],schedulebychannelwithfirstandweek_of, andteambyname. - Streams and video:
streamswithfirst,afterandsort(VIEWER_COUNT or RECENT);videosbyloginwithfirstandpage;videobyid. - Clips:
clipsbylogin, withsort(VIEWS_DESC or TRENDING) andperiod(LAST_DAY, LAST_WEEK, LAST_MONTH or ALL_TIME);clipbyslug;game-clipsby gameid. - Games:
gameswithfirstandafter, andgamebyid. - Search:
search,search-streams,search-usersandsearch-gamestake aquery;suggestionstakes aqueryandinclude_offline;tagstakes aqueryandlimit.
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.
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 categoryCollect the top clips for a channel or a game
Use the Twitch API to collect the top clips for a channel or a gameFollow the stream schedules of creators you work with
Use the Twitch API to follow the stream schedules of creators you work withFind channels and games by keyword
Use the Twitch API to find channels and games by keywordFAQ
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.