YouTube Video transcript
Retrieve the video transcript with timestamps and language
POST /v1/extractProviders
Every provider below returns the same normalized output. Pass a slug to pick one explicitly, or let SocialRouter route for you.
- Apify
apify/youtube/video.transcriptUp to 100 URLs per request
$0.0055per record
Input
The public URL of the video whose transcript you want to fetch.
https://youtube.com/watch?v=abc123Output
Each record has the fields below, whichever provider serves the request. Providers may include additional platform-specific fields on top.
titlestringVideo title
video_idstringPlatform video ID
channel_namestringName of the channel / creator
channel_urlurlCanonical channel URL
durationstringDuration (e.g. "00:03:17")
posted_atiso8601When the video was published
transcriptstringFull transcript text (SRT with timestamps)
transcript_languagestringISO language code of the primary transcript
transcript_typestring"auto_generated" or "manual"
subtitlesobject[]All available transcript tracks (language, type, srt, srt_url)
sourcestringPlatform the record was extracted from (e.g. "linkedin")
extracted_atiso8601UTC timestamp when the record was produced
How to call it
Pass a provider slug from the table above as the provider field on the POST /v1/extract endpoint.
Frequently asked questions
How much does YouTube video transcript cost?
Prices start at $0.0055 per record, depending on the provider you route to. You are only charged for records actually returned.
Which providers offer YouTube video transcript?
Apify — 1 provider is available through SocialRouter's unified API. Pick one explicitly with its slug, or let the router choose.
What input does it need?
The public URL of the video whose transcript you want to fetch. For example: https://youtube.com/watch?v=abc123
Is the output format the same for every provider?
Yes. Every provider returns the normalized record schema documented on this page; some providers add extra platform-specific fields on top, but the documented fields are always present.
How many URLs can I send per request?
Up to 100 URLs in a single request, depending on the provider.
What happens if a provider fails?
SocialRouter automatically fails over to another provider offering the same service, so a single provider outage doesn't break your integration.