Go to example tasks

YouTube transcripts for ChatGPT, LLM and RAG

Turn YouTube videos into clean text for ChatGPT, Claude, LLM fine-tuning or RAG pipelines. Each result has the full transcript text plus timestamped segments to chunk, embed and cite back to the exact moment. This example pulls two Andrej Karpathy talks on LLMs. Call it from the Apify API or any MCP client.

Try for free
YouTube Transcript Scraper API
YouTube Transcript Scraper APIapi_harbor/youtube-transcript-scraper
Video id
Title
Language
Auto generated
+2 fields
Text
Number
Boolean
List
Object

Input

Videos(required):https://www.youtube.com/watch?v=zjkBMFhNj_g+1
Language:en

Output fields

Video id
Title
Language
Auto generated
Text
Error

How it works

Sign up on Apify or log in

The YouTube Transcript Scraper API Actor is ready to run with the inputs already set for "YouTube transcripts for ChatGPT, LLM and RAG". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "YouTube transcripts for ChatGPT, LLM and RAG" task

The YouTube Transcript Scraper API Actor will start running based on the input automatically. You can also change all the input fields, like videos and language, to match your specific use case.

Receive the "YouTube transcripts for ChatGPT, LLM and RAG" 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 video id, title, language, 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 transcripts for ChatGPT, LLM and RAG" task via API.

Image

Integrate "YouTube transcripts for ChatGPT, LLM and RAG" into your workflow

Connect "YouTube transcripts for ChatGPT, LLM and RAG" 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

The YouTube transcripts for LLM task returns the full text field, ready to paste into ChatGPT or Claude, or to send through their APIs as context.

The YouTube transcripts for LLM task gives timestamped segments. Chunk and embed them in your vector database, and keep start times to cite the exact moment.

The YouTube transcripts for LLM task is callable from Claude, Cursor or ChatGPT through the Apify MCP server at mcp.apify.com with your Apify token.

No. The YouTube transcripts for LLM task reads public captions, so no login, cookies, YouTube Data API key or Google Cloud quota are needed.

The YouTube transcripts for LLM task runs from the Apify API, Python and JavaScript clients, Make, Zapier, n8n or a schedule, and from MCP clients like Claude or Cursor.

The YouTube transcripts for LLM task costs $1 per 1,000 transcripts ($0.001 each) plus $0.00005 per run. Videos without captions return an error row that is never charged.