# Twitch Streams API (twitch.streams)

- Canonical page: [https://everyinfra.com/en/twitch-api/streams](https://everyinfra.com/en/twitch-api/streams?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "twitch", "action": "streams", "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=streams

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| game | not declared | yes | not declared | Exact Twitch category name for streams, such as Just Chatting. Returns channels currently streaming in that category, not historical video archives of the game. |
| 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 |
|---|---|
| stream_id | platform-native meaning |
| username | Username (@handle). |
| display_name | Display name; can differ from username. |
| follower_count | Followers. null means not disclosed, not 0. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| viewer_count | platform-native meaning |
| game | platform-native meaning |
| started_at | platform-native meaning |
| url | Link to the record on the platform. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| 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": "streams",
  "params": {
    "game": "Just Chatting"
  }
}'
```

```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": "streams",
        "params": {
            "game": "Just Chatting",
        },
    },
    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": "streams",
  "results": [
    {
      "stream_id": "•••",
      "username": "•••",
      "display_name": "•••",
      "follower_count": 1694011,
      "title": "話す→えぺ→でっかい歩き",
      "viewer_count": 14479,
      "game": "Just Chatting",
      "started_at": "2026-09-26T09:46:10+00:00",
      "url": "https://www.twitch.tv/fps_shaka",
      "avatar_url": "https://static-cdn.jtvnw.net/•••",
      "platform": "twitch"
    },
    {
      "stream_id": "•••",
      "username": "•••",
      "display_name": "•••",
      "follower_count": 402704,
      "title": "押忍！",
      "viewer_count": 6706,
      "game": "Just Chatting",
      "started_at": "2026-09-26T09:00:37+00:00",
      "url": "https://www.twitch.tv/yuyuta0702",
      "avatar_url": "https://static-cdn.jtvnw.net/•••",
      "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
