Index YouTube Transcript
Authentication
Path parameters
Headers
Request
A single YouTube video URL. Supported formats: youtube.com/watch?v=, youtu.be/, youtube.com/shorts/. Provide either ‘url’ or ‘urls’, not both.
An array of YouTube video URLs to index (max 20). Provide either ‘url’ or ‘urls’, not both.
Preferred transcript languages in priority order (ISO 639-1 codes). Defaults to English. Only specify if you need a non-English transcript (e.g., [‘fr’, ‘de’]). Falls back to auto-generated captions if manual transcript unavailable.
Custom metadata to attach to all indexed chunks. Keys must be strings. Values: str, int, float, bool, or array of strings.