YouTube Transcript
GET/youtube/transcript1 credit

YouTube Transcript

Raw transcript and metadata for a YouTube video. Cache-first (instant on repeat). No LLM step, so it is metered as a read-class credit. Supports Bearer API key or x402 pay-per-call.

GEThttps://www.startuphub.ai/api/v1/youtube/transcript

Request

curl "https://www.startuphub.ai/api/v1/youtube/transcript?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ" \
  -H "Authorization: Bearer sk_live_..."

Parameters

urlstringrequired

Any youtube.com / youtu.be / shorts URL, or a raw video id (query param or JSON body on POST).

Response

json
{
  "success": true,
  "video_id": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Example video",
  "channel": "Example Channel",
  "duration_seconds": 212,
  "source": "caption_track",
  "transcript": "...",
  "char_count": 4200
}

Errors

400Missing url parameter
401Invalid or missing API key (or x402 payment)
422No transcript available for this video
429Daily credit limit reached