Twitch clip
Beta GET /v1/twitch/clip
GET /v1/twitch/clip
Twitch clip.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | yes | Clip URL (clips.twitch.tv/... or twitch.tv/<user>/clip/...). Accepted hosts: twitch.tv. |
Every request also accepts:
trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl
curl -G "https://api.socialscrape.io/v1/twitch/clip" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "url=https://www.twitch.tv/mish/clip/WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA"Python
import os
import requests
params = {
"url": "https://www.twitch.tv/mish/clip/WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA",
}
res = requests.get(
"https://api.socialscrape.io/v1/twitch/clip",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])TypeScript
const url = new URL("https://api.socialscrape.io/v1/twitch/clip");
url.search = new URLSearchParams({
"url": "https://www.twitch.tv/mish/clip/WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA"
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}n8n
{
"nodes": [
{
"name": "SocialScrape Twitch clip",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/twitch/clip",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.twitch.tv/mish/clip/WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_ad60996c3ead158afb03be8b",
"data": {
"object": "post",
"platform": "twitch",
"id": "161412440",
"url": "https://www.twitch.tv/mish/clip/WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA",
"type": "clip",
"author": {
"id": "144313101",
"handle": "mish",
"name": "Mish",
"url": "https://www.twitch.tv/mish",
"avatar_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/ab470b3c-c423-41e0-913e-69311d9b146b-profile_image-300x300.png",
"verified": null
},
"title": "I blame you",
"text": null,
"published_at": "2026-09-17T20:46:41Z",
"duration_seconds": 15.0,
"language": "en",
"hashtags": null,
"mentions": null,
"stats": {
"views": 29,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/4d311f4f-f31e-4e2e-94e4-6cf72a0952ea/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"video_url": "https://d1ndex63qxojbr.cloudfront.net/nauth/4d311f4f-f31e-4e2e-94e4-6cf72a0952ea/landscape/h264/1080/index.mp4?sig=11106fd9e3e950249533f1425a1b1c48a5b3801c&token=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D...",
"audio_url": null,
"image_urls": null,
"width": null,
"height": null
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"broadcaster_followers": 156702,
"curator": {
"id": "144313101",
"login": "mish",
"name": "Mish"
},
"embed_url": "https://clips.twitch.tv/embed?clip=WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA",
"game": "Dead by Daylight",
"game_id": "491487",
"is_featured": false,
"media_expires_at": "2026-10-30T20:48:59Z",
"qualities": [
{
"frame_rate": 60,
"quality": "1080",
"url": "https://d1ndex63qxojbr.cloudfront.net/nauth/4d311f4f-f31e-4e2e-94e4-6cf72a0952ea/landscape/h264/1080/index.mp4?sig=11106fd9e3e950249533f1425a1b1c48a5b3801c&token=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D..."
},
{
"frame_rate": 60.06336212158203,
"quality": "720",
"url": "https://d1ndex63qxojbr.cloudfront.net/nauth/4d311f4f-f31e-4e2e-94e4-6cf72a0952ea/landscape/h264/720/index.mp4?sig=11106fd9e3e950249533f1425a1b1c48a5b3801c&token=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%..."
},
{
"frame_rate": 30.064006805419922,
"quality": "480",
"url": "https://d1ndex63qxojbr.cloudfront.net/nauth/4d311f4f-f31e-4e2e-94e4-6cf72a0952ea/landscape/h264/480/index.mp4?sig=11106fd9e3e950249533f1425a1b1c48a5b3801c&token=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%..."
}
],
"slug": "WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA",
"video_id": "2876607229",
"video_offset_seconds": 14472
}
},
"cursor": null,
"has_more": null
}Response#
A Post object in data.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Example error:
{
"ok": false,
"error": {
"code": "not_found",
"message": "The platform says this profile, post or item does not exist.",
"retryable": false
},
"credits_charged": 0,
"request_id": "req_681da6abde6ff928abc27dec"
}Related endpoints#
- Twitch channel (
GET /v1/twitch/profile) - Twitch user videos (
GET /v1/twitch/user/videos) - Twitch stream schedule (
GET /v1/twitch/user/schedule) - Twitch clip transcript (
GET /v1/twitch/clip/transcript)