Scrapingdog

YouTube Transcripts API

The YouTube Transcripts API lets you extract the complete transcript (captions) from any YouTube video. Returns an array of text segments with start time and duration. Each successful request costs 1 API credit.

Endpoint: https://api.scrapingdog.com/youtube

API Parameters

πŸ”‘

Scrapingdog Parameters

  • api_key Required
    Your personal API key. Available on your dashboard.

    Type: String
🎬

Video

  • v Required
    YouTube Video ID. You can find it in the video URL after ?v= (e.g., for youtube.com/watch?v=0e3GPea1Tyg, the ID is 0e3GPea1Tyg).

    Type: String
🌍

Localization

  • country Optional
    ISO code of the country from which you are seeking YouTube search results. Default: us

    Type: String
  • language Optional
    Language of the results. Possible Values β€” en, es, fr, de, etc. Default: en

    Type: String

API Examples

Code to Integrate
curl "https://api.scrapingdog.com/youtube?api_key=APIKEY&v=0e3GPea1Tyg"
API Response
{
  "transcripts": [
    {
      "text": "- [Mr. Beast] I've\nrecreated every single set",
      "start": 0.15,
      "duration": 1.773
    },
    {
      "text": "from Squid Game in real life,",
      "start": 1.923,
      "duration": 1.857
    },
    {
      "text": "and actually played the games.",
      "start": 3.78,
      "duration": 1.89
    }
  ]
}