Clip Transcript
GET/v1/twitch/clip/transcript1 credit
Returns a transcript of a clip's speech. Twitch clips have no captions, so the text comes from AI speech-to-text when you opt in with `use_ai_as_fallback=true`.
01Query parameters
| Name | Type | Description |
|---|---|---|
| urlrequired | string | The clip URL, `https://www.twitch.tv/<channel>/clip/<slug>` or `https://clips.twitch.tv/<slug>`. |
| use_ai_as_fallbackoptional | boolean | Set to `true` to transcribe the clip's audio with AI. Without it the answer has `transcript: null` and costs nothing.Default: false |
| allow_long_transcriptionoptional | boolean | Set to `true` to allow AI transcription of clips longer than 120 seconds, at 10 credits per started minute.Default: false |
02Pricing
Without `use_ai_as_fallback=true`: 0 credits (no transcript). With it: 1 credit for a clip up to 120 seconds; with `allow_long_transcription=true`, longer clips cost 10 credits per started minute. A clip with no speech costs 0 credits.
03Request
curl "https://api.scrapesocial.ai/v1/twitch/clip/transcript?url=https%3A%2F%2Fclips.twitch.tv%2FUgliestCreativeWolfChefFrank-PJRt7Wmz_gVzJhk6&use_ai_as_fallback=true" \ -H "x-api-key: $SCRAPESOCIAL_KEY"
04Responses
Real answers from the API. Lists are shortened to 2 items.
GET /v1/twitch/clip/transcript?url=https%3A%2F%2Fclips.twitch.tv%2FUgliestCreativeWolfChefFrank-PJRt7Wmz_gVzJhk6&use_ai_as_fallback=true
{
"success": true,
"credits_remaining": 4980,
"credits_charged": 1,
"id": "300458633",
"url": "https://www.twitch.tv/shroud/clip/UgliestCreativeWolfChefFrank-PJRt7Wmz_gVzJhk6",
"transcript": "Come, come, come, come, come, come. Follow my voice, come. Guys? This way. Guys! Guys! Guys! Oh, no.",
"transcript_source": "ai",
"duration_seconds": 41.28,
"duration_minutes": 0.69
}Common to every endpoint
Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.
GET /v1/cosmos/profile?handle=design
{
"success": false,
"message": "Invalid API key"
}05Notes
The answer has `id`, `url`, `transcript` and `transcript_source` (`ai`, or null when there is no transcript); an AI transcript also carries `duration_seconds` and `duration_minutes`. A clip longer than 120 seconds without `allow_long_transcription=true` is a free 400. An unknown clip is a free 404.
06Errors & credits
Every error has success: false, a real HTTP status and costs no credits.
400missing_parameter
A required parameter is missing or invalid.
403private_account
The account is private or age-restricted.
404not_found
No such account.
503upstream_error
The platform did not answer; retry shortly.