YouTube Transcript Fetcher avatar
YouTube Transcript Fetcher

Pricing

$15.00 / 1,000 results

Go to Apify Store
YouTube Transcript Fetcher

YouTube Transcript Fetcher

Developed by

Real Noob

Real Noob

Maintained by Community

0.0 (0)

Pricing

$15.00 / 1,000 results

0

1

0

Last modified

a few seconds ago

YouTube Transcript Actor

Fetch the transcript for a single YouTube video in a specific language.


Input

  • url (string, required)
    Must be exactly a YouTube watch URL:
    https://www.youtube.com/watch?v=VIDEO_ID (VIDEO_ID is 11 chars).

  • lang (string, required)
    Transcript language in ISO 639-1 (two letters, e.g., en, nb, fr).

Example input

{
"url": "https://www.youtube.com/watch?v=h3NwAkaBuFg",
"lang": "en"
}

Output

A single JSON object with these fields:

FieldTypeDescription
video_idstring11-char YouTube video ID
titlestringVideo title
channel_idstringChannel ID
channel_namestringChannel name
upload_datestring (ISO 8601)Published date/time, e.g. "2024-06-01T12:34:56+00:00"
urlstringCanonical watch URL
duration_secondsintegerVideo length in seconds
languagestringRequested ISO 639-1 language code
transcriptarray of objectsEach item: { "text": string, "start": "sec.ms", "end": "sec.ms" }

Example output

{
"video_id": "h3NwAkaBuFg",
"title": "Sample Title",
"channel_id": "UCxxxxxxxxxxxxxxxxx",
"channel_name": "Sample Channel",
"upload_date": "2024-06-01T12:34:56+00:00",
"url": "https://www.youtube.com/watch?v=h3NwAkaBuFg",
"duration_seconds": 213,
"language": "en",
"transcript": [
{ "start": "0.000", "end": "2.000", "text": "Intro line one" },
{ "start": "2.001", "end": "4.500", "text": "Intro line two" }
]
}