Twitch Channel Clips
twitch.channel.clips
Clips cut from a channel's streams in a chosen period, with views, duration, category and broadcaster. One page of up to 100.
At a glance
- Endpoint ID
twitch.channel.clips- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "twitch.channel.clips", "input": { "channel": "xqc", "limit": 100, "period": "LAST_WEEK" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "twitch.channel.clips", "input": { "channel": "xqc", "limit": 100, "period": "LAST_WEEK" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "twitch.channel.clips", "input": { "channel": "xqc", "limit": 100, "period": "LAST_WEEK" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
channel |
string | yes | xqc | |
limit |
integer | no | Number of clips to return, up to 100. From 1 to 100. | 100 |
period |
string | no | Window of clips to return. Twitch offers these three only. Allowed values: LAST_DAY, LAST_WEEK, LAST_MONTH. |
LAST_WEEK |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "has_more": false, "items": [ { "title": "xQc helicopter confidence ends in a mission fail", "view_count": 27, "created_at": "2026-11-30T01:26:30Z", "duration_seconds": 60, "id": "3938017058", "slug": "HungryPricklyClamOMGScoots-NLzvkIIqImWRyZGc", "thumbnail_url": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/847da1d8-3215-419f-88d6-b793d9eba70d/landscape/thum…", "url": "https://www.twitch.tv/xqc/clip/HungryPricklyClamOMGScoots-NLzvkIIqImWRyZGc", "broadcaster": { "display_name": "xQc", "id": "71092938", "login": "xqc", "url": "https://www.twitch.tv/xqc" }, "game": { "name": "Grand Theft Auto VI", "id": "1867279146", "slug": "grand-theft-auto-vi" } }, { "title": "eww", "view_count": 18, "created_at": "2026-11-29T19:48:32Z", "duration_seconds": 12, "id": "375690038", "thumbnail_url": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/a11299aa-6680-43a6-8a37-e130e835ee71/landscape/thum…", "broadcaster": { "display_name": "xQc", "id": "71092938", "login": "xqc", "url": "https://www.twitch.tv/xqc" }, "game": { "name": "ROB RUN", "id": "1753787976", "slug": "rob-run" } } ]}
Fields
| Field | Type | Example |
|---|---|---|
items[].game.name |
string | Grand Theft Auto VI |
items[].title |
string | xQc helicopter confidence ends in a mission fail |
items[].broadcaster.display_name |
string | xQc |
items[].view_count |
integer | 27 |
items[].created_at |
string | 2026-11-30T01:26:30Z |
items[].broadcaster |
object | 4 fields |
items[].broadcaster.id |
string | 71092938 |
items[].broadcaster.login |
string | xqc |
items[].broadcaster.url |
string | https://www.twitch.tv/xqc |
items[].duration_seconds |
integer | 60 |
items[].game |
object | 3 fields |
items[].game.id |
string | 1867279146 |
items[].game.slug |
string | grand-theft-auto-vi |
items[].id |
string | 3938017058 |
items[].slug |
string | HungryPricklyClamOMGScoots-NLzvkIIqImWRyZGc |
items[].thumbnail_url |
string | https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-vid… |
items[].url |
string | https://www.twitch.tv/xqc/clip/HungryPricklyClamOMGScoots-NLzvk… |
has_more |
boolean | false |
items |
array | 3 records |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Twitch endpoints
Something missing or unclear? Ask the team that builds the Twitch endpoints.