# Twitch Search API (twitch.search)

- Canonical page: [https://everyinfra.com/en/twitch-api/search](https://everyinfra.com/en/twitch-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "twitch", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 10, max 30 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=twitch&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Channel keyword for search. The streams endpoint requires an exact game or category name via game, rather than arbitrary stream title keywords. |
| limit | integer (1–30) | no | 10 | The most rows to return in this call, an integer from 1 to 30. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| user_id | User's unique ID on the platform. |
| username | Username (@handle). |
| display_name | Display name; can differ from username. |
| bio | Profile bio written by the account; may contain line breaks and emoji. |
| url | Link to the record on the platform. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| banner_url | platform-native meaning |
| follower_count | Followers. null means not disclosed, not 0. |
| is_partner | platform-native meaning |
| is_affiliate | platform-native meaning |
| is_live | platform-native meaning |
| current_viewers | platform-native meaning |
| stream_title | platform-native meaning |
| current_game | platform-native meaning |
| stream_started_at | platform-native meaning |
| last_broadcast_title | platform-native meaning |
| last_broadcast_game | platform-native meaning |
| last_broadcast_at | platform-native meaning |
| created_at | Creation time, same format as posted_at. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "twitch",
  "action": "search",
  "params": {
    "keyword": "chess"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "twitch",
        "action": "search",
        "params": {
            "keyword": "chess",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "twitch",
  "action": "search",
  "results": [
    {
      "user_id": "•••",
      "username": "•••",
      "display_name": "•••",
      "bio": "Chess.com is the world’s #1 chess community with millions of chess players and fans. Join today!",
      "url": "https://www.twitch.tv/chess",
      "avatar_url": "https://static-cdn.jtvnw.net/•••",
      "follower_count": 1273946,
      "is_partner": true,
      "is_affiliate": false,
      "is_live": false,
      "platform": "twitch"
    },
    {
      "user_id": "•••",
      "username": "•••",
      "display_name": "•••",
      "bio": "Canadian Grandmasters pushing the boundaries of chess entertainment... •••",
      "url": "https://www.twitch.tv/chessbrah",
      "avatar_url": "https://static-cdn.jtvnw.net/•••",
      "follower_count": 338247,
      "is_partner": true,
      "is_affiliate": false,
      "is_live": false,
      "platform": "twitch"
    }
  ],
  "count": 10,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=twitch
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
