Youtube Transcript
Extracts transcripts from YouTube videos.
You need to provide a YouTube video ID and a language_code
and template will return Youtube transcript.
This target is available with Social Media Scraping API. 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 |
---|---|---|---|---|
|
| ✅ | Youtube video ID |
Youtube video ID is indicated in video URL. |
|
| ✅ | This target type |
|
|
| Defines the transcript's language. Note: A 404 error will occur if the selected language_code doesn't match an existing transcript on the YouTube video. |
| |
|
| Every video can have |
|
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.
JSON example:
Extract from JSON response
{
"transcriptSegmentRenderer": {
"startMs": "80",
"endMs": "2040",
"snippet": {
"runs": [
{
"text": "looking to score the best deal on that"
}
]
},
"startTimeText": {
"simpleText": "0:00"
},
"trackingParams": "CFIQ0_YHGAAiEwiereHQrp2LAxVDn-QGHe1gIT0=",
"accessibility": {
"accessibilityData": {
"label": "0 seconds looking to score the best deal on that"
}
},
"targetId": "UQamEZrlSfU.CgNhc3ISAmVuGgA%3D.80.2040"
}
},
{
"transcriptSegmentRenderer": {
"startMs": "2040",
"endMs": "4000",
"snippet": {
"runs": [
{
"text": "gaming computer or maybe you want to see"
}
]
},
"startTimeText": {
"simpleText": "0:02"
},
"trackingParams": "CFEQ0_YHGAEiEwiereHQrp2LAxVDn-QGHe1gIT0=",
"accessibility": {
"accessibilityData": {
"label": "2 seconds gaming computer or maybe you want to see"
}
},
"targetId": "UQamEZrlSfU.CgNhc3ISAmVuGgA%3D.2040.4000"
}
},
{
"transcriptSegmentRenderer": {
"startMs": "4000",
"endMs": "5720",
"snippet": {
"runs": [
{
"text": "how your product pric is compared to"
}
]
},
"startTimeText": {
"simpleText": "0:04"
},
"trackingParams": "CFAQ0_YHGAIiEwiereHQrp2LAxVDn-QGHe1gIT0=",
"accessibility": {
"accessibilityData": {
"label": "4 seconds how your product pric is compared to"
}
},
"targetId": "UQamEZrlSfU.CgNhc3ISAmVuGgA%3D.4000.5720"
}
},
{
"transcriptSegmentRenderer": {
"startMs": "5720",
"endMs": "8240",
"snippet": {
"runs": [
{
"text": "your competitors let's scrape Amazon to"
}
]
},
"startTimeText": {
"simpleText": "0:05"
},
"trackingParams": "CE8Q0_YHGAMiEwiereHQrp2LAxVDn-QGHe1gIT0=",
"accessibility": {
"accessibilityData": {
"label": "5 seconds your competitors let's scrape Amazon to"
}
},
"targetId": "UQamEZrlSfU.CgNhc3ISAmVuGgA%3D.5720.8240"
}
},
Updated 10 days ago