YouTube Transcript to RAG JSON Extractor
Pricing
from $1.00 / 1,000 results
Go to Apify Store
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Alejandro Martín Jiménez
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
14 days ago
Last modified
Categories
Features
Limited permissions
Share
Fast, lightweight extractor designed for AI engineers, LangChain/LlamaIndex pipelines, and RAG systems. It pulls complete transcripts directly from YouTube endpoints without slow headless browsers and converts them into structured semantic chunks with deep-link timestamps and titles.
Key Features
- Semantic Chunking with Overlap: Configurable window and overlap duration to preserve continuous context across boundaries.
- Title & Metadata Extraction: Pulls video titles and duration metrics for metadata filtering.
- Direct Citation URLs: Every chunk contains an exact timestamp link (
?t=Xs) for verifiable agent citations. - Zero Browser Overhead: Pure HTTP execution running in sub-seconds.
- Proxy Ready: Fully compatible with Apify Residential Proxies for enterprise resilience.
Input Parameters
| Field | Type | Default | Description |
|---|---|---|---|
videoUrls | Array | Required | List of YouTube URLs or 11-char video IDs. |
languages | Array | ["es", "en"] | Priority order for transcript languages. |
targetChunkSeconds | Integer | 45 | Duration window in seconds for each chunk. |
chunkOverlapSeconds | Integer | 10 | Overlap window between consecutive chunks. |
proxyConfiguration | Object | {} | Apify Proxy settings (Residential recommended). |
LangChain Integration Example
from langchain_community.document_loaders import ApifyDatasetLoaderfrom langchain_core.documents import Document# 1. Load dataset results directly from Apifyloader = ApifyDatasetLoader(dataset_id="YOUR_DATASET_ID",dataset_mapping_function=lambda item: [Document(page_content=chunk["text"],metadata={"video_id": item["videoId"],"video_title": item["videoTitle"],"citation_url": chunk["citationUrl"],"start_time": chunk["startTime"],"end_time": chunk["endTime"]})for chunk in item.get("ragChunks", [])])documents = loader.load()print(f"Loaded {len(documents)} vector-ready documents.")