# Twitch API on SandBase

> Twitch data API endpoints available through one SandBase API key.

Source: https://www.sandbase.ai/apis/twitch

- Endpoints: 3
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [Twitch Live Streams](https://www.sandbase.ai/apis/twitch/live-streams.md): $0.03 per call
  Get currently live streams, optionally filtered by game/category. Returns streams sorted by relevance or viewer count with broadcaster info, game details, and tags. Supports pagination via cursor.
- [Twitch Search Streamers](https://www.sandbase.ai/apis/twitch/search-streamers.md): $0.03 per call
  Search for Twitch channels/streamers by query. Returns matching channels with live status, follower counts, and current stream info. Searches across channel names, stream titles, and game names.
- [Twitch Streamer Profile](https://www.sandbase.ai/apis/twitch/streamer-profile.md): $0.03 per call
  Get detailed profile information for a Twitch streamer including followers, description, partner status, social links, and current live stream details if streaming. Returns null for stream when offlin...

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
