Skip to content
Fourohtwo

YouTube transcript API for AI agents

agdata.shveik.dev/x402/youtube-transcript

YouTube transcript API for AI agents: send a video URL or 11-character id and get its published subtitles as timed JSON segments, plain text, SRT or WebVTT, with title, channel, duration, views and publish date. Choose one of ten subtitle languages or any. No speech-to-text. A video without subtitles in that language is not charged.

BasePolygonAnswering
POSThttps://agdata.shveik.dev/x402/youtube-transcript

Uptime100% of 1 check 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://agdata.shveik.dev/x402/youtube-transcript", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"format":"json","lang":"en","video":"dQw4w9WgXcQ"}),
});
console.log(await res.json());

Example input

{
  "format": "json",
  "lang": "en",
  "video": "dQw4w9WgXcQ"
}

More from agdataProvider status