YouTube Transcript to RAG JSON Extractor
Extract clean, timestamped YouTube subtitles split into semantic time windows with citation links, formatted directly for LangChain, LlamaIndex, and RAG vector databases.
Input
Output fields
Sign up on Apify or log in
The YouTube Transcript to RAG JSON Extractor Actor is ready to run with the inputs already set for "YouTube Transcript to RAG JSON Extractor". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "YouTube Transcript to RAG JSON Extractor" task
The YouTube Transcript to RAG JSON Extractor Actor will start running based on the input automatically. You can also change all the input fields, like youtube video urls or ids, preferred languages (iso codes), and more, to match your specific use case.
Receive the "YouTube Transcript to RAG JSON Extractor" 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 title, video id, status, 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 to RAG JSON Extractor" task via API.

The YouTube Transcript to RAG JSON Extractor returns videoId, status, language, and stats, including total duration, total words, and total chunks.
The task extracts subtitles and groups them into customizable time windows defined by the targetChunkSeconds parameter.
Each semantic chunk contains the start and end time, duration, citation URL, and the corresponding text for easy referencing.
This task can be scheduled to run automatically in the Apify Console.
The task can fetch subtitles in specified languages, with the option to set a priority order and an automatic fallback.
The citation URLs allow users to verify the source of each chunk by linking directly to the timestamp in the YouTube video.