Search and videoCaptions YouTube shows publicly

YouTube transcript API: captions as text, timestamps and SRT

Pass video, Shorts, playlist or channel URLs to get one JSON record per video without a YouTube account or downloading media. Each record includes plain text for LLM prompts, timestamped segments for citations, and optional SRT or WebVTT subtitles.

  • 0.00001 USD per event, trial price until 31 Dec 2026
  • Errors are never charged
  • Free Apify plan: 20 videos per run
Example output
json
{
  "video_id": "EXAMPLE0001",
  "url": "https://www.youtube.com/watch?v=EXAMPLE0001",
  "title": "Example talk",
  "channel_name": "Example Channel",
  "channel_id": "UCexample000000000000000",
  "view_count": 18420,
  "published_at": "2026-01-15T09:00:00-08:00",
  "duration_seconds": 95,
  "language": "en",
  "language_name": "English"
}

What you get

  • Any public video: video links, Shorts, live links or 11-character IDs.
  • Whole playlists and channels: the newest videos of each link, up to 5,000 per link.
  • Your languages: a preference list such as pt-BR, then en, or fall back to the video's own language.
  • Subtitle files: SRT or WebVTT text in the subtitles field, at no extra cost.
  • Per-video status: every video gets a record with a status field; videos without captions and errors are not charged.

Who uses it

  • AI and LLM builders

    Feed transcripts into summaries, chatbots and search indexes, as plain text.

  • Content teams

    Turn videos into posts, newsletters and show notes.

  • Researchers

    Study what is said across channels and playlists, with timestamps to cite exact moments.

  • Video editors

    Get SRT or WebVTT files for existing captions.

  • SEO and media monitoring

    Search transcripts for mentions, with the second each one is spoken.

Input

FieldKeyWhat it doesDefault
YouTube URLs or video IDsurlsVideo, Shorts and live links, IDs, playlist links and channel links (@handle, /channel/UC…)three example videos
Caption languageslanguagesLanguage codes in order of preference; human captions win over automatic ones in the same language["en"]
Fall back to any languagefallbackToAnyLanguageReturn the video's own captions when none of your languages existson
Include timestamped segmentsincludeSegmentsAdd the segments list next to texton
Subtitle formatsubtitleFormatnone, srt or vttnone
Maximum videos per playlist or channelmaxVideosPerSourceNewest videos taken from each playlist or channel link100

One video, English captions, text only

jsonInput
{
  "urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
  "languages": ["en"],
  "includeSegments": false
}

We ran this exact input on 2 Dec 2026: 1 record, run status SUCCEEDED.

The 20 newest videos of a channel, German or English, as SRT

jsonInput
{
  "urls": ["https://www.youtube.com/@example-channel"],
  "maxVideosPerSource": 20,
  "languages": ["de", "en"],
  "subtitleFormat": "srt"
}

Output

One record per item in the run's dataset, exportable as JSON, CSV or Excel.

jsonExample record
{
  "video_id": "EXAMPLE0001",
  "url": "https://www.youtube.com/watch?v=EXAMPLE0001",
  "source_url": null,
  "status": "ok",
  "error_code": null,
  "error": null,
  "title": "Example talk",
  "channel_name": "Example Channel",
  "channel_id": "UCexample000000000000000",
  "view_count": 18420,
  "published_at": "2026-01-15T09:00:00-08:00",
  "duration_seconds": 95,
  "language": "en",
  "language_name": "English",
  "is_auto_generated": true,
  "available_languages": [
    {
      "code": "en",
      "name": "English",
      "is_auto_generated": true
    }
  ],
  "segment_count": 2,
  "segments": [
    {
      "start": 0.4,
      "duration": 3.1,
      "text": "This is invented example text."
    },
    {
      "start": 3.5,
      "duration": 2.8,
      "text": "It stands in for the video's captions."
    }
  ],
  "text": "This is invented example text. It stands in for the video's captions.",
  "subtitles": null,
  "scraped_at": "2026-12-02T12:00:00.000Z"
}

Shortened: real records also carry description and thumbnail_url.

FieldWhat it means
textAll segments joined into one paragraph: the field to put into an LLM prompt.
segmentsstart and duration in seconds, plus the caption text.
is_auto_generatedtrue when YouTube's speech recognition made the captions: expect missing punctuation.
status / error_codeok, no_captions or error with a code such as video_unavailable, age_restricted, live_stream or bot_check.
subtitlesSRT or WebVTT text when requested; save it as a .srt or .vtt file.

Use it from your code, agent or workflow

Every example runs the same input. Get your API token in Apify Console under Settings, API & Integrations, and keep it in the APIFY_TOKEN environment variable.

curl

bashSynchronous run (token in APIFY_TOKEN)
curl -sS --max-time 310 -X POST \
  "https://api.apify.com/v2/acts/mzceZowBx7VrobetK/run-sync-get-dataset-items?maxTotalChargeUsd=0.10" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "languages": ["en"], "includeSegments": false}'

Python

pythonapify-client 3.x
# pip install apify-client
import os
from decimal import Decimal

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("mzceZowBx7VrobetK").call(
    run_input={
        "urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
        "languages": ["en"],
        "includeSegments": False,
    },
    max_total_charge_usd=Decimal("0.10"),  # spend cap for this run
)
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item.get("status"), item.get("title"))

JavaScript

javascriptapify-client 2.x, Node 18+
// npm install apify-client
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('mzceZowBx7VrobetK').call(
  {
    urls: ['https://www.youtube.com/watch?v=jNQXAC9IVRw'],
    languages: ['en'],
    includeSegments: false,
  },
  { maxTotalChargeUsd: 0.1 }, // spend cap for this run
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.status, item.title);

AI agents (MCP)

jsonMCP client configuration
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=cozybit/youtube-transcript-scraper"
    }
  }
}

Works in any MCP client that accepts a remote server URL (Apify's MCP docs). Clients with OAuth sign you in to Apify on first use; others send "headers": {"Authorization": "Bearer <APIFY_TOKEN>"}. The tool is called cozybit--youtube-transcript-scraper. Try a prompt such as: Get the transcripts of the 10 newest videos on @example-channel and summarize each in three bullet points. More in AI agents and MCP.

n8n, Make, Zapier

Apify has its own apps for the main automation platforms. Point them at this actor's ID mzceZowBx7VrobetK and paste the input JSON.

  • n8n: the Apify node, operation Run an Actor and get dataset.
  • Make: the Apify module Run an Actor, then Get Dataset Items.
  • Zapier: the Apify action Run Actor, or the trigger Finished Actor run for scheduled runs.

Step-by-step setup: n8n, Make and Zapier.

Apify Console

  1. Open the Store page and choose Try for free. Apify asks you to sign in or create a free account.

  2. Paste the input into the JSON tab of the input form, or fill in the fields.

  3. Start the run, then open the dataset and export it as JSON, CSV or Excel. Save the input as a task to schedule it.

  • run-sync-get-dataset-items waits at most 300 seconds, then answers HTTP 408. Keep synchronous calls small and start an asynchronous run for batches (below).
  • maxTotalChargeUsd caps what one run may charge; the run stops cleanly when it is reached.
  • Send the token in the Authorization header, never as ?token= in the URL, where it ends up in logs.
  • The ID mzceZowBx7VrobetK never changes; the name cozybit/youtube-transcript-scraper works too.
Batches and schedules: start a run, wait, read the results
bashAsynchronous run, results as CSV
# 1. Start a run; the answer comes back at once
curl -sS -X POST "https://api.apify.com/v2/acts/mzceZowBx7VrobetK/runs?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d @input.json
# The answer's data.id is RUN_ID and data.defaultDatasetId is DATASET_ID.

# 2. Wait up to 60 s per call until data.status is SUCCEEDED
curl -sS "https://api.apify.com/v2/actor-runs/RUN_ID?waitForFinish=60" \
  -H "Authorization: Bearer $APIFY_TOKEN"

# 3. Read the records as JSON, CSV or Excel (format=json, csv or xlsx)
curl -sS "https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv" \
  -H "Authorization: Bearer $APIFY_TOKEN" -o results.csv

Schedule a channel link daily with a small maxVideosPerSource to collect new uploads. Schedules live in Apify Console under Schedules; a webhook or the no-code apps can pick up each finished run.

Price

You pay per event, through your Apify account, with platform costs included. The live price is on the Store page: 0.00001 USD per event, a trial price until 31 Dec 2026.

EventWhat countsTrial price until 31 Dec 2026Planned post-trial rate
transcriptTranscript delivered (status: ok)0.00001 USD (0.01 USD per 1,000)2.00 USD per 1,000

What each outcome costs

OutcomeWhat it isCharged?
okTranscript deliveredCharged
no_captionsThe video has no captions in your languages (or none at all)Free
errorUnavailable, private, age-restricted or live video, invalid link, or a failed request; see error_codeFree
ListingReading a playlist's or channel's video listFree

Not charged: Videos without captions, unavailable videos, errors and playlist or channel listing.

Apify's free plan (no card) returns up to 20 videos per run. You can cap any run's cost with maxTotalChargeUsd.

What typical jobs cost

ExampleCharged eventsAt the trial priceAt the planned rate
10 videos10 × transcript0.0001 USD0.02 USD
A channel's 100 newest videos, 92 with captions92 × transcript0.00092 USD0.18 USD
5,000 videos5,000 × transcript0.05 USD10.00 USD

The post-trial rate is planned, not scheduled: the trial may be extended, Apify notifies users before any price increase, and the Store page always shows the price that applies. See how pricing works and the cost estimator.

Reliability

404/ 407videos returned a transcript

404 of 407 videos returned a transcript. The other three got the right answer: 2 videos without captions and 1 private video. These figures come from 44 runs on the Apify platform, with videos in six languages, manual and automatic captions, Shorts, podcasts of up to 5 hours and channel links. The median run of 10 videos takes 15 seconds.

Problems and questions go to the actor's Issues tab on Apify.

Limits

  • Only captions YouTube shows publicly. The actor never signs in, never downloads video or audio and does no speech-to-text or translation.
  • Age-restricted and members-only videos return an error (free).
  • Up to 1,000 entries per run and 5,000 videos per playlist or channel link.
  • YouTube has no official public transcript API for other people's videos; a change on YouTube's side can break the actor until it is updated.
  • Transcripts belong to their rights holders, usually the video's creator. Check that your use is permitted.

Questions

Does it work with auto-generated captions?

Yes. When a video has only automatic captions you get those, marked is_auto_generated: true. Human captions win when both exist in the same language.

What happens with videos that have no captions?

They return status: "no_captions" and are not charged. The actor does no speech-to-text of its own.

Can I get SRT or VTT files?

Yes. Set subtitleFormat to srt or vtt; the subtitles field holds the file's text, at no extra cost.

My own code fails on Vercel or AWS. Does this help?

That is a common case: see the guide YouTube captions work locally but fail on cloud hosts, which also covers official API and local options.

GuideYouTube captions work locally but fail on Netlify, Vercel or AWS

Google Trends API

Search and video

Interest over time, by region, related queries and Trending Now.

per report or trending row

Every open job from three job systems, in one format, with salaries.

  • Official files or APIs

per job

Try YouTube Transcript Scraper on the free Apify plan

No card needed. Errors are never charged, and every run can carry a spend cap.