APIMediaSocial Media

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 / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

YouTube Video Transcript (Provenance)

Prepare your request, then continue with your agent.

Pricing

$0.003 / call

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
Pricing
Connect your agent
On this page

Playground

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

Sellers

SellerPricingRequests · 30dPerformanceAccess
anyapiCurrent
YouTube Video Transcript (Provenance) · POST · View API reference
$0.003 / call—
—successP50—
Loading...
Selected pricing · anyapiUSD / call
Pricing
$0.003

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/anyapi/v1/run/youtube.video_transcript_full
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/youtube.video_transcript_full' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
fieldsURL query parametersquerystringNoOptional. 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.
max_itemsURL query parametersqueryintegerNoOptional. 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.

minimum: 0

summaryURL query parametersquerybooleanNoOptional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
jqURL query parametersquerystringNoOptional. 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.
max_cost_usdURL query parametersquerystringNoOptional. 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.
Idempotency-KeyRequest headersheadersstringNoOptional 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.

minLength: 1 · maxLength: 255

allowFallbacksJSON request bodybodybooleanNoOptional, 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.
captionKindJSON request bodybodystringNoWhich caption track to accept: "manual" only creator-written captions, "automatic" only YouTube's speech recognition, "any" whichever exists.

enum: "manual", "automatic", "any"

ignoreSourcesJSON request bodybodyarrayNoOptional. 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.
Nested fields and variants

body.ignoreSources[] · Array item · string

languageJSON request bodybodystringNoPreferred 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.
preferLatencyUnderMsJSON request bodybodyintegerNoOptional; 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.

minimum: 1

requireFieldsJSON request bodybodyarrayNoOptional; 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.
Nested fields and variants

body.requireFields[] · Array item · string

sourceJSON request bodybodyarrayNoOptional. 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`.
Nested fields and variants

body.source[] · Array item · string

urlJSON request bodybodystringYesYouTube video or Short URL (e.g. "https://www.youtube.com/watch?v=dQw4w9WgXcQ" or "https://www.youtube.com/shorts/Fir1x9cw2vg").

minLength: 1

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.

youtube
{
  "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",
      "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“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.\n\nThe 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.\n\nSubscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID\n\nFollow Rick Astley:\nFacebook: https://RickAstley.lnk.to/FBFollowID \nTwitter: https://RickAstley.lnk.to/TwitterID \nInstagram: https://RickAstley.lnk.to/InstagramID \nWebsite: https://RickAstley.lnk.to/storeID \nTikTok: https://RickAstley.lnk.to/TikTokID\n\nListen to Rick Astley:\nSpotify: https://RickAstley.lnk.to/SpotifyID \nApple Music: https://RickAstley.lnk.to/AppleMusicID \nAmazon Music: https://RickAstley.lnk.to/AmazonMusicID \nDeezer: https://RickAstley.lnk.to/DeezerID \n\nLyrics:\nWe’re no strangers to love\nYou know the rules and so do I\nA full commitment’s what I’m thinking of\nYou wouldn’t get this from any other guy\n\nI just wanna tell you how I’m feeling\nGotta make you understand\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\nWe’ve known each other for so long\nYour heart’s been aching but you’re too shy to say it\nInside we both know what’s been going on\nWe know the game and we’re gonna play it\n\nAnd if you ask me how I’m feeling\nDon’t tell me you’re too blind to see\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\n#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": [
        {
          "endSeconds": 3.04,
          "startSeconds": 1.36,
          "text": "[♪♪♪]"
        },
        {
          "endSeconds": 21.88,
          "startSeconds": 18.64,
          "text": "♪ We're no strangers to love ♪"
        },
        {
          "endSeconds": 26.96,
          "startSeconds": 22.64,
          "text": "♪ You know the rules\nand so do I ♪"
        },
        {
          "endSeconds": 31.04,
          "startSeconds": 27.04,
          "text": "♪ A full commitment's\nwhat I'm thinking of ♪"
        },
        {
          "endSeconds": 35.08,
          "startSeconds": 31.12,
          "text": "♪ You wouldn't get this\nfrom any other guy ♪"
        },
        {
          "endSeconds": 39.52,
          "startSeconds": 35.16,
          "text": "♪ I just wanna tell you\nhow I'm feeling ♪"
        },
        {
          "endSeconds": 42.92,
          "startSeconds": 40.52,
          "text": "♪ Gotta make you understand ♪"
        },
        {
          "endSeconds": 45.12,
          "startSeconds": 43,
          "text": "♪ Never gonna give you up ♪"
        },
        {
          "endSeconds": 47.08,
          "startSeconds": 45.2,
          "text": "♪ Never gonna let you down ♪"
        },
        {
          "endSeconds": 51.12,
          "startSeconds": 47.32,
          "text": "♪ Never gonna run around\nand desert you ♪"
        },
        {
          "endSeconds": 53.48,
          "startSeconds": 51.48,
          "text": "♪ Never gonna make you cry ♪"
        },
        {
          "endSeconds": 55.52,
          "startSeconds": 53.6,
          "text": "♪ Never gonna say goodbye ♪"
        },
        {
          "endSeconds": 59.36,
          "startSeconds": 55.72,
          "text": "♪ Never gonna tell a lie\nand hurt you ♪"
        },
        {
          "endSeconds": 64.8,
          "startSeconds": 60.8,
          "text": "♪ We've known each other\nfor so long ♪"
        },
        {
          "endSeconds": 69.04,
          "startSeconds": 64.88,
          "text": "♪ Your heart's been aching\nbut you're too shy to say it ♪"
        },
        {
          "endSeconds": 72.96,
          "startSeconds": 69.12,
          "text": "♪ Inside we both know\nwhat's been going ♪"
        },
        {
          "endSeconds": 77.2,
          "startSeconds": 73.36,
          "text": "♪ We know the game\nand we're gonna play it ♪"
        },
        {
          "endSeconds": 82.04,
          "startSeconds": 77.4,
          "text": "♪ And if you ask me\nhow I'm feeling ♪"
        },
        {
          "endSeconds": 85.24,
          "startSeconds": 82.4,
          "text": "♪ Don't tell me\nyou're too blind to see ♪"
        },
        {
          "endSeconds": 87.28,
          "startSeconds": 85.32,
          "text": "♪ Never gonna give you up ♪"
        },
        {
          "endSeconds": 89.32,
          "startSeconds": 87.36,
          "text": "♪ Never gonna let you down ♪"
        },
        {
          "endSeconds": 93.72,
          "startSeconds": 89.44,
          "text": "♪ Never gonna run around\nand desert you ♪"
        },
        {
          "endSeconds": 95.6,
          "startSeconds": 93.8,
          "text": "♪ Never gonna make you cry ♪"
        },
        {
          "endSeconds": 98,
          "startSeconds": 95.76,
          "text": "♪ Never gonna say goodbye ♪"
        },
        {
          "endSeconds": 102.04,
          "startSeconds": 98.08,
          "text": "♪ Never gonna tell a lie\nand hurt you ♪"
        },
        {
          "endSeconds": 104.12,
          "startSeconds": 102.2,
          "text": "♪ Never gonna give you up ♪"
        },
        {
          "endSeconds": 106.36,
          "startSeconds": 104.28,
          "text": "♪ Never gonna let you down ♪"
        },
        {
          "endSeconds": 110.08,
          "startSeconds": 106.48,
          "text": "♪ Never gonna run around\nand desert you ♪"
        },
        {
          "endSeconds": 112.72,
          "startSeconds": 110.76,
          "text": "♪ Never gonna make you cry ♪"
        },
        {
          "endSeconds": 114.68,
          "startSeconds": 112.8,
          "text": "♪ Never gonna say goodbye ♪"
        },
        {
          "endSeconds": 118.76,
          "startSeconds": 114.96,
          "text": "♪ Never gonna tell a lie\nand hurt you ♪"
        },
        {
          "endSeconds": 122.96,
          "startSeconds": 119.84,
          "text": "♪ (Ooh, give you up) ♪"
        },
        {
          "endSeconds": 127.36,
          "startSeconds": 123.72,
          "text": "♪ (Ooh, give you up) ♪"
        },
        {
          "endSeconds": 130.12,
          "startSeconds": 128.48,
          "text": "♪ Never gonna give,\nnever gonna give ♪"
        },
        {
          "endSeconds": 131.56,
          "startSeconds": 130.24,
          "text": "♪ (Give you up) ♪"
        },
        {
          "endSeconds": 134.24,
          "startSeconds": 132.48,
          "text": "♪ Never gonna give,\nnever gonna give ♪"
        },
        {
          "endSeconds": 135.92,
          "startSeconds": 134.36,
          "text": "♪ (Give you up) ♪"
        },
        {
          "endSeconds": 141.08,
          "startSeconds": 136.76,
          "text": "♪ We've known each other\nfor so long ♪"
        },
        {
          "endSeconds": 145.2,
          "startSeconds": 141.2,
          "text": "♪ Your heart's been aching\nbut you're too shy to say it ♪"
        },
        {
          "endSeconds": 149.12,
          "startSeconds": 145.28,
          "text": "♪ Inside we both know\nwhat's been going ♪"
        },
        {
          "endSeconds": 153.2,
          "startSeconds": 149.52,
          "text": "♪ We know the game\nand we're gonna play it ♪"
        },
        {
          "endSeconds": 158.04,
          "startSeconds": 153.36,
          "text": "♪ I just wanna tell you\nhow I'm feeling ♪"
        },
        {
          "endSeconds": 161.32,
          "startSeconds": 158.64,
          "text": "♪ Gotta make you understand ♪"
        },
        {
          "endSeconds": 163.36,
          "startSeconds": 161.4,
          "text": "♪ Never gonna give you up ♪"
        },
        {
          "endSeconds": 165.64,
          "startSeconds": 163.44,
          "text": "♪ Never gonna let you down ♪"
        },
        {
          "endSeconds": 169.72,
          "startSeconds": 165.72,
          "text": "♪ Never gonna run around\nand desert you ♪"
        },
        {
          "endSeconds": 171.64,
          "startSeconds": 169.8,
          "text": "♪ Never gonna make you cry ♪"
        },
        {
          "endSeconds": 173.96,
          "startSeconds": 171.8,
          "text": "♪ Never gonna say goodbye ♪"
        },
        {
          "endSeconds": 177.6,
          "startSeconds": 174.04,
          "text": "♪ Never gonna tell a lie\nand hurt you ♪"
        },
        {
          "endSeconds": 180.24,
          "startSeconds": 178.2,
          "text": "♪ Never gonna give you up ♪"
        },
        {
          "endSeconds": 182.44,
          "startSeconds": 180.32,
          "text": "♪ Never gonna let you down ♪"
        },
        {
          "endSeconds": 186.64,
          "startSeconds": 182.52,
          "text": "♪ Never gonna run around\nand desert you ♪"
        },
        {
          "endSeconds": 188.72,
          "startSeconds": 186.72,
          "text": "♪ Never gonna make you cry ♪"
        },
        {
          "endSeconds": 190.72,
          "startSeconds": 188.84,
          "text": "♪ Never gonna say goodbye ♪"
        },
        {
          "endSeconds": 195.2,
          "startSeconds": 190.84,
          "text": "♪ Never gonna tell a lie\nand hurt you ♪"
        },
        {
          "endSeconds": 197.12,
          "startSeconds": 195.28,
          "text": "♪ Never gonna give you up ♪"
        },
        {
          "endSeconds": 199.24,
          "startSeconds": 197.2,
          "text": "♪ Never gonna let you down ♪"
        },
        {
          "endSeconds": 203.12,
          "startSeconds": 199.4,
          "text": "♪ Never gonna run around\nand desert you ♪"
        },
        {
          "endSeconds": 205.6,
          "startSeconds": 203.36,
          "text": "♪ Never gonna make you cry ♪"
        },
        {
          "endSeconds": 207.84,
          "startSeconds": 205.68,
          "text": "♪ Never gonna say goodbye ♪"
        },
        {
          "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"
  }
}

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Only requests matching a listed pricing variant are accepted. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Variant · 指定来源且关闭回退时的原厂基础费$0.003000Request conditionsselected_source eq ["anonymous-badger-464a3e49"] AND allow_fallbacks eq false—

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.003000.

Pricing parameters and defaults
[
  {
    "default": [
      "anonymous-badger-464a3e49"
    ],
    "id": "selected_source",
    "location": "body",
    "pointer": "/source",
    "required": false,
    "type": "array"
  },
  {
    "default": false,
    "id": "allow_fallbacks",
    "location": "body",
    "pointer": "/allowFallbacks",
    "required": false,
    "type": "boolean"
  }
]

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# 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.
## Available implementations
anyapi · YouTube Video Transcript (Provenance): https://openany.si/markets/apis/capabilities/youtube-video-transcript-provenance?offering=c2a92164-8ed8-444d-b226-80c8f9ccb7cc · $0.003 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/youtube-video-transcript-provenance
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/anyapi/v1/run/youtube.video_transcript_full
Price: $0.003 / call
Provider: anyapi
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/youtube.video_transcript_full' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "YouTube Video Transcript (Provenance)",
  "endpoint": "https://api.openany.si/v1/agent-apis/anyapi/v1/run/youtube.video_transcript_full",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "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.",
      "location": "query",
      "name": "fields",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "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.",
      "location": "query",
      "minimum": "0",
      "name": "max_items",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "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.",
      "location": "query",
      "name": "summary",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "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.",
      "location": "query",
      "name": "jq",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "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.",
      "location": "query",
      "name": "max_cost_usd",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "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.",
      "location": "header",
      "max_length": 255,
      "min_length": 1,
      "name": "Idempotency-Key",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "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.",
      "location": "body",
      "name": "allowFallbacks",
      "nullable": false,
      "pointer": "/allowFallbacks",
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Which caption track to accept: \"manual\" only creator-written captions, \"automatic\" only YouTube's speech recognition, \"any\" whichever exists.",
      "enum_values": [
        "manual",
        "automatic",
        "any"
      ],
      "location": "body",
      "name": "captionKind",
      "nullable": false,
      "pointer": "/captionKind",
      "required": false,
      "type": "string"
    },
    {
      "description": "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.",
      "item_type": "string",
      "location": "body",
      "name": "ignoreSources",
      "nullable": false,
      "pointer": "/ignoreSources",
      "required": false,
      "type": "array"
    },
    {
      "description": "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.",
      "location": "body",
      "name": "language",
      "nullable": false,
      "pointer": "/language",
      "required": false,
      "type": "string"
    },
    {
      "description": "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.",
      "location": "body",
      "minimum": "1",
      "name": "preferLatencyUnderMs",
      "nullable": false,
      "pointer": "/preferLatencyUnderMs",
      "required": false,
      "type": "integer"
    },
    {
      "description": "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.",
      "item_type": "string",
      "location": "body",
      "name": "requireFields",
      "nullable": false,
      "pointer": "/requireFields",
      "required": false,
      "type": "array"
    },
    {
      "description": "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`.",
      "item_type": "string",
      "location": "body",
      "name": "source",
      "nullable": false,
      "pointer": "/source",
      "required": false,
      "type": "array"
    },
    {
      "description": "YouTube video or Short URL (e.g. \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" or \"https://www.youtube.com/shorts/Fir1x9cw2vg\").",
      "location": "body",
      "min_length": 1,
      "name": "url",
      "nullable": false,
      "pointer": "/url",
      "required": true,
      "type": "string"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "rules",
    "parameters": [
      {
        "default": [
          "anonymous-badger-464a3e49"
        ],
        "id": "selected_source",
        "location": "body",
        "pointer": "/source",
        "required": false,
        "type": "array"
      },
      {
        "default": false,
        "id": "allow_fallbacks",
        "location": "body",
        "pointer": "/allowFallbacks",
        "required": false,
        "type": "boolean"
      }
    ],
    "policy_version": 2,
    "sale": {
      "addons": [],
      "base_price_micro_usd": "3001",
      "max_cost_micro_usd": "3000",
      "quantities": [],
      "rounding": "ceil",
      "variants": [
        {
          "id": "selected_source_only",
          "label": "指定来源且关闭回退时的原厂基础费",
          "price_micro_usd": "3000",
          "when": [
            {
              "op": "eq",
              "parameter": "selected_source",
              "value": [
                "anonymous-badger-464a3e49"
              ]
            },
            {
              "op": "eq",
              "parameter": "allow_fallbacks",
              "value": false
            }
          ]
        }
      ]
    }
  },
  "examples": [
    {
      "http_status": 200,
      "name": "youtube",
      "request": {
        "body": {
          "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "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",
            "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“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.\n\nThe 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.\n\nSubscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID\n\nFollow Rick Astley:\nFacebook: https://RickAstley.lnk.to/FBFollowID \nTwitter: https://RickAstley.lnk.to/TwitterID \nInstagram: https://RickAstley.lnk.to/InstagramID \nWebsite: https://RickAstley.lnk.to/storeID \nTikTok: https://RickAstley.lnk.to/TikTokID\n\nListen to Rick Astley:\nSpotify: https://RickAstley.lnk.to/SpotifyID \nApple Music: https://RickAstley.lnk.to/AppleMusicID \nAmazon Music: https://RickAstley.lnk.to/AmazonMusicID \nDeezer: https://RickAstley.lnk.to/DeezerID \n\nLyrics:\nWe’re no strangers to love\nYou know the rules and so do I\nA full commitment’s what I’m thinking of\nYou wouldn’t get this from any other guy\n\nI just wanna tell you how I’m feeling\nGotta make you understand\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\nWe’ve known each other for so long\nYour heart’s been aching but you’re too shy to say it\nInside we both know what’s been going on\nWe know the game and we’re gonna play it\n\nAnd if you ask me how I’m feeling\nDon’t tell me you’re too blind to see\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\n#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": [
              {
                "endSeconds": 3.04,
                "startSeconds": 1.36,
                "text": "[♪♪♪]"
              },
              {
                "endSeconds": 21.88,
                "startSeconds": 18.64,
                "text": "♪ We're no strangers to love ♪"
              },
              {
                "endSeconds": 26.96,
                "startSeconds": 22.64,
                "text": "♪ You know the rules\nand so do I ♪"
              },
              {
                "endSeconds": 31.04,
                "startSeconds": 27.04,
                "text": "♪ A full commitment's\nwhat I'm thinking of ♪"
              },
              {
                "endSeconds": 35.08,
                "startSeconds": 31.12,
                "text": "♪ You wouldn't get this\nfrom any other guy ♪"
              },
              {
                "endSeconds": 39.52,
                "startSeconds": 35.16,
                "text": "♪ I just wanna tell you\nhow I'm feeling ♪"
              },
              {
                "endSeconds": 42.92,
                "startSeconds": 40.52,
                "text": "♪ Gotta make you understand ♪"
              },
              {
                "endSeconds": 45.12,
                "startSeconds": 43,
                "text": "♪ Never gonna give you up ♪"
              },
              {
                "endSeconds": 47.08,
                "startSeconds": 45.2,
                "text": "♪ Never gonna let you down ♪"
              },
              {
                "endSeconds": 51.12,
                "startSeconds": 47.32,
                "text": "♪ Never gonna run around\nand desert you ♪"
              },
              {
                "endSeconds": 53.48,
                "startSeconds": 51.48,
                "text": "♪ Never gonna make you cry ♪"
              },
              {
                "endSeconds": 55.52,
                "startSeconds": 53.6,
                "text": "♪ Never gonna say goodbye ♪"
              },
              {
                "endSeconds": 59.36,
                "startSeconds": 55.72,
                "text": "♪ Never gonna tell a lie\nand hurt you ♪"
              },
              {
                "endSeconds": 64.8,
                "startSeconds": 60.8,
                "text": "♪ We've known each other\nfor so long ♪"
              },
              {
                "endSeconds": 69.04,
                "startSeconds": 64.88,
                "text": "♪ Your heart's been aching\nbut you're too shy to say it ♪"
              },
              {
                "endSeconds": 72.96,
                "startSeconds": 69.12,
                "text": "♪ Inside we both know\nwhat's been going ♪"
              },
              {
                "endSeconds": 77.2,
                "startSeconds": 73.36,
                "text": "♪ We know the game\nand we're gonna play it ♪"
              },
              {
                "endSeconds": 82.04,
                "startSeconds": 77.4,
                "text": "♪ And if you ask me\nhow I'm feeling ♪"
              },
              {
                "endSeconds": 85.24,
                "startSeconds": 82.4,
                "text": "♪ Don't tell me\nyou're too blind to see ♪"
              },
              {
                "endSeconds": 87.28,
                "startSeconds": 85.32,
                "text": "♪ Never gonna give you up ♪"
              },
              {
                "endSeconds": 89.32,
                "startSeconds": 87.36,
                "text": "♪ Never gonna let you down ♪"
              },
              {
                "endSeconds": 93.72,
                "startSeconds": 89.44,
                "text": "♪ Never gonna run around\nand desert you ♪"
              },
              {
                "endSeconds": 95.6,
                "startSeconds": 93.8,
                "text": "♪ Never gonna make you cry ♪"
              },
              {
                "endSeconds": 98,
                "startSeconds": 95.76,
                "text": "♪ Never gonna say goodbye ♪"
              },
              {
                "endSeconds": 102.04,
                "startSeconds": 98.08,
                "text": "♪ Never gonna tell a lie\nand hurt you ♪"
              },
              {
                "endSeconds": 104.12,
                "startSeconds": 102.2,
                "text": "♪ Never gonna give you up ♪"
              },
              {
                "endSeconds": 106.36,
                "startSeconds": 104.28,
                "text": "♪ Never gonna let you down ♪"
              },
              {
                "endSeconds": 110.08,
                "startSeconds": 106.48,
                "text": "♪ Never gonna run around\nand desert you ♪"
              },
              {
                "endSeconds": 112.72,
                "startSeconds": 110.76,
                "text": "♪ Never gonna make you cry ♪"
              },
              {
                "endSeconds": 114.68,
                "startSeconds": 112.8,
                "text": "♪ Never gonna say goodbye ♪"
              },
              {
                "endSeconds": 118.76,
                "startSeconds": 114.96,
                "text": "♪ Never gonna tell a lie\nand hurt you ♪"
              },
              {
                "endSeconds": 122.96,
                "startSeconds": 119.84,
                "text": "♪ (Ooh, give you up) ♪"
              },
              {
                "endSeconds": 127.36,
                "startSeconds": 123.72,
                "text": "♪ (Ooh, give you up) ♪"
              },
              {
                "endSeconds": 130.12,
                "startSeconds": 128.48,
                "text": "♪ Never gonna give,\nnever gonna give ♪"
              },
              {
                "endSeconds": 131.56,
                "startSeconds": 130.24,
                "text": "♪ (Give you up) ♪"
              },
              {
                "endSeconds": 134.24,
                "startSeconds": 132.48,
                "text": "♪ Never gonna give,\nnever gonna give ♪"
              },
              {
                "endSeconds": 135.92,
                "startSeconds": 134.36,
                "text": "♪ (Give you up) ♪"
              },
              {
                "endSeconds": 141.08,
                "startSeconds": 136.76,
                "text": "♪ We've known each other\nfor so long ♪"
              },
              {
                "endSeconds": 145.2,
                "startSeconds": 141.2,
                "text": "♪ Your heart's been aching\nbut you're too shy to say it ♪"
              },
              {
                "endSeconds": 149.12,
                "startSeconds": 145.28,
                "text": "♪ Inside we both know\nwhat's been going ♪"
              },
              {
                "endSeconds": 153.2,
                "startSeconds": 149.52,
                "text": "♪ We know the game\nand we're gonna play it ♪"
              },
              {
                "endSeconds": 158.04,
                "startSeconds": 153.36,
                "text": "♪ I just wanna tell you\nhow I'm feeling ♪"
              },
              {
                "endSeconds": 161.32,
                "startSeconds": 158.64,
                "text": "♪ Gotta make you understand ♪"
              },
              {
                "endSeconds": 163.36,
                "startSeconds": 161.4,
                "text": "♪ Never gonna give you up ♪"
              },
              {
                "endSeconds": 165.64,
                "startSeconds": 163.44,
                "text": "♪ Never gonna let you down ♪"
              },
              {
                "endSeconds": 169.72,
                "startSeconds": 165.72,
                "text": "♪ Never gonna run around\nand desert you ♪"
              },
              {
                "endSeconds": 171.64,
                "startSeconds": 169.8,
                "text": "♪ Never gonna make you cry ♪"
              },
              {
                "endSeconds": 173.96,
                "startSeconds": 171.8,
                "text": "♪ Never gonna say goodbye ♪"
              },
              {
                "endSeconds": 177.6,
                "startSeconds": 174.04,
                "text": "♪ Never gonna tell a lie\nand hurt you ♪"
              },
              {
                "endSeconds": 180.24,
                "startSeconds": 178.2,
                "text": "♪ Never gonna give you up ♪"
              },
              {
                "endSeconds": 182.44,
                "startSeconds": 180.32,
                "text": "♪ Never gonna let you down ♪"
              },
              {
                "endSeconds": 186.64,
                "startSeconds": 182.52,
                "text": "♪ Never gonna run around\nand desert you ♪"
              },
              {
                "endSeconds": 188.72,
                "startSeconds": 186.72,
                "text": "♪ Never gonna make you cry ♪"
              },
              {
                "endSeconds": 190.72,
                "startSeconds": 188.84,
                "text": "♪ Never gonna say goodbye ♪"
              },
              {
                "endSeconds": 195.2,
                "startSeconds": 190.84,
                "text": "♪ Never gonna tell a lie\nand hurt you ♪"
              },
              {
                "endSeconds": 197.12,
                "startSeconds": 195.28,
                "text": "♪ Never gonna give you up ♪"
              },
              {
                "endSeconds": 199.24,
                "startSeconds": 197.2,
                "text": "♪ Never gonna let you down ♪"
              },
              {
                "endSeconds": 203.12,
                "startSeconds": 199.4,
                "text": "♪ Never gonna run around\nand desert you ♪"
              },
              {
                "endSeconds": 205.6,
                "startSeconds": 203.36,
                "text": "♪ Never gonna make you cry ♪"
              },
              {
                "endSeconds": 207.84,
                "startSeconds": 205.68,
                "text": "♪ Never gonna say goodbye ♪"
              },
              {
                "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"
        }
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

youtube

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 14

    Review these request fields before running. Keep the published provider and request method unchanged.

    fields
    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.
    max_items
    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.
    summary
    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.
    jq
    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.
    max_cost_usd
    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.
    Idempotency-Key
    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.
    allowFallbacks
    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.
    captionKind
    Which caption track to accept: "manual" only creator-written captions, "automatic" only YouTube's speech recognition, "any" whichever exists.
    ignoreSources
    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.
    language
    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.
    preferLatencyUnderMs
    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
    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
    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`.
    url
    YouTube video or Short URL (e.g. "https://www.youtube.com/watch?v=dQw4w9WgXcQ" or "https://www.youtube.com/shorts/Fir1x9cw2vg").
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/anyapi/v1/run/youtube.video_transcript_full' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    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",
          "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“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.\n\nThe 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.\n\nSubscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID\n\nFollow Rick Astley:\nFacebook: https://RickAstley.lnk.to/FBFollowID \nTwitter: https://RickAstley.lnk.to/TwitterID \nInstagram: https://RickAstley.lnk.to/InstagramID \nWebsite: https://RickAstley.lnk.to/storeID \nTikTok: https://RickAstley.lnk.to/TikTokID\n\nListen to Rick Astley:\nSpotify: https://RickAstley.lnk.to/SpotifyID \nApple Music: https://RickAstley.lnk.to/AppleMusicID \nAmazon Music: https://RickAstley.lnk.to/AmazonMusicID \nDeezer: https://RickAstley.lnk.to/DeezerID \n\nLyrics:\nWe’re no strangers to love\nYou know the rules and so do I\nA full commitment’s what I’m thinking of\nYou wouldn’t get this from any other guy\n\nI just wanna tell you how I’m feeling\nGotta make you understand\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\nWe’ve known each other for so long\nYour heart’s been aching but you’re too shy to say it\nInside we both know what’s been going on\nWe know the game and we’re gonna play it\n\nAnd if you ask me how I’m feeling\nDon’t tell me you’re too blind to see\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\n#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": [
            {
              "endSeconds": 3.04,
              "startSeconds": 1.36,
              "text": "[♪♪♪]"
            },
            {
              "endSeconds": 21.88,
              "startSeconds": 18.64,
              "text": "♪ We're no strangers to love ♪"
            },
            {
              "endSeconds": 26.96,
              "startSeconds": 22.64,
              "text": "♪ You know the rules\nand so do I ♪"
            },
            {
              "endSeconds": 31.04,
              "startSeconds": 27.04,
              "text": "♪ A full commitment's\nwhat I'm thinking of ♪"
            },
            {
              "endSeconds": 35.08,
              "startSeconds": 31.12,
              "text": "♪ You wouldn't get this\nfrom any other guy ♪"
            },
            {
              "endSeconds": 39.52,
              "startSeconds": 35.16,
              "text": "♪ I just wanna tell you\nhow I'm feeling ♪"
            },
            {
              "endSeconds": 42.92,
              "startSeconds": 40.52,
              "text": "♪ Gotta make you understand ♪"
            },
            {
              "endSeconds": 45.12,
              "startSeconds": 43,
              "text": "♪ Never gonna give you up ♪"
            },
            {
              "endSeconds": 47.08,
              "startSeconds": 45.2,
              "text": "♪ Never gonna let you down ♪"
            },
            {
              "endSeconds": 51.12,
              "startSeconds": 47.32,
              "text": "♪ Never gonna run around\nand desert you ♪"
            },
            {
              "endSeconds": 53.48,
              "startSeconds": 51.48,
              "text": "♪ Never gonna make you cry ♪"
            },
            {
              "endSeconds": 55.52,
              "startSeconds": 53.6,
              "text": "♪ Never gonna say goodbye ♪"
            },
            {
              "endSeconds": 59.36,
              "startSeconds": 55.72,
              "text": "♪ Never gonna tell a lie\nand hurt you ♪"
            },
            {
              "endSeconds": 64.8,
              "startSeconds": 60.8,
              "text": "♪ We've known each other\nfor so long ♪"
            },
            {
              "endSeconds": 69.04,
              "startSeconds": 64.88,
              "text": "♪ Your heart's been aching\nbut you're too shy to say it ♪"
            },
            {
              "endSeconds": 72.96,
              "startSeconds": 69.12,
              "text": "♪ Inside we both know\nwhat's been going ♪"
            },
            {
              "endSeconds": 77.2,
              "startSeconds": 73.36,
              "text": "♪ We know the game\nand we're gonna play it ♪"
            },
            {
              "endSeconds": 82.04,
              "startSeconds": 77.4,
              "text": "♪ And if you ask me\nhow I'm feeling ♪"
            },
            {
              "endSeconds": 85.24,
              "startSeconds": 82.4,
              "text": "♪ Don't tell me\nyou're too blind to see ♪"
            },
            {
              "endSeconds": 87.28,
              "startSeconds": 85.32,
              "text": "♪ Never gonna give you up ♪"
            },
            {
              "endSeconds": 89.32,
              "startSeconds": 87.36,
              "text": "♪ Never gonna let you down ♪"
            },
            {
              "endSeconds": 93.72,
              "startSeconds": 89.44,
              "text": "♪ Never gonna run around\nand desert you ♪"
            },
            {
              "endSeconds": 95.6,
              "startSeconds": 93.8,
              "text": "♪ Never gonna make you cry ♪"
            },
            {
              "endSeconds": 98,
              "startSeconds": 95.76,
              "text": "♪ Never gonna say goodbye ♪"
            },
            {
              "endSeconds": 102.04,
              "startSeconds": 98.08,
              "text": "♪ Never gonna tell a lie\nand hurt you ♪"
            },
            {
              "endSeconds": 104.12,
              "startSeconds": 102.2,
              "text": "♪ Never gonna give you up ♪"
            },
            {
              "endSeconds": 106.36,
              "startSeconds": 104.28,
              "text": "♪ Never gonna let you down ♪"
            },
            {
              "endSeconds": 110.08,
              "startSeconds": 106.48,
              "text": "♪ Never gonna run around\nand desert you ♪"
            },
            {
              "endSeconds": 112.72,
              "startSeconds": 110.76,
              "text": "♪ Never gonna make you cry ♪"
            },
            {
              "endSeconds": 114.68,
              "startSeconds": 112.8,
              "text": "♪ Never gonna say goodbye ♪"
            },
            {
              "endSeconds": 118.76,
              "startSeconds": 114.96,
              "text": "♪ Never gonna tell a lie\nand hurt you ♪"
            },
            {
              "endSeconds": 122.96,
              "startSeconds": 119.84,
              "text": "♪ (Ooh, give you up) ♪"
            },
            {
              "endSeconds": 127.36,
              "startSeconds": 123.72,
              "text": "♪ (Ooh, give you up) ♪"
            },
            {
              "endSeconds": 130.12,
              "startSeconds": 128.48,
              "text": "♪ Never gonna give,\nnever gonna give ♪"
            },
            {
              "endSeconds": 131.56,
              "startSeconds": 130.24,
              "text": "♪ (Give you up) ♪"
            },
            {
              "endSeconds": 134.24,
              "startSeconds": 132.48,
              "text": "♪ Never gonna give,\nnever gonna give ♪"
            },
            {
              "endSeconds": 135.92,
              "startSeconds": 134.36,
              "text": "♪ (Give you up) ♪"
            },
            {
              "endSeconds": 141.08,
              "startSeconds": 136.76,
              "text": "♪ We've known each other\nfor so long ♪"
            },
            {
              "endSeconds": 145.2,
              "startSeconds": 141.2,
              "text": "♪ Your heart's been aching\nbut you're too shy to say it ♪"
            },
            {
              "endSeconds": 149.12,
              "startSeconds": 145.28,
              "text": "♪ Inside we both know\nwhat's been going ♪"
            },
            {
              "endSeconds": 153.2,
              "startSeconds": 149.52,
              "text": "♪ We know the game\nand we're gonna play it ♪"
            },
            {
              "endSeconds": 158.04,
              "startSeconds": 153.36,
              "text": "♪ I just wanna tell you\nhow I'm feeling ♪"
            },
            {
              "endSeconds": 161.32,
              "startSeconds": 158.64,
              "text": "♪ Gotta make you understand ♪"
            },
            {
              "endSeconds": 163.36,
              "startSeconds": 161.4,
              "text": "♪ Never gonna give you up ♪"
            },
            {
              "endSeconds": 165.64,
              "startSeconds": 163.44,
              "text": "♪ Never gonna let you down ♪"
            },
            {
              "endSeconds": 169.72,
              "startSeconds": 165.72,
              "text": "♪ Never gonna run around\nand desert you ♪"
            },
            {
              "endSeconds": 171.64,
              "startSeconds": 169.8,
              "text": "♪ Never gonna make you cry ♪"
            },
            {
              "endSeconds": 173.96,
              "startSeconds": 171.8,
              "text": "♪ Never gonna say goodbye ♪"
            },
            {
              "endSeconds": 177.6,
              "startSeconds": 174.04,
              "text": "♪ Never gonna tell a lie\nand hurt you ♪"
            },
            {
              "endSeconds": 180.24,
              "startSeconds": 178.2,
              "text": "♪ Never gonna give you up ♪"
            },
            {
              "endSeconds": 182.44,
              "startSeconds": 180.32,
              "text": "♪ Never gonna let you down ♪"
            },
            {
              "endSeconds": 186.64,
              "startSeconds": 182.52,
              "text": "♪ Never gonna run around\nand desert you ♪"
            },
            {
              "endSeconds": 188.72,
              "startSeconds": 186.72,
              "text": "♪ Never gonna make you cry ♪"
            },
            {
              "endSeconds": 190.72,
              "startSeconds": 188.84,
              "text": "♪ Never gonna say goodbye ♪"
            },
            {
              "endSeconds": 195.2,
              "startSeconds": 190.84,
              "text": "♪ Never gonna tell a lie\nand hurt you ♪"
            },
            {
              "endSeconds": 197.12,
              "startSeconds": 195.28,
              "text": "♪ Never gonna give you up ♪"
            },
            {
              "endSeconds": 199.24,
              "startSeconds": 197.2,
              "text": "♪ Never gonna let you down ♪"
            },
            {
              "endSeconds": 203.12,
              "startSeconds": 199.4,
              "text": "♪ Never gonna run around\nand desert you ♪"
            },
            {
              "endSeconds": 205.6,
              "startSeconds": 203.36,
              "text": "♪ Never gonna make you cry ♪"
            },
            {
              "endSeconds": 207.84,
              "startSeconds": 205.68,
              "text": "♪ Never gonna say goodbye ♪"
            },
            {
              "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"
      }
    }

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.