Youtube Transcript

Web Scraping API Youtube Transcript Target

You need to provide a YouTube video ID and a language_code and template will return Youtube transcript.

This target is available with Web API Advanced plans. You can test the solution in Dashboard Playground or take a free 7-day trial.

This template is available via both Real-time and Asynchronous integration methods.

INPUT parameters

Request parameters available for Youtube Transcript target:

Parameter

Type

Required

Description

Example

query

string

Youtube video ID

dFu9aKJoqGg


Youtube video ID is indicated in video URL.

target

string

This target type

youtube_transcript

language_code

string

Defines the transcript's language.
Refer to this list for supported options.


Note: A 404 error will occur if the selected language_code doesn't match an existing transcript on the YouTube video.

da

transcript_origin

string

Every video can have uploader_provided or auto_generated transcripts (or both). Use this parameter to indicate which one to scrape
Default value: auto_generated

uploader_provided or auto_generated

OUTPUT

As an output, you will get a JSON file with YouTube transcripts.

📘

Transcript availability is determined by the YouTube video. Certain videos may not offer transcripts.

JSONexample:
Extract from JSON response
{
  "transcriptSegmentRenderer": {
    "startMs": "80",
    "endMs": "2560",
    "snippet": {
      "runs": [
        {
          "text": "ever tried gathering online data only to"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:00"
    },
    "trackingParams": "CC0Q0_YHGAAiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "0 seconds ever tried gathering online data only to"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.80.2560"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "2560",
    "endMs": "5120",
    "snippet": {
      "runs": [
        {
          "text": "hit a wall of captures and IP blocks or"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:02"
    },
    "trackingParams": "CCwQ0_YHGAEiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "2 seconds hit a wall of captures and IP blocks or"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.2560.5120"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "5120",
    "endMs": "7600",
    "snippet": {
      "runs": [
        {
          "text": "paid for proxies that barely work it's"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:05"
    },
    "trackingParams": "CCsQ0_YHGAIiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "5 seconds paid for proxies that barely work it's"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.5120.7600"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "7600",
    "endMs": "10080",
    "snippet": {
      "runs": [
        {
          "text": "frustrating timeconuming and let's be"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:07"
    },
    "trackingParams": "CCoQ0_YHGAMiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "7 seconds frustrating timeconuming and let's be"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.7600.10080"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "10080",
    "endMs": "12960",
    "snippet": {
      "runs": [
        {
          "text": "real a waste of resources why compromise"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:10"
    },
    "trackingParams": "CCkQ0_YHGAQiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "10 seconds real a waste of resources why compromise"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.10080.12960"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "12960",
    "endMs": "15200",
    "snippet": {
      "runs": [
        {
          "text": "when there's a better solution meet"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:12"
    },
    "trackingParams": "CCgQ0_YHGAUiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "12 seconds when there's a better solution meet"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.12960.15200"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "15200",
    "endMs": "17760",
    "snippet": {
      "runs": [
        {
          "text": "Dakota the most efficient platform to"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:15"
    },
    "trackingParams": "CCcQ0_YHGAYiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "15 seconds Dakota the most efficient platform to"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.15200.17760"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "17760",
    "endMs": "20480",
    "snippet": {
      "runs": [
        {
          "text": "test launch and scale your web data"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:17"
    },
    "trackingParams": "CCYQ0_YHGAciEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "17 seconds test launch and scale your web data"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.17760.20480"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "20480",
    "endMs": "22800",
    "snippet": {
      "runs": [
        {
          "text": "projects our service includes a vast"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:20"
    },
    "trackingParams": "CCUQ0_YHGAgiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "20 seconds projects our service includes a vast"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.20480.22800"
  }
},
{
  "transcriptSegmentRenderer": {
    "startMs": "22800",
    "endMs": "25920",
    "snippet": {
      "runs": [
        {
          "text": "residential mobile data center and ISP"
        }
      ]
    },
    "startTimeText": {
      "simpleText": "0:22"
    },
    "trackingParams": "CCQQ0_YHGAkiEwiy3Pro0ZCNAxWnmsIBHVbcENI=",
    "accessibility": {
      "accessibilityData": {
        "label": "22 seconds residential mobile data center and ISP"
      }
    },
    "targetId": "dFu9aKJoqGg.CgNhc3ISAmVuGgA%3D.22800.25920"
  }
},

Support

Still can't find an answer? Want to say hi? We take pride in our 24/7 customer support. Alternatively, you can reach us via our support email at [email protected].

Feedback

Something's missing? Request an article!
Got feedback? Let us know how we're doing and what can be improved.