Get the transcript for a YouTube video.
Endpoint
/v1/youtube/videos/transcript
Query
Link to the YouTube video whose transcript should be returned.
Optional ISO 639-1 language code (two letters) to prefer when multiple transcripts exist.
const response = await fetch( "https://api.socialfetch.dev/v1/youtube/videos/transcript?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ", { headers: { "x-api-key": "YOUR_API_KEY", } } ); const data = await response.json(); console.log(data);