Skip to content
Fourohtwo

YouTube transcript API for AI agents

x402.tbs-digital.com/youtube/transcript

YouTube transcript API for AI agents: the spoken text of one public video from its original-language captions (manual in lang= if any, else the video's own track), as text, timestamped segments, SRT or VTT, with title, channel, duration, language. Query url=, optional lang=, format=. 0.01 USDC to 30 min, +0.005 per extra 30 min, max 0.05. Playlists: free index at /youtube/playlist. No captions: 40

BaseAnswering
GEThttps://x402.tbs-digital.com/youtube/transcript

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.tbs-digital.com/youtube/transcript?format=text&lang=en&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ");
console.log(await res.json());

Example input

{
  "format": "text",
  "lang": "en",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}