Go to example tasks

YouTube transcript API for Node.js and JavaScript

Call a hosted YouTube transcript API from Node.js without a brittle library. Returns non_timestamped, timestamped, and language_code per URL.

Try for free
YouTube Transcript & Subtitles Scraper API
YouTube Transcript & Subtitles Scraper APIjohnvc/youtubetranscripts
Thumbnail
Title
Channel
Views
+8 fields
Text
Number
Boolean
List
Object

Input

YouTube URL(s):https://www.youtube.com/watch?v=dQw4w9WgXcQ
Preferred Languages:en

Output fields

Thumbnail
Title
Channel
Views
Language
Source
Duration
Snippets
Translated to
YouTube URL
Cached
OK

How it works

Sign up on Apify or log in

The YouTube Transcript & Subtitles Scraper API Actor is ready to run with the inputs already set for "YouTube transcript API for Node.js and JavaScript". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "YouTube transcript API for Node.js and JavaScript" task

The YouTube Transcript & Subtitles Scraper API Actor will start running based on the input automatically. You can also change all the input fields, like youtube url(s) and preferred languages, to match your specific use case.

Receive the "YouTube transcript API for Node.js and JavaScript" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as thumbnail, title, channel, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "YouTube transcript API for Node.js and JavaScript" task via API.

Image

Integrate "YouTube transcript API for Node.js and JavaScript" into your workflow

Connect "YouTube transcript API for Node.js and JavaScript" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

An array of objects, one per URL, with non_timestamped, timestamped, language_code, title, channel_name, view_count and success. The apify-client npm package resolves them as plain objects; the same dataset exports as CSV or Excel from the Console.

An object with youtube_url, such as https://www.youtube.com/watch?v=dQw4w9WgXcQ, and languages set to en. Pass an array in youtube_url for a batch of up to 100. Fetching happens inside the Actor on Apify, so no library or proxy sits in your project.

With apify-client in Python or Node, call the task with an object with youtube_url and languages, then iterate the dataset items as JSON. The REST endpoint works from curl as well. npm install apify-client and the call is a dozen lines.

In the Console open the task, pick Actions, then Schedule, and set 0 */6 * * * to run every six hours. A Node webhook handler can pick up each finished dataset. Zapier, Make or a webhook push each finished dataset onward.

Register https://mcp.apify.com/?tools=actors,docs,johnvc/youtubetranscripts in Claude or any other MCP client. The agent can then call this task to pull a transcript for a URL and gets text, timestamps and channel_name.

YouTube transcript API for Node.js and JavaScript bills one videoprocessed event per video that returns a transcript; no subscription, no proxy fee. Empty or failed videos are free in a Node run too. Rates are on the Actor page.

YouTube transcript API in Python without IP blocks is the same input and the same rows, called from Python. The Node page exists so JavaScript developers see apify-client in their own syntax. Both replace a brittle local library with a hosted call.