G

glim.sh · Youtube GET

by glim.sh

POSTBaseSolanaMonad

$0.01

per call · USD Coin on Base

Fetch a YouTube transcript from a video URL or 11-char id (video_id, also accepted as ref or url); returns a presigned download URL to the transcript

Endpoint

POST https://glim.sh/api/v1/youtube/get

128

Calls / 30d

9

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://glim.sh/api/v1/youtube/get", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "language_code": "en",
    "origin": "uploader_provided",
    "video_id": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://glim.sh/api/v1/youtube/get" \
  -H "Content-Type: application/json" \
  -d '{"language_code":"en","origin":"uploader_provided","video_id":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "content_type": "text/vtt",
  "download_url": "https://...presigned...",
  "expires_at": "2026-04-21T13:00:00Z",
  "language_code": "en",
  "length_chars": 3500,
  "origin": "uploader_provided",
  "size_bytes": 4096,
  "video_id": "dQw4w9WgXcQ"
}

Payment details

Pay to0xc751344ee09b5159160173f77d4a1169bcd386a1
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Monad
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from glim.sh & similar services