Social Media Scraper

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.

Technical editorial illustration showing a video link flowing into a transcript text document and search index structure
Editorial illustration of transcript text retrieval and indexing

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.

Transcript response schema and field types
{
  "text": "string",
  "language": "string | null",
  "source_url": "string | null"
}
Example field schema showing field names and types such as string text, not a real transcript result.

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.

PlatformRequest inputAvailable dataAPI docs
YouTubeVideo url with optional language, original_audio, and cache_max_ageAvailable caption text with optional language and source fieldsYouTube transcript API docsyoutube.transcript
TikTokVideo url with optional language, allow_long_transcription, and use_ai_as_fallbackAvailable transcript text and optional metadata in JSONTikTok transcript API docstiktok.transcript
InstagramPost or Reel url with optional allow_long_transcription and cache_max_ageAvailable transcript text and optional source metadata in JSONInstagram transcript API docsinstagram.transcript
FacebookVideo url with optional allow_long_transcription and cache_max_ageAvailable transcript text and optional video metadata in JSONFacebook transcript API docsfacebook.transcript
X / TwitterPost url with optional allow_long_transcription and cache_max_ageAvailable transcript text and optional post metadata in JSONX / 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.

  1. Public video URL
  2. GET youtube.transcript
  3. Transcript text output
Illustrative flow from public URL input to GET request and transcript 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.

video-transcript-api.sh
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?

Read the API documentation →

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.