YouTube Transcript & Subtitles Scraper API avatar

YouTube Transcript & Subtitles Scraper API

Pricing

from $2.00 / 1,000 results

Go to Apify Store
YouTube Transcript & Subtitles Scraper API

YouTube Transcript & Subtitles Scraper API

Get full YouTube transcripts with timestamps and chapters, plus SRT, VTT and TXT subtitle files. Works for videos, Shorts, playlists, channels and search phrases. Language choice, no login or cookies. Bulk input, auto proxy. Export JSON, CSV or Excel.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Data Minds

Data Minds

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

๐Ÿ“– What is YouTube Transcript & Subtitles Scraper API?

โšก Fast start ยท ๐Ÿ“ Timestamped transcripts ยท ๐Ÿ“ฆ Export to JSON, CSV or Excel ยท ๐Ÿค– Works with AI agents

YouTube Transcript & Subtitles Scraper API is a YouTube transcript API that turns videos, Shorts, playlists, channels and search phrases into one clean row per video, with the full transcript, timestamps, chapters and video details. Paste your links, @handles or search phrases, press Start, and add optional SRT, WebVTT and plain text files for every video. It is made for researchers, creators, marketers and AI builders who want spoken content as text, without writing code.

  • ๐Ÿค– Feed your AI: give an LLM or an AI agent the YouTube transcript text, with word counts and reading time, for summaries, search and a RAG pipeline.
  • ๐Ÿ“ Repurpose videos: turn videos into blog posts, newsletters and social posts, and keep the subtitle files ready to upload.
  • ๐Ÿ”Ž Research what is said: read the latest videos of a channel, a playlist or a search and compare what creators talk about.
  • ๐ŸŒ Pick the language: choose one language or several in priority order, or only list the caption languages a video offers.
  • ๐Ÿ“š Get chapters with their text: every chapter comes with the part of the transcript that belongs to it.
  • ๐ŸŽฏ Choose the caption type: take creator captions, auto-generated captions, or whichever exists.
  • ๐Ÿ” Keep it running: schedule runs and send the results to your sheet, your app or your AI agent.

๐Ÿ“ฆ What data can YouTube Transcript & Subtitles Scraper API extract?

Every row in the results table is one video. The fields are grouped below; the main ones are described in the Output section.

DataFields
๐Ÿ”— Video link and IDurl, video_id
๐Ÿ“ Title and descriptiontitle, description
๐Ÿ“œ Transcript text and timed linestimestamped, non_timestamped, snippet_count
๐ŸŒ Transcript language and typelanguage, language_code, is_generated, language_matched, transcript_source
๐Ÿ—‚ Caption languages of the videoavailable_tracks
๐ŸŽฌ Subtitle files (optional)srt, vtt, txt
๐Ÿ“Š Reading statsword_count, reading_time_min, speaking_rate_wpm
๐Ÿ“š Chapters with their transcript textchapters
๐Ÿ‘ค Channelchannel_name, channel_id, channel_url, channel_subscribers
๐Ÿ“ˆ Engagementview_count, like_count, comment_count
๐Ÿ“… Dates and categoryupload_date, published_at, category
๐Ÿ•’ Durationduration_seconds, duration_human
๐Ÿ”– Tags and linkstags, hashtags, links
๐Ÿ“ท Thumbnail and flagsthumbnail_url, is_live, is_family_safe
๐Ÿ” Origin of each rowsource, source_input, position
โœ… Statussuccess, error_type, error_message, metadata_error, scraped_at

โ— Note: Likes, comments, subscribers, upload date, category, tags, links, description and chapters need the Video details and chapters option, which is on by default. Videos without a transcript, private or removed videos, and inputs that cannot be read still get a row with an error type and a plain reason.

โŒ What can't YouTube Transcript & Subtitles Scraper API extract?

  • โŒ Transcripts of videos that have no captions at all, neither from the creator nor auto-generated.
  • โŒ Transcripts of private or removed videos, and age-restricted videos that need a sign-in.
  • โŒ Automatic translation into a language the video does not offer. Pick one of the caption languages the video lists instead.

For search results with views, likes and channel details but no transcript, try YouTube Search API.


๐Ÿš€ How to scrape YouTube transcripts

YouTube Transcript & Subtitles Scraper API is designed for an easy start, even if you have never extracted data from the web before.

  1. ๐Ÿ”‘ Create a free Apify account using your email.
  2. ๐ŸŒ Open YouTube Transcript & Subtitles Scraper API and go to the Input tab.
  3. ๐Ÿ“ฅ Add video links, Shorts links, playlist links, channel links or @handles, or plain search phrases, one per line.
  4. ๐ŸŽฏ Set Max videos per input, your Transcript languages and, if you like, the subtitle files you want.
  5. ๐Ÿš€ Click Start and wait for the run to finish.
  6. ๐Ÿ“ค Open the Output tab to read the transcripts as a table, or download them as JSON, CSV, Excel, XML or HTML.

๐Ÿš€ Quick start: a good first run is one video link, one channel and a small limit.

{
"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "@3blue1brown"],
"maxItems": 5,
"languages": ["en"]
}

๐Ÿ’ฐ How much does it cost to scrape YouTube transcripts?

YouTube Transcript & Subtitles Scraper API uses a pay per event model, with prices from $0.002 per transcript ($2.00 per 1,000 transcripts) on the Gold plan. You pay for every video whose transcript, or caption language list, is returned in the result event. Apify platform usage is billed in addition.

Apify planPrice per transcriptPrice per 1,000 transcripts
๐Ÿ†“ Free$0.0025$2.50
๐Ÿฅ‰ Bronze$0.00225$2.25
๐Ÿฅˆ Silver$0.00215$2.15
๐Ÿฅ‡ Gold$0.002$2.00

Each run also has one start event of $0.00005, which covers the default 1 GB of memory.

โœ… Good to know: rows for videos that have no transcript, are private or removed, or could not be read are saved with an error type and are not charged.

What a run costs (transcript price only, start event not included):

TranscriptsFreeBronzeSilverGold
100100 x $0.0025 = $0.25100 x $0.00225 = $0.225100 x $0.00215 = $0.215100 x $0.002 = $0.20
1,0001,000 x $0.0025 = $2.501,000 x $0.00225 = $2.251,000 x $0.00215 = $2.151,000 x $0.002 = $2.00
10,00010,000 x $0.0025 = $25.0010,000 x $0.00225 = $22.5010,000 x $0.00215 = $21.5010,000 x $0.002 = $20.00

๐Ÿ’ฐ Is the YouTube transcript API free to try?

You can start for free. The Apify Free plan includes $5 of monthly credit. At the Free price of $0.0025 per transcript, $5 / $0.0025 = about 2,000 transcripts before platform usage. Paid plans lower the price per transcript, as the table shows.


๐Ÿ”ง Input

Add the videos, channels, playlists or search phrases you want to read, then choose the language and the files you need. Set the input in the Input tab or send it as JSON through the API. Only urls is required.

FieldTypeDefaultWhat it does
urlsarray of stringsnone (required)Video, Shorts or youtu.be links, playlist links, channel links or @handles, video IDs, or plain search phrases. You can mix them freely and add many at once.
maxItemsinteger10How many videos to read for each channel, playlist or search phrase, from 1 to 10000. A direct video link always gives its one video.
languagesarray of strings["en"]Language codes in priority order, for example ["es", "en"]. Creator captions win over auto-generated ones. If none is offered you still get the best available track and language_matched is false.
transcriptTypestringanyWhich captions to accept: any (creator captions first), manual (creator captions only) or generated (auto-generated only).
listOnlybooleanfalseSkip the transcript and return only the caption languages each video offers. A quick check.
includeMetadatabooleantrueAdd likes, comments, subscribers, upload date, category, tags, links, description and chapters with their transcript text. Makes each video a little slower to read.
includeSrtbooleanfalseAdd a ready-to-use SRT file as text for every video.
includeVttbooleanfalseAdd a ready-to-use WebVTT file as text for every video.
includeTxtbooleanfalseAdd the transcript as a plain text file, one caption per line, for every video.
proxyConfigurationobjectnoneOptional network settings for the run. The defaults work for most runs.

Minimal input:

{
"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]
}

Advanced input: the 25 newest videos of a channel and a search, in Spanish first and English second, creator captions only, with all three subtitle files:

{
"urls": ["@3blue1brown", "python tutorial"],
"maxItems": 25,
"languages": ["es", "en"],
"transcriptType": "manual",
"includeMetadata": true,
"includeSrt": true,
"includeVtt": true,
"includeTxt": true
}

The limit counts per input: 3 channels with maxItems 20 give up to 60 rows. See the input tab for the full schema.

โ— Note: Write languages as codes such as en or de, not as names such as English.

๐Ÿ’ก Tip: Start with a low maxItems to check the sample, then raise it for the full run.


๐Ÿ“ค Output

Results are stored in a dataset, which you can open in the Output or Storage tab. View them as a table or JSON, pick only the fields you need, and download them as JSON, CSV, Excel, XML or HTML. The table has ready-made views for videos, transcripts, caption languages, video details and status. A run summary with the counts and the final message is saved as RUN_SUMMARY in the key-value store.

Through the API, read the rows from this URL pattern:

https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json

Add &view=overview (or transcript, tracks, details, status) to get one of the views.

The main fields of each video row:

FieldTypeDescription
urlstringLink to the video.
video_idstringYouTube ID of the video.
titlestringTitle of the video.
channel_namestringName of the channel.
channel_subscribersnumberSubscribers of the channel (needs video details).
view_countnumberViews of the video.
comment_countnumberComments on the video (needs video details).
like_countnumberLikes of the video (needs video details).
published_atstringWhen the video was published (needs video details).
categorystringYouTube category of the video (needs video details).
duration_secondsnumberLength of the video in seconds.
transcript_sourcestringWhere the transcript text came from, for example captions.
languagestringLanguage of the returned transcript.
language_codestringLanguage code of the returned transcript, for example en.
is_generatedbooleanTrue when the captions are auto-generated.
language_matchedbooleanTrue when the transcript is in one of your languages.
available_tracksarrayEvery caption language the video offers, with its code and whether it is auto-generated.
snippet_countnumberNumber of timed caption lines.
word_countnumberWord count of the YouTube transcript.
reading_time_minnumberReading time in minutes.
speaking_rate_wpmnumberWords per minute.
chaptersarrayChapters with title, start, end and transcript text (needs video details). Empty when the video has no chapters.
timestampedarrayCaption lines with text, start and duration in seconds.
non_timestampedstringThe whole transcript as one text.
srt, vtt, txtstringSubtitle files as text, only when you switch them on.
sourcestringWhat the input was: video, channel, playlist or search.
source_inputstringThe link or phrase you gave.
successbooleanTrue when the transcript, or the caption language list, was returned.
error_typestringShort reason code when there is no transcript, for example TranscriptsDisabled.
error_messagestringPlain-language reason.
scraped_atstringWhen the row was collected (ISO 8601, UTC).

An abridged example row (illustrative values, shortened):

{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"video_id": "dQw4w9WgXcQ",
"title": "Example video title",
"channel_name": "Example channel",
"channel_subscribers": 100000,
"view_count": 25000,
"like_count": 1200,
"comment_count": 85,
"published_at": "2025-01-15T10:00:00-08:00",
"category": "Education",
"duration_seconds": 212,
"transcript_source": "captions",
"language": "English",
"language_code": "en",
"is_generated": false,
"language_matched": true,
"available_tracks": [
{ "language": "English", "language_code": "en", "is_generated": false, "is_translatable": true }
],
"snippet_count": 3,
"word_count": 24,
"reading_time_min": 0.1,
"speaking_rate_wpm": 120,
"chapters": [
{ "title": "Intro", "start": 0.0, "end": 30.0, "text": "Welcome to the video ..." }
],
"timestamped": [
{ "text": "Welcome to the video", "start": 1.2, "duration": 2.0 }
],
"non_timestamped": "Welcome to the video ...",
"source": "video",
"source_input": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"position": 1,
"success": true,
"error_type": null,
"error_message": null,
"scraped_at": "2026-11-22T10:00:00Z"
}

Videos that cannot be read stay in the same table, so you can see what happened to every input. The Status view shows these fields:

FieldTypeDescription
video_idstringYouTube ID of the video, when the input was a video.
sourcestringType of the input.
source_inputstringThe link or phrase you gave.
positionnumberOrder in which the video was queued in the run.
successbooleanFalse when there is no transcript.
error_typestringReason code such as TranscriptsDisabled, NoTranscriptOfType, VideoPrivate, AgeRestricted, VideoUnavailable, NoVideos, NotFound, InvalidInput, NetworkError or CaptionDownloadFailed.
error_messagestringPlain-language reason.
metadata_errorstringShort note shown when the video details could not be read.
scraped_atstringWhen the row was collected (ISO 8601, UTC).

๐Ÿ’ก Tips and advanced usage

โšก How to get faster or cheaper results

  • โšก Switch Video details and chapters off when you only need the transcript text.
  • ๐Ÿ”Ž Turn on Only list caption languages to see which videos have captions before you download them.
  • ๐ŸŽฏ Keep Max videos per input small while you test.
  • ๐Ÿ“ฆ Switch on only the subtitle files you need, because every file adds text to each row.

๐ŸŽฅ Single videos and whole channels

Paste one video link for a single transcript, or a channel link or @handle for the newest videos of that channel. Set Max videos per input to decide how many videos each channel gives.

๐ŸŽฌ How to scrape YouTube subtitles as SRT, WebVTT or text

Turn on SRT subtitle file, WebVTT subtitle file or Plain text file. Each row then carries the file as text in srt, vtt or txt, ready to save for a YouTube transcript download or to upload as subtitles. Timed lines and the plain transcript are always included, so you can build other formats yourself.

๐Ÿงฉ How to download YouTube transcripts in bulk

Add all your links, channels and search phrases to one run and mix them freely. Each channel, playlist or search gets its own video limit, and the Status view shows the result for every input.

๐Ÿ“ฆ How to export YouTube transcripts to CSV

Open the Output tab of the finished run, choose Export, select CSV and pick the fields you need. The same menu offers JSON, Excel, XML and HTML, so a YouTube video transcript export or a YouTube subtitles export to Excel is one click away. For scheduled exports, use the API or an integration instead.

๐Ÿ”Ž Why did I get fewer videos than my limit?

The channel, playlist or search may have fewer public videos than your limit, and maxItems counts per input. Videos without captions come back as rows with an error type and are not charged. Check the success, error_type and error_message fields.

โ— Known issues

  • โ— Videos without any captions, and private or removed videos, return an error row instead of a transcript.
  • โ— If rows show IpBlocked or ClientsRejected, YouTube did not return those videos at that moment. Run again later.
  • โ— If none of your languages is offered, you get the best available track and language_matched is false.

๐Ÿ”Œ Integrations and API

๐Ÿ”Œ Can I use it as a YouTube transcript API?

Yes. Start runs, read results and schedule jobs through the Apify API. Use your token from Settings > API & Integrations.

ActionMethod and URL
๐Ÿš€ Start a runPOST https://api.apify.com/v2/actors/data_minds~youtube-transcript-subtitles-scraper-api/runs
โšก Run and get the results in one callPOST https://api.apify.com/v2/actors/data_minds~youtube-transcript-subtitles-scraper-api/run-sync-get-dataset-items
๐Ÿ“ฅ Read results of a runGET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json
๐Ÿ”Œ OpenAPI definitionGET https://api.apify.com/v2/actors/data_minds~youtube-transcript-subtitles-scraper-api/builds/default/openapi.json

curl

curl -X POST "https://api.apify.com/v2/actors/data_minds~youtube-transcript-subtitles-scraper-api/run-sync-get-dataset-items" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "languages": ["en"]}'

Python (YouTube transcript API example)

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("data_minds/youtube-transcript-subtitles-scraper-api").call(
run_input={"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "languages": ["en"]}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["title"], item["word_count"])

JavaScript (YouTube transcript API example)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('data_minds/youtube-transcript-subtitles-scraper-api').call({
urls: ['https://www.youtube.com/watch?v=dQw4w9WgXcQ'],
languages: ['en'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

CLI

$echo '{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "languages": ["en"]}' | apify call data_minds/youtube-transcript-subtitles-scraper-api --silent --output-dataset

The one-call endpoint suits runs that finish in about five minutes. Use the start-a-run endpoint for longer jobs. More code is on the API tab.

๐Ÿงฉ Can I connect it to other apps?

Yes. Connect it with Make, Zapier, n8n, Slack, Google Sheets, Google Drive, Airbyte, GitHub and more through Apify integrations. Use webhooks to send each new YouTube transcript to n8n, Zapier or Google Sheets whenever a run finishes. Use schedules to read new videos of a channel every day or week.

๐Ÿค– Can I use it with AI agents (MCP server)?

Yes. AI agents can call it directly through the hosted Apify MCP server. The Server tab of this Actor shows the same connection settings.

{
"mcpServers": {
"apify": {
"type": "http",
"url": "https://mcp.apify.com?tools=data_minds/youtube-transcript-subtitles-scraper-api"
}
}
}

The hosted server signs you in with OAuth the first time you connect, so no API token belongs in this configuration. If your client cannot use OAuth, send the header Authorization: Bearer <YOUR_APIFY_TOKEN>.


๐Ÿ”— Other YouTube scrapers

ScraperWhat it does
๐Ÿ”— Website Content CrawlerCrawls websites and turns every page into clean text, Markdown and metadata for AI, search and analysis.
๐Ÿ”— YouTube Search APISearches YouTube by keyword and returns videos, Shorts, channels or playlists with views, likes, comments, description, hashtags, channel subscribers, country and contact links.
๐Ÿ”— YouTube Transcript ScraperGets the transcript of any YouTube video, Short, playlist, channel or search: timestamped captions, SRT and WebVTT, chapters, language choice, video and channel details.

โ“ FAQ

Web scraping is generally legal if you extract publicly available data. However, you should respect personal data, for example under GDPR, and intellectual property regulations, only collect personal data with a legitimate reason, and take YouTube's Terms of Service into account. Transcripts can contain copyrighted text, so check how you may reuse them.

๐Ÿ”ง How does the YouTube transcript API work?

You give video links, playlist links, channel links, @handles or search phrases, choose your languages and a limit per input, and press Start. The Actor returns one row per video with the transcript, timed lines, chapters and details. Videos without a transcript get a row that explains why.

๐Ÿ”‘ Do I need a YouTube transcript API key?

No. You do not need a YouTube API key or a Google project. You give links or search phrases and use your Apify account, and every run returns rows with transcripts, timestamps, chapters, video details and optional subtitle files. You can filter by language and by creator or auto-generated captions.

๐Ÿ”Œ Can I use it as an API?

Yes. Start a run with the Apify API, pass your links as JSON and read the dataset items when it finishes. A one-call endpoint returns results directly for short runs, and an OpenAPI definition is available. Ready-made curl, Python, JavaScript and CLI examples are in the Integrations and API section above.

๐Ÿค– Can I use it with AI agents (MCP server)?

Yes. Add the hosted Apify MCP server URL with the tools parameter set to data_minds/youtube-transcript-subtitles-scraper-api, and your AI assistant can run the Actor and read the transcripts. The first connection signs you in with OAuth. The Server tab of the Actor shows the same connection settings.

๐Ÿงฉ Can I connect it to Google Sheets, Make or Zapier?

Yes. Apify integrations connect the Actor with Google Sheets, Make, Zapier, n8n, Slack and many other tools. Schedule a run, then use a webhook or an integration to send each new batch of transcripts to your sheet, chat or workflow automatically when the run finishes.

๐Ÿ”Ž Why did I get fewer transcripts than my limit?

The channel, playlist or search may have fewer public videos, and videos without captions return an error row instead of a transcript. Check the success, error_type and error_message fields. The limit counts per input, so remove filters, run a small test and compare the counts.

๐Ÿ“Š Why do the numbers differ from what YouTube shows?

Views, likes, comments and subscribers are a snapshot taken when the row was collected, which the scraped_at field shows, and they keep changing afterwards. Video details such as likes and subscribers are only added while the Video details and chapters option is on.

โ— Why does a video show an error, or the Actor is not working?

The video may have no captions, may be private, removed or age-restricted, or YouTube may not have returned it at that moment. Read error_type and error_message, and run again later. If a public video with captions still fails, report it on the Issues tab.


๐Ÿ’ฌ Support and feedback

Found a bug or have a feature request? Please create an issue on the Issues tab.

Need a custom solution or more data? Contact us at hello.dataminds@gmail.com.

Built and maintained by data_minds. This Actor is an independent tool and is not affiliated with, endorsed by or sponsored by YouTube or Google.