ToolAssay

YouTube transcript API for AI agents

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: 404, not charged.

Answeringour last check, 2026-11-26
5 of 5checks answered this week
306 msmedian answer time
$0.01listed price per call
$0.01price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://x402.tbs-digital.com/youtube/transcript

CategoryImage and media
Provider hostx402.tbs-digital.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days2 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.01 300 ms
2026-11-25 valid payment request 402$0.01 306 ms
2026-11-24 valid payment request 402$0.01 287 ms
2026-11-23 valid payment request 402$0.01 308 ms
2026-11-22 valid payment request 402$0.01 315 ms

Example input (from the provider)

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

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "format": {
              "description": "text (default), timestamped (raw segments), srt or vtt (normalized: cues starting together merged, each end cut at the next cue start)",
              "type": "string"
            },
            "lang": {
              "description": "Preferred language among the ORIGINAL caption tracks, e.g. en, fr, pt-BR (default en): a manual track in it if the video has one, else the video's own original track (language says which). Machine translations are never served",
              "type": "string"
            },
            "url": {
              "description": "YouTube video URL (watch, youtu.be, shorts, embed, live) or the 11-character id. One video per call; for a playlist read GET /youtube/playlist (free)",
              "type": "string"
            }
          },
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "format": {
              "type": "string"
            },
            "generated_at": {
              "type": "string"
            },
            "language": {
              "description": "Language DELIVERED (the original track when no manual track exists in the requested language)",
              "type": "string"
            },
            "language_note": {
              "description": "Present only when language differs from requested_language: why",
              "type": "string"
            },
            "payer": {
              "properties": {
                "address": {
                  "nullable": true,
                  "type": "string"
                },
                "network": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "request_id": {
              "type": "string"
            },
            "requested_language": {
              "description": "The lang= of the request",
              "type": "string"
            },
            "route": {
              "description": "Present only when the text came from the YouTube transcript panel: coarser segments (about 8 s each) than a caption file; title, channel, duration, language and track type are the same",
              "enum": [
                "panel"
              ],
              "type": "string"
            },
            "source": {
              "type": "string"
            },
            "transcript": {
              "description": "string for format=text, srt or vtt; array of {start_s, end_s, text} for timestamped"
            },
            "video": {
              "type": "object"
            },
            "word_count": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON