Skip to content
scrapeatlas.Dashboard

Get a video transcript

Try in Playground

Read the public caption track of a video or Short: the timed transcript (text, startMs, endMs, startTimeText), the plain text, the track's language name and every available caption track. The track is the last one whose language code matches the requested language (English by default), which prefers the auto-generated track when both exist. Without a matching track the transcript fields are null and the response is partial.

GET/v1/youtube/video/transcriptx-api-key
x-api-keystringrequiredheader

Your ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.

Query parameters
2
urlstringrequiredquery

YouTube video or Short URL (youtube.com/watch?v=…, youtu.be/…, /shorts/…, /embed/…, /live/…; www, m and music subdomains) or a bare 11-character video ID. Response: Watch URL of the video.

max 2048 chars

Examplehttps://www.youtube.com/watch?v=Vid0000001a
languagestringquery

Display name of the track without the "(auto-generated)" suffix ("English"); null without a track.

Exampleen
Response fields
28
requestIdstring

Operation identifier for correlation.

Upstream HTTP attempts, decoded bytes and duration.

accounting.upstreamRequestsinteger

Always included.

≥ 0

accounting.responseBytesinteger

Always included.

≥ 0

accounting.durationMsnumber

Always included.

≥ 0

successboolean

True when usable data was returned; inspect status and coverage.

statusenum

success, partial (coverage.warnings names the omission), failed or challenged.

one of: success, partial

typestring

Always video.

urlstring

YouTube video or Short URL (youtube.com/watch?v=…, youtu.be/…, /shorts/…, /embed/…, /live/…; www, m and music subdomains) or a bare 11-character video ID. Response: Watch URL of the video.

absolute HTTPS URL

transcriptobject[]nullable

Timed segments in order: text (whitespace-normalised), startMs and endMs as decimal strings, startTimeText ("0:18", "1:02:03"); null when no matching track exists.

transcript_only_textstringnullable

Every segment joined with single spaces; null without a track.

languagestringnullable

Display name of the track without the "(auto-generated)" suffix ("English"); null without a track.

videoIdstring

Video ID.

Every caption track the Android player lists (baseUrl, name, vssId, languageCode, kind, isTranslatable, trackName); returned as data.

up to 100 items

captionTracks.baseUrlstring

Always included.

absolute HTTPS URL

Always included.

captionTracks.name.simpleTextstring

Always included.

captionTracks.vssIdstring

Always included.

captionTracks.languageCodestring

Always included.

captionTracks.kindstringoptional

Optional.

captionTracks.isTranslatablebooleanoptional

Optional.

captionTracks.trackNamestringoptional

Optional.

sourceUrlstring

Public YouTube URL the operation represents (page or API route).

absolute HTTPS URL

fetchedAtstring

UTC retrieval timestamp.

source is public_api (the public player API plus one timed-text read). Warning transcript_unavailable when no track matches; nothing is transcribed or synthesised.

coverage.sourceenum

Always included.

one of: public_page, public_api

coverage.completeboolean

Always included.

coverage.warningsenum[]

Always included.

up to 8 items

HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.

Error codes
13
HTTPfailure.codeMeaning
400invalid_requestMissing, malformed, duplicate or conflicting parameters, unsupported parameters or an unsafe URL.
400invalid_continuationYouTube rejected the supplied continuation token.
401unauthorizedMissing or invalid worker API key.
403restricted_pageThe channel, video, playlist or post is terminated, private, members-only or otherwise unavailable.
403age_restrictedThe video is age restricted and cannot be read logged out.
404not_foundYouTube reports no channel, video, playlist or post for the identifier.
429upstream_rate_limitedYouTube rate limited the request; no automatic retry.
502upstream_challengedYouTube rejected or challenged the request.
502unsupported_pageThe response lacks the embedded data, the data is malformed, or the resolved identity does not match the request.
502response_too_large payload_too_complexThe response exceeded byte, depth or node limits.
502unsafe_redirect request_limit upstream_errorThe bounded request could not complete.
503busyAll worker slots are in use.
504timeoutThe total retrieval deadline expired.