Fetch the transcript of any YouTube video
Fetch the transcript of any YouTube video. Pulls auto-generated or manual captions and returns full text plus per-segment {start, duration, text}, with an optional language pick. Backed by Supadata's transcript pipeline server-side — no caller key required; returns a clear 404 when a video has no transcript. Use it as a YouTube closed-caption fetcher or video subtitles puller.
10000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-26
updated
Provider
x402.agentutility.ai · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x6c0752c09e7F6fA6526fCDf40e456a159ebB5621",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "FJqAJ4dXkFbrp3EEo8E9x98iaBGUQwaU8Srz5ePfUXLH",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"discoverable": true,
"info": {
"input": {
"body": {
"video_id_or_url": "dQw4w9WgXcQ"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"channel": null,
"channel_id": null,
"chapters": null,
"char_count": 60,
"duration_seconds": null,
"is_auto_generated": null,
"language": "en",
"segment_count": 2,
"segments": [
{
"duration": 4.5,
"start": 0,
"text": "We're no strangers to love"
},
{
"duration": 4,
"start": 4.5,
"text": "You know the rules and so do I"
}
],
"source": "supadata",
"text": "We're no strangers to love. You know the rules and so do I.",
"title": null,
"video_id": "dQw4w9WgXcQ"
},
"type": "json"
}
},
"related": [
"/youtube-brief"
],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"include_chapters": {
"description": "Parse chapter timestamps from the video description. Default false.",
"type": "boolean"
},
"language": {
"description": "Preferred caption language code (e.g. 'en', 'es', 'ja'). Default: pick the first available.",
"type": "string"
},
"video_id_or_url": {
"description": "YouTube video ID (11-char) or full URL (youtube.com/watch?v=…, youtu.be/…, /embed/…, /shorts/…).",
"type": "string"
}
},
"required": [
"video_id_or_url"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"channel": {
"type": "null"
},
"channel_id": {
"type": "null"
},
"chapters": {
"type": "null"
},
"char_count": {
"type": "integer"
},
"duration_seconds": {
"type": "null"
},
"is_auto_generated": {
"type": "null"
},
"language": {
"type": "string"
},
"segment_count": {
"type": "integer"
},
"segments": {
"items": {
"properties": {
"duration": {
"type": "number"
},
"start": {
"type": "number"
},
"text": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"source": {
"type": "string"
},
"text": {
"type": "string"
},
"title": {
"type": "null"
},
"video_id": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"builder-code": {
"info": {
"a": "bc_awpbwsy3"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"a": {
"description": "App builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"s": {
"description": "Service builder codes",
"items": {
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"type": "array"
},
"w": {
"description": "Wallet builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
}
},
"type": "object"
}
}
}Use it
curl
curl "https://x402.agentutility.ai/youtube-transcript" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.agentutility.ai/youtube-transcript");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402.agentutility.ai/youtube-transcript")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5231.json, and this resource appears in /discovery/resources and /discovery/search.