# Twitch Clips API (twitch.clips)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | Twitch channel login short name for profile or clips, optionally prefixed with @, without parsing full twitch.tv URLs. |
| period | not declared | no | not declared | Time window for clips: LAST_DAY for the past day, LAST_WEEK for the past week (default), LAST_MONTH for the past month, or ALL_TIME for unrestricted. Values are case-insensitive, and invalid values fall back to LAST_WEEK. |
| 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 |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| url | Link to the record on the platform. |
| view_count | Views or plays. null means not disclosed, not 0. |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| duration_sec | platform-native meaning |
| game | platform-native meaning |
| channel_username | platform-native meaning |
| channel_name | platform-native meaning |
| curator_username | platform-native meaning |
| curator_name | platform-native meaning |
| thumbnail_url | Thumbnail link, lower resolution than image_url. |
| 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": "clips",
  "params": {
    "username": "shroud"
  }
}'
```

```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": "clips",
        "params": {
            "username": "shroud",
        },
    },
    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": "clips",
  "results": [
    {
      "id": "•••",
      "title": "wtf !!",
      "url": "https://www.twitch.tv/shroud/clip/SeductiveFurryPotCmonBruh--v2IUlxXQxpw8YUZ",
      "view_count": 2230,
      "duration_seconds": 39,
      "game": "Active Matter",
      "channel_username": "shroud",
      "channel_name": "shroud",
      "curator_username": "•••",
      "curator_name": "Taisseeer",
      "thumbnail_url": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/f4e752a4-c4c1-42b9-a4a1-a7a28106a717/landscape/thumb/thumb-0000000000-1920x1080.jpg",
      "created_at": "2026-09-19T22:08:27+00:00",
      "platform": "twitch"
    },
    {
      "id": "•••",
      "title": "Pilot Kill",
      "url": "https://www.twitch.tv/shroud/clip/BreakableAssiduousBulgogiUnSane-oAR-wxU-JuRMLxdl",
      "view_count": 1042,
      "duration_seconds": 21,
      "game": "WARDOGS",
      "channel_username": "shroud",
      "channel_name": "shroud",
      "curator_username": "•••",
      "curator_name": "primo11119",
      "thumbnail_url": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/f45445b1-9e8c-4cfd-88b0-d6cbe5d00b61/landscape/thumb/thumb-0000000000-1920x1080.jpg",
      "created_at": "2026-09-21T18:00:52+00:00",
      "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
