YouTube Transcript
youtube_transcriptFetch the transcript of a YouTube video (manual or auto-generated captions) as timestamped segments plus full text, with language preference and English fallback. Accepts a video id or any YouTube URL. No API key, no download. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"video_id": "<video_id>"
},
"name": "youtube_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | No | Your EVM wallet address (0x...). Unlocks the free tier (3 free calls per wallet). | |
| api_key | No | Optional AMR enterprise API key. | |
| language | No | Preferred caption language (default en). | en |
| video_id | Yes | 11-char video id or YouTube URL. | |
| x_payment | No | Optional signed x402 payment payload (base64 JSON) for USDC/USDT on Base. | |
| include_segments | No | Return timestamped segments (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| token | No | Token actually used for payment (USDC, USDT or FREE). | USDC |
| routing | Yes | How the request was routed (provider, fallback, cache, latency). | |
| language | Yes | ||
| segments | No | ||
| video_id | Yes | ||
| cost_usdc | Yes | Price charged in stablecoin units (USDC/USDT 1:1); 0 on the free tier. | |
| full_text | Yes | ||
| fetched_at | No | UTC timestamp when the data was fetched. | |
| word_count | Yes | ||
| is_generated | No | ||
| segment_count | Yes | ||
| duration_seconds | Yes | ||
| freshness_seconds | Yes | Age of the underlying data in seconds (0 = fetched live). | |
| x_payment_response | No | Base64-encoded x402 settlement receipt (mirrors the X-PAYMENT-RESPONSE header). Only present when the call was paid with `x_payment`. |