# Twitch Search

Search Twitch channels, games, live channels and VODs in one request. Each bucket carries its match total and its own next cursor; channels, live channels and games also carry a relevance score, which Twitch does not expose for VODs (their score is null).

- **Documentation:** [https://scrappa.co/docs/twitch-api/twitch_search](https://scrappa.co/docs/twitch-api/twitch_search)
- **API group:** Twitch API
- **Endpoint:** `GET https://scrappa.co/api/twitch/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search query. |
| `first` | integer | No | Results per target (max 50). |
| `after` | string | No | Channels cursor from a previous response (data.channels.cursor). |
| `live_channels_after` | string | No | Live-channels cursor (data.live_channels.cursor). |
| `games_after` | string | No | Games cursor (data.games.cursor). |
| `videos_after` | string | No | VODs cursor (data.videos.cursor). |

## Example response

```json
{
    "data": {
        "channels": {
            "items": [],
            "total_matches": 0
        }
    },
    "success": true
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
