API · Twitch
GET /twitch/users/{handle}/videos
A Twitch channel’s videos (past broadcasts, highlights, uploads), up to 100, by date or views.
| |
|---|
| Request | GET /v1/twitch/users/{handle}/videos |
| Operation id | twitch.user.videos |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Twitch channel’s videos (past broadcasts, highlights, uploads), up to 100, by date or views.
| Name | Type | Required | Description |
|---|
handle | string | yes | Twitch login (username) or channel URL. Example: ninja. |
| Name | Type | Required | Description |
|---|
filter_by | "ARCHIVE" | "HIGHLIGHT" | "UPLOAD" | no | ARCHIVE, HIGHLIGHT or UPLOAD. One of ARCHIVE, HIGHLIGHT, UPLOAD. |
sort_by | "TIME" | "VIEWS" | no | TIME (default) or VIEWS. One of TIME, VIEWS. |
since | string | no | Only videos created on or after this date. |
until | string | no | Only videos created on or before this date. |
| Status | Meaning | Schema |
|---|
200 | The videos. | TwitchVideosResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No Twitch channel or clip by that name. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Twitch is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
data | TwitchVideo[] | |
total | integer | All videos of this type on the channel. |
pagination | object | Up to 100 videos come in one call; has_more says there are older ones. |
Errors use one shape everywhere; see Errors for every code and what to do.