Fetch live streams filtered by game using Twitch Helix API

domain: dev.twitch.tv · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain an app access token using the client credentials flow by POSTing to the Twitch token endpoint with client_id, client_secret, and grant_type=client_credentials.
  2. Look up the game's ID by calling the Get Games endpoint with the game name as a query parameter, or use a known game_id directly.
  3. Call the Get Streams endpoint (/helix/streams) with game_id as a query parameter, along with your desired first (page size, up to 100) value.
  4. Include the app access token in the Authorization header (Bearer YOUR_TOKEN) and your client_id in the Client-Id header.
  5. Parse the data array for stream objects (user_name, viewer_count, title, etc.) and use the pagination.cursor value in an after parameter for subsequent pages.

Known gotchas

Related routes

Retrieve current Hype Train status for a channel using the Twitch Helix API
gaming · 5 steps · unrated
Query game metadata from the IGDB API using Twitch OAuth authentication
api-docs.igdb.com · 6 steps · unrated
Create and resolve a channel Predictions event using the Twitch Helix API
gaming · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans