Twitch API endpoint
Returns a Twitch channel's past-broadcast videos (VODs), ranked by view count: title, view count, length, publish date, and the game it was recorded under.
/twitch/videosQuery parameters:
login (required) — a Twitch channel login (the lowercase URL slug,
e.g. lck for twitch.tv/lck), not the display name.limit (optional) — number of videos to return. Defaults to 20,
clamped to a maximum of 100.Notable response behavior:
videos is ordered by view count descending — Twitch's own "Popular"
sort for the videos tab, scoped to ARCHIVE-type broadcasts (past
livestreams), not highlights or uploads.404. A missing login returns 400 before
any upstream request is made.| Field | Filled in, of 20 checked | Values in the sample |
|---|---|---|
| id | 20 | |
| title | 20 | |
| view_count | 20 | 1,105,395 to 2,800,828, median 1,342,526 |
| length_seconds | 20 | 17,804 to 30,149, median 22,583 |
| published_at | 20 | 2020-08-30 to 2023-02-05 |
| thumbnail_url | 20 | static-cdn.jtvnw.net |
| game | 20 | |
| owner | 20 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| login | string | Yes | Twitch channel login (the lowercase URL slug, e.g. lck for twitch.tv/lck) | lck | |
| limit | integer | No | Number of videos to return (default 20, max 100) | 20 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/twitch/videos?login=lck&limit=10" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"login": "lck",
"count": 20,
"videos": [
{
"id": "1443936760",
"title": "T1 vs GEN | 2022 LCK Spring FINALS",
"view_count": 2800795,
"length_seconds": 20818,
"published_at": "2022-04-02T07:10:16Z",
"thumbnail_url": "https://static-cdn.jtvnw.net/cf_vods/.../thumb0-320x180.jpg",
"game": {
"id": "21779",
"slug": "league-of-legends",
"name": "League of Legends"
},
"owner": {
"id": "124425501",
"login": "lck",
"display_name": "LCK",
"is_partner": true
}
}
]
}
}Request schema
No body schema
Response schema
#/definitions/twitch.videosResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | twitch.VideosResponse | No | ||||
| data.count | integer | No | 20 | |||
| data.login | string | No | ||||
| data.videos | array | No | ||||
| data.videos[].game | twitch.ClipGame | No | ||||
| data.videos[].game.id | string | No | ||||
| data.videos[].game.name | string | No | League of Legends | |||
| data.videos[].game.slug | string | No | league-of-legends | |||
| data.videos[].id | string | No | ||||
| data.videos[].length_seconds | integer | No | 20818 | |||
| data.videos[].owner | twitch.VideoOwner | No | ||||
| data.videos[].owner.display_name | string | No | ||||
| data.videos[].owner.id | string | No | ||||
| data.videos[].owner.is_partner | boolean | No | true | |||
| data.videos[].owner.login | string | No | ||||
| data.videos[].published_at | string | No | 2022-04-02T07:10:16Z | |||
| data.videos[].thumbnail_url | string | No | ||||
| data.videos[].title | string | No | ||||
| data.videos[].view_count | integer | No | 2800795 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/twitch/videos?login=lck&limit=10" \
-H "x-api-key: $CRAWLORA_API_KEY"