DataNavoAPI / TOOLS / YOUTUBE

YouTube transcript demo

YouTube transcript demo. Follow concrete contracts, examples and reviewable steps using YouTube.

LOCAL SIMULATIONAll displayed records are fictional fixtures. Live APIs, payments and external email are disabled.中文版 ↗
LINK → LOCAL SAMPLE

YouTube transcript

Paste a complete link or identifier, then explicitly run a fictional local sample. The source URL is never requested and no credits are spent.

Use a complete URL or platform identifier. Open short links yourself and copy the complete address. Editing clears the old result and does not execute anything.

01

Input and result

This tool maps the task to youtube.videos.transcript.get. Check the input fields below, then run it in the local console; results are fixtures.

02

Input contract

Inspect meanings, examples and conditional rules for the selected method. view and fields control the response without changing the TEST unit price.

  • GET: supply exactly one of id / url.
MethodFieldTypeRequirementMeaningEnum or boundExample
GETidstringOptional / conditionalVideo ID—"dQw4w9WgXcQ"
GETurlstringOptional / conditionalLink to the video: a watch, shorts, embed, live or youtu.be link——
GETlangstringOptional / conditionalWhich language of captions to get, as a language code (en, es, ja, zh-Hans, say); left out, the captions of the video's own language come first. A video without captions in that language is answered as one without captions——
GETviewstringOptional / conditionalHow much of each item: compact (the most used fields, long text cut short), standard, or full (adds `ext`).["compact","standard","full"]—
GETfieldsarrayOptional / conditionalReturn only these fields of each item, by path (`author.name`).maxItems: 64—
03

Try it locally

Use demo to inspect the fields, then explicitly select simulated with a customer test key to exercise settlement. Never put a customer key in a URL.

json
{
  "capability": "youtube.videos.transcript.get",
  "method": "GET",
  "params": {
    "id": "dQw4w9WgXcQ"
  }
}
04

Output fields and interpretation

The transcript object permits missing or null values; do not replace missing measurements with zero. This table shows the main structure; the object reference covers nested fields.

FieldTypeMeaningSource scope
post_idstring | nullID of the post it belongs toYouTube
langstring | nullLanguage codeYouTube
textstring | nullThe whole textYouTube
segmentsarray | nullTimed segments (standard view and up)YouTube
segments[].startnumber | nullStart, in seconds (standard view and up)YouTube
segments[].endnumber | nullEnd, in seconds (standard view and up)YouTube
segments[].textstring | nullText of the segment (standard view and up)YouTube
approximatearray | nullWhich numbers of this item are approximate or lower bounds; absent when all are exactYouTube
approximate[].fieldstring | nullPath of the field, such as metrics.viewsYouTube
approximate[].kindstring | nullApproximate, or a lower boundYouTube
extobjectThe platform's own fields (full view).YouTube
TRY THE CONTRACT

Clear inputs. Inspectable output.

Each click runs a local fixture. Advanced JSON inputs are checked against the selected method. Editing does not execute a request.

Copying does not execute. CLI quote is read-only and needs a local customer TEST key. Configure MCP in demo mode first. GET and POST batches both return only fictional local fixtures.

Download contract example (no execution) ↗

For TEST budgets, Key scopes or failure scenarios, open the account console. Customer sandbox ↗