Public video transcript retrieval
Video Transcript API for YouTube Videos
Social Media Scraper provides a video transcript API that fetches available transcript text from public video links into structured JSON for search indexing, RAG pipelines, or research notes. Run a quick browser check or connect your API key to integrate direct REST requests into your workflow.

What Does the YouTube Transcript API Return?
As a video transcript extractor API for public YouTube links, youtube.transcript returns available transcript text when present. Responses include text along with optional language and source_url fields, rather than transcribing uploaded audio or video files.
Transcript text and metadata
Get transcript text as a string plus optional language and source_url values when the source provides them.
Public URL lookup
Pass a public YouTube link to check and read available transcript text without uploading media files.
Transcript text API output
Get plain transcript text ready for scripts, local files, or downstream search and indexing steps.
{
"text": "string",
"language": "string | null",
"source_url": "string | null"
}What Platforms Does Our Video Transcript API Support?
Social Media Scraper offers dedicated transcript endpoints across five networks, accepting endpoint-specific parameters and returning available transcript data in JSON.
| Platform | Request input | Available data | API docs |
|---|---|---|---|
| YouTube | Video url with optional language, original_audio, and cache_max_age | Available caption text with optional language and source fields | YouTube transcript API docsyoutube.transcript |
| TikTok | Video url with optional language, allow_long_transcription, and use_ai_as_fallback | Available transcript text and optional metadata in JSON | TikTok transcript API docstiktok.transcript |
| Post or Reel url with optional allow_long_transcription and cache_max_age | Available transcript text and optional source metadata in JSON | Instagram transcript API docsinstagram.transcript | |
| Video url with optional allow_long_transcription and cache_max_age | Available transcript text and optional video metadata in JSON | Facebook transcript API docsfacebook.transcript | |
| X / Twitter | Post url with optional allow_long_transcription and cache_max_age | Available transcript text and optional post metadata in JSON | X / Twitter transcript API docstwitter.transcript |
Why Move Video Text into Your Own Tools?
Bring available transcript text into your own search tools, notes, or retrieval apps. Save the source video link with the text so you can check passages in context and reuse the same response across your workflow.
Faster topic lookup
Scan returned text to find key passages while keeping the source video link with your notes.
Reusable notes and quotes
Copy lines and terms from public talks into study or editorial notes without rewatching full videos.
Downstream app pipelines
Connect saved transcript text to your own search index, chunker, or storage step as needed.
How Do You Get a Transcript with an API Request?
To get a YouTube transcript with an API, send a GET request to youtube.transcript with a public video url and your x-api-key header. Check the returned fields, then save the JSON or text output for your workflow.
- Public video URL
- GET youtube.transcript
- Transcript text output
Set url and optional query fields
Pass the public YouTube url along with optional language, original_audio, or cache_max_age values.
Send x-api-key in the request header
Include your API key in the x-api-key header and keep credentials in environment variables rather than hardcoding them.
Retrieve video transcript as JSON
Inspect the returned text and optional fields, then save the JSON response to disk or pass it to your next step.
How Can You Run a Transcript Request in a Script?
Set SOCIALSCRAPER_API_KEY in your environment, run the request, and inspect the returned JSON before saving or indexing its text.
curl --get "https://socialmediascraper.org/v1/youtube/transcript" \
--header "x-api-key: $SOCIALSCRAPER_API_KEY" \
--data-urlencode "url=https://www.youtube.com/watch?v=bjVIDXPP7Uk"
Copy or download the request, Python script, or n8n workflow, then run it in your own environment with an active API key and balance.
Who Uses Transcript Text Beyond the Watch Page?
Developers building search tools, researchers organizing notes, and creators planning content use transcript text to work from spoken material. You run indexing, summarization, or storage logic on your side after retrieval.
Video search and RAG builders
Developers index transcript text for video search or feed chunks into RAG applications and retrieval tools they build.
Research notes workflows
Researchers gather quotes, compare themes across public talks, and save structured research notes for review.
Editorial planning teams
Writers and producers review transcript text to outline follow-up pieces and check exact wording from public videos.
When Does a Video Return No Transcript or Hit Limits?
Some public videos have no available captions or restrict access. Check for missing text before saving a file or passing the response to another step; retrieval does not guarantee audio transcription when captions are absent.
Handle missing transcript text
Check whether transcript text is returned so missing captions do not fail your script or batch run.
Separate browser and REST access
Free browser lookups share three uses per network per UTC day across tools; direct REST calls require x-api-key and balance.
Test sample URLs before scaling
Run a few public YouTube links first to check available text and pacing before running larger jobs.
What Should You Know Before Using Transcript Endpoints?
No. The endpoint retrieves available transcript text from public YouTube links and does not accept raw media file uploads or guarantee automatic speech recognition fallback.
Responses provide transcript text along with optional language and source_url fields when available from the source.
Free browser lookups provide up to three shared lookups per network per UTC day without an account. Direct REST requests use an x-api-key header and your account balance.
You can pass retrieved transcript text into your own chunking, embedding, or vector search step to support RAG applications and custom retrieval pipelines.
A video may lack captions, limit access, or have no available transcript text, so your code should check the response before saving results.
Store your key in an environment variable or secret store and send it in the x-api-key header rather than placing keys in URLs or scripts.
How Do You Start with a Public Video Link?
Test a public YouTube link in the free browser extractor or check the youtube.transcript parameters before wiring it into your workflow.