Request by video ID
curl "https://api.scority.ai/v1/youtube/transcript?video_id=dQw4w9WgXcQ" \
-H "x-api-key: YOUR_API_KEY"Learn how to fetch YouTube transcripts with an API, when the official YouTube Data API is not enough, and how Scority returns text and segments.
Use a transcript-specific endpoint that accepts a YouTube video ID or URL and returns transcript text plus timestamped segments. In Scority, the current endpoint is GET /v1/youtube/transcript on https://api.scority.ai.
People use the phrase YouTube API transcript for several different jobs: the official YouTube Data API, caption track management, browser scraping, open-source transcript libraries, and hosted transcript APIs. Those are not the same thing.
The official YouTube Data API is the right tool for many YouTube platform tasks, but transcript extraction has different requirements. A transcript workflow needs readable text, segment timing and clear errors when captions are missing or upstream access fails.
Scority validates the video input, checks authentication and quota, selects an accessible caption path, then returns a normalized JSON response when a transcript is available.
curl "https://api.scority.ai/v1/youtube/transcript?video_id=dQw4w9WgXcQ" \
-H "x-api-key: YOUR_API_KEY"curl "https://api.scority.ai/v1/youtube/transcript?video_url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \
-H "x-api-key: YOUR_API_KEY"A successful response includes the selected caption language, transcript source, full text and timestamped segments.
Build error handling around stable error codes instead of scraping messages. Scority returns normalized JSON errors under error.code.
Transcript APIs depend on upstream access and usable source material. Scority uses caption-first extraction and can support fallback processing for harder videos, but some videos still cannot return transcript text safely.
See query parameters, response fields, errors and rate-limit headers.
Open →Use x-api-key safely from server-side code.
Open →Map each error code to a retry, input or support action.
Open →Read the broader YouTube Transcript API guide.
Open →