YouTube Video Transcript (Provenance)

Retrieve a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition. Supply a URL and optionally set a language. Use it for account discovery and creator research. The POST request schema also lists fields, max_items. Use the data to compare content across accounts or review audience feedback by video.

Selected price
$0.003 / callPublished pricing
Sellers / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
YouTube video or Short URL (e.g. "https://www.youtube.com/watch?v=dQw4w9WgXcQ" or "https://www.youtube.com/shorts/Fir1x9cw2vg").
Optional parameters (13)
Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.
Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
Which caption track to accept: "manual" only creator-written captions, "automatic" only YouTube's speech recognition, "any" whichever exists.
ignoreSources array
Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
Preferred caption language code (e.g. "en", "es"). Defaults to English. If the video has no captions in that language, you get the transcript in another language the video has; the `language` field in the result says which.
Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
requireFields array
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `isAiGenerated`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
source array
Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.

Sample response

"costUsd": 0.00267
"hint": "large_result: this response is ~11 KB. To keep future runs from flooding your context, re-run with `fields` (keep only the keys you need), `max_items` (cap rows), `summary=true` (outline only), or `jq` for arbitrary reshaping (e.g. `jq=.data.markdown[:2000]`) — these trim the response only, never the charge."
"items": 1
"openany_cost": 3000
output {}
data {}
"authorId": "UCuAXFkgsw1L7xaCfnd5JJOw"
"authorUrl": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw"
"channel": "Rick Astley"
descriptionString · text preview
output.data.description
The official video for “Never Gonna Give You Up” by Rick Astley. 

Never: The Autobiography 📚 OUT NOW! 
Follow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever
https://linktr.ee/rickastleynever

“Never Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s native UK and the US Billboard Hot 100.  It also won the Brit Award for Best single in 1988. Stock Aitken and Waterman wrote and produced the track which was the lead-off single and lead track from Rick’s debut LP “Whenever You Need Somebody”.  The album was itself a UK number one and would go on to sell over 15 million copies worldwide.

The legendary video was directed by Simon West – who later went on to make Hollywood blockbusters such as Con Air, Lara Croft – Tomb Raider and The Expendables 2.  The video passed the 1bn YouTube views milestone on 28 July 2021.

Subscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID

Follow Rick Astley:
Facebook: https://RickAstley.lnk.to/FBFollowID 
Twitter: https://RickAstley.lnk.to/TwitterID 
Instagram: https://RickAstley.lnk.to/InstagramID 
Website: https://RickAstley.lnk.to/storeID 
TikTok: https://RickAstley.lnk.to/TikTokID

Listen to Rick Astley:
Spotify: https://RickAstley.lnk.to/SpotifyID 
Apple Music: https://RickAstley.lnk.to/AppleMusicID 
Amazon Music: https://RickAstley.lnk.to/AmazonMusicID 
Deezer: https://RickAstley.lnk.to/DeezerID 

Lyrics:
We’re no strangers to love
You know the rules and so do I
A full commitment’s what I’m thinking of
You wouldn’t get this from any other guy

I just wanna tell you how I’m feeling
Gotta make you understand

Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you

We’ve known each other for so long
Your heart’s been aching but you’re too shy to say it
Inside we both know what’s been going on
We know the game and we’re gonna play it

And if you ask me how I’m feeling
Don’t tell me you’re too blind to see

Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you

#RickAstley #NeverGonnaGiveYouUp #WheneverYouNeedSomebody #OfficialMusicVideo
"durationSeconds": 213
"image": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sddefault.jpg"
"isAiGenerated": null
"isAutoGenerated": false
"keywords": [
  "rick astley",
  "Never Gonna Give You Up",
  "nggyu",
  "never gonna give you up lyrics",
  "rick rolled",
  "Rick Roll",
  "rick astley official",
  "rickrolled",
  "Fortnite song",
  "Fortnite event",
  "Fortnite dance",
  "fortnite never gonna give you up",
  "rick roll",
  "rickrolling",
  "rick rolling",
  "never gonna give you up",
  "80s music",
  "rick astley new",
  "animated video",
  "rickroll",
  "meme songs",
  "never gonna give u up lyrics",
  "Rick Astley 2022",
  "never gonna let you down",
  "animated",
  "rick rolls 2022",
  "never gonna give you up karaoke"
]
"language": "en"
segments [61]
0: {
  "endSeconds": 3.04,
  "startSeconds": 1.36,
  "text": "[♪♪♪]"
}
1: {
  "endSeconds": 21.88,
  "startSeconds": 18.64,
  "text": "♪ We're no strangers to love ♪"
}
[2] {}
"endSeconds": 26.96
"startSeconds": 22.64
textString · text preview
output.data.segments[2].text
♪ You know the rules
and so do I ♪
[3] {}
"endSeconds": 31.04
"startSeconds": 27.04
textString · text preview
output.data.segments[3].text
♪ A full commitment's
what I'm thinking of ♪
[4] {}
"endSeconds": 35.08
"startSeconds": 31.12
textString · text preview
output.data.segments[4].text
♪ You wouldn't get this
from any other guy ♪
[5] {}
"endSeconds": 39.52
"startSeconds": 35.16
textString · text preview
output.data.segments[5].text
♪ I just wanna tell you
how I'm feeling ♪
6: {
  "endSeconds": 42.92,
  "startSeconds": 40.52,
  "text": "♪ Gotta make you understand ♪"
}
7: {
  "endSeconds": 45.12,
  "startSeconds": 43,
  "text": "♪ Never gonna give you up ♪"
}
8: {
  "endSeconds": 47.08,
  "startSeconds": 45.2,
  "text": "♪ Never gonna let you down ♪"
}
[9] {}
"endSeconds": 51.12
"startSeconds": 47.32
textString · text preview
output.data.segments[9].text
♪ Never gonna run around
and desert you ♪
10: {
  "endSeconds": 53.48,
  "startSeconds": 51.48,
  "text": "♪ Never gonna make you cry ♪"
}
11: {
  "endSeconds": 55.52,
  "startSeconds": 53.6,
  "text": "♪ Never gonna say goodbye ♪"
}
[12] {}
"endSeconds": 59.36
"startSeconds": 55.72
textString · text preview
output.data.segments[12].text
♪ Never gonna tell a lie
and hurt you ♪
[13] {}
"endSeconds": 64.8
"startSeconds": 60.8
textString · text preview
output.data.segments[13].text
♪ We've known each other
for so long ♪
[14] {}
"endSeconds": 69.04
"startSeconds": 64.88
textString · text preview
output.data.segments[14].text
♪ Your heart's been aching
but you're too shy to say it ♪
[15] {}
"endSeconds": 72.96
"startSeconds": 69.12
textString · text preview
output.data.segments[15].text
♪ Inside we both know
what's been going ♪
[16] {}
"endSeconds": 77.2
"startSeconds": 73.36
textString · text preview
output.data.segments[16].text
♪ We know the game
and we're gonna play it ♪
[17] {}
"endSeconds": 82.04
"startSeconds": 77.4
textString · text preview
output.data.segments[17].text
♪ And if you ask me
how I'm feeling ♪
[18] {}
"endSeconds": 85.24
"startSeconds": 82.4
textString · text preview
output.data.segments[18].text
♪ Don't tell me
you're too blind to see ♪
19: {
  "endSeconds": 87.28,
  "startSeconds": 85.32,
  "text": "♪ Never gonna give you up ♪"
}
20: {
  "endSeconds": 89.32,
  "startSeconds": 87.36,
  "text": "♪ Never gonna let you down ♪"
}
[21] {}
"endSeconds": 93.72
"startSeconds": 89.44
textString · text preview
output.data.segments[21].text
♪ Never gonna run around
and desert you ♪
22: {
  "endSeconds": 95.6,
  "startSeconds": 93.8,
  "text": "♪ Never gonna make you cry ♪"
}
23: {
  "endSeconds": 98,
  "startSeconds": 95.76,
  "text": "♪ Never gonna say goodbye ♪"
}
[24] {}
"endSeconds": 102.04
"startSeconds": 98.08
textString · text preview
output.data.segments[24].text
♪ Never gonna tell a lie
and hurt you ♪
25: {
  "endSeconds": 104.12,
  "startSeconds": 102.2,
  "text": "♪ Never gonna give you up ♪"
}
26: {
  "endSeconds": 106.36,
  "startSeconds": 104.28,
  "text": "♪ Never gonna let you down ♪"
}
[27] {}
"endSeconds": 110.08
"startSeconds": 106.48
textString · text preview
output.data.segments[27].text
♪ Never gonna run around
and desert you ♪
28: {
  "endSeconds": 112.72,
  "startSeconds": 110.76,
  "text": "♪ Never gonna make you cry ♪"
}
29: {
  "endSeconds": 114.68,
  "startSeconds": 112.8,
  "text": "♪ Never gonna say goodbye ♪"
}
[30] {}
"endSeconds": 118.76
"startSeconds": 114.96
textString · text preview
output.data.segments[30].text
♪ Never gonna tell a lie
and hurt you ♪
31: {
  "endSeconds": 122.96,
  "startSeconds": 119.84,
  "text": "♪ (Ooh, give you up) ♪"
}
32: {
  "endSeconds": 127.36,
  "startSeconds": 123.72,
  "text": "♪ (Ooh, give you up) ♪"
}
[33] {}
"endSeconds": 130.12
"startSeconds": 128.48
textString · text preview
output.data.segments[33].text
♪ Never gonna give,
never gonna give ♪
34: {
  "endSeconds": 131.56,
  "startSeconds": 130.24,
  "text": "♪ (Give you up) ♪"
}
[35] {}
"endSeconds": 134.24
"startSeconds": 132.48
textString · text preview
output.data.segments[35].text
♪ Never gonna give,
never gonna give ♪
36: {
  "endSeconds": 135.92,
  "startSeconds": 134.36,
  "text": "♪ (Give you up) ♪"
}
[37] {}
"endSeconds": 141.08
"startSeconds": 136.76
textString · text preview
output.data.segments[37].text
♪ We've known each other
for so long ♪
[38] {}
"endSeconds": 145.2
"startSeconds": 141.2
textString · text preview
output.data.segments[38].text
♪ Your heart's been aching
but you're too shy to say it ♪
[39] {}
"endSeconds": 149.12
"startSeconds": 145.28
textString · text preview
output.data.segments[39].text
♪ Inside we both know
what's been going ♪
[40] {}
"endSeconds": 153.2
"startSeconds": 149.52
textString · text preview
output.data.segments[40].text
♪ We know the game
and we're gonna play it ♪
[41] {}
"endSeconds": 158.04
"startSeconds": 153.36
textString · text preview
output.data.segments[41].text
♪ I just wanna tell you
how I'm feeling ♪
42: {
  "endSeconds": 161.32,
  "startSeconds": 158.64,
  "text": "♪ Gotta make you understand ♪"
}
43: {
  "endSeconds": 163.36,
  "startSeconds": 161.4,
  "text": "♪ Never gonna give you up ♪"
}
44: {
  "endSeconds": 165.64,
  "startSeconds": 163.44,
  "text": "♪ Never gonna let you down ♪"
}
45: {
  "endSeconds": 169.72,
  "startSeconds": 165.72,
  "text": "♪ Never gonna run around\nand desert you ♪"
}
46: {
  "endSeconds": 171.64,
  "startSeconds": 169.8,
  "text": "♪ Never gonna make you cry ♪"
}
47: {
  "endSeconds": 173.96,
  "startSeconds": 171.8,
  "text": "♪ Never gonna say goodbye ♪"
}
48: {
  "endSeconds": 177.6,
  "startSeconds": 174.04,
  "text": "♪ Never gonna tell a lie\nand hurt you ♪"
}
49: {
  "endSeconds": 180.24,
  "startSeconds": 178.2,
  "text": "♪ Never gonna give you up ♪"
}
50: {
  "endSeconds": 182.44,
  "startSeconds": 180.32,
  "text": "♪ Never gonna let you down ♪"
}
51: {
  "endSeconds": 186.64,
  "startSeconds": 182.52,
  "text": "♪ Never gonna run around\nand desert you ♪"
}
52: {
  "endSeconds": 188.72,
  "startSeconds": 186.72,
  "text": "♪ Never gonna make you cry ♪"
}
53: {
  "endSeconds": 190.72,
  "startSeconds": 188.84,
  "text": "♪ Never gonna say goodbye ♪"
}
54: {
  "endSeconds": 195.2,
  "startSeconds": 190.84,
  "text": "♪ Never gonna tell a lie\nand hurt you ♪"
}
55: {
  "endSeconds": 197.12,
  "startSeconds": 195.28,
  "text": "♪ Never gonna give you up ♪"
}
56: {
  "endSeconds": 199.24,
  "startSeconds": 197.2,
  "text": "♪ Never gonna let you down ♪"
}
57: {
  "endSeconds": 203.12,
  "startSeconds": 199.4,
  "text": "♪ Never gonna run around\nand desert you ♪"
}
58: {
  "endSeconds": 205.6,
  "startSeconds": 203.36,
  "text": "♪ Never gonna make you cry ♪"
}
59: {
  "endSeconds": 207.84,
  "startSeconds": 205.68,
  "text": "♪ Never gonna say goodbye ♪"
}
60: {
  "endSeconds": 211.32,
  "startSeconds": 207.92,
  "text": "♪ Never gonna tell a lie\nand hurt you ♪"
}
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"
"transcript": "[♪♪♪]\n♪ We're no strangers to love ♪\n♪ You know the rules\nand so do I ♪\n♪ A full commitment's\nwhat I'm thinking of ♪\n♪ You wouldn't get this\nfrom any other guy ♪\n♪ I just wanna tell you\nhow I'm feeling ♪\n♪ Gotta make you understand ♪\n♪ Never gonna give you up ♪\n♪ Never gonna let you down ♪\n♪ Never gonna run around\nand desert you ♪\n♪ Never gonna make you cry ♪\n♪ Never gonna say goodbye ♪\n♪ Never gonna tell a lie\nand hurt you ♪\n♪ We've known each other\nfor so long ♪\n♪ Your heart's been aching\nbut you're too shy to say it ♪\n♪ Inside we both know\nwhat's been going ♪\n♪ We know the game\nand we're gonna play it ♪\n♪ And if you ask me\nhow I'm feeling ♪\n♪ Don't tell me\nyou're too blind to see ♪\n♪ Never gonna give you up ♪\n♪ Never gonna let you down ♪\n♪ Never gonna run around\nand desert you ♪\n♪ Never gonna make you cry ♪\n♪ Never gonna say goodbye ♪\n♪ Never gonna tell a lie\nand hurt you ♪\n♪ Never gonna give you up ♪\n♪ Never gonna let you down ♪\n♪ Never gonna run around\nand desert you ♪\n♪ Never gonna make you cry ♪\n♪ Never gonna say goodbye ♪\n♪ Never gonna tell a lie\nand hurt you ♪\n♪ (Ooh, give you up) ♪\n♪ (Ooh, give you up) ♪\n♪ Never gonna give,\nnever gonna give ♪\n♪ (Give you up) ♪\n♪ Never gonna give,\nnever gonna give ♪\n♪ (Give you up) ♪\n♪ We've known each other\nfor so long ♪\n♪ Your heart's been aching\nbut you're too shy to say it ♪\n♪ Inside we both know\nwhat's been going ♪\n♪ We know the game\nand we're gonna play it ♪\n♪ I just wanna tell you\nhow I'm feeling ♪\n♪ Gotta make you understand ♪\n♪ Never gonna give you up ♪\n♪ Never gonna let you down ♪\n♪ Never gonna run around\nand desert you ♪\n♪ Never gonna make you cry ♪\n♪ Never gonna say goodbye ♪\n♪ Never gonna tell a lie\nand hurt you ♪\n♪ Never gonna give you up ♪\n♪ Never gonna let you down ♪\n♪ Never gonna run around\nand desert you ♪\n♪ Never gonna make you cry ♪\n♪ Never gonna say goodbye ♪\n♪ Never gonna tell a lie\nand hurt you ♪\n♪ Never gonna give you up ♪\n♪ Never gonna let you down ♪\n♪ Never gonna run around\nand desert you ♪\n♪ Never gonna make you cry ♪\n♪ Never gonna say goodbye ♪\n♪ Never gonna tell a lie\nand hurt you ♪"
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
"videoId": "dQw4w9WgXcQ"
"views": 1830910104
"found": true
"provider": "AnyAPI"
"replayed": false
"resultId": "07b671a2-3fe7-47f4-9260-85f2d4b1576d"
"source": {
  "artworkKey": "badger",
  "id": "anonymous-badger-464a3e49",
  "kind": "anonymous",
  "name": "Badger"
}

Response result

Response structure

Inferred from examples
  • costUsdnumber
  • hintstring
  • itemsinteger
  • openany_costinteger
  • outputobject
    • dataobject
      • authorIdstring
      • authorUrlstring
      • channelstring
      • descriptionstring
      • durationSecondsinteger
      • imagestring
      • isAiGeneratednull
      • isAutoGeneratedboolean
      • keywordsstring[]
      • languagestring
      • segmentsobject[]
        • endSecondsnumber
        • startSecondsnumber
        • textstring
      • titlestring
      • transcriptstring
      • urlstring
      • videoIdstring
      • viewsinteger
    • foundboolean
  • providerstring
  • replayedboolean
  • resultIdstring
  • sourceobject
    • artworkKeystring
    • idstring
    • kindstring
    • namestring

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use YouTube Video Transcript (Provenance) with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.