Skip to content
onelayer.
All tools

Tool detail

glim.sh

Fetches a YouTube video's transcript by URL or video ID and returns it inline or as a downloadable file.

Categories: Speech audio

Use when

  • get the transcript of a YouTube video
  • summarize a YouTube video from its captions
  • fetch auto-generated captions when human captions aren't available

Not for

  • videos with no captions available at all
  • downloading audio or video — this returns only the transcript

Inputs

POST JSON body: video_id (string, required — URL or 11-char id); format (inline|url), language_code, origin (uploader_provided|auto_generated) — all optional

Admitted input schema

{
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "inline",
        "url"
      ],
      "description": "'inline' (default): include the transcript in the response when it fits the inline cap; otherwise omit it and set transcript_omitted_reason. 'url': never include the transcript; caller fetches download_url. download_url is always present.",
      "default": "inline"
    },
    "language_code": {
      "type": "string",
      "minLength": 2,
      "maxLength": 10,
      "description": "ISO 639-1 language code (e.g. 'en', 'de', 'fr')",
      "default": "en"
    },
    "origin": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "uploader_provided",
        "auto_generated"
      ],
      "description": "'uploader_provided' for human captions (default), 'auto_generated' for YouTube auto-captions.",
      "default": "uploader_provided"
    },
    "video_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096,
      "description": "YouTube video URL or 11-char video id (e.g. https://youtu.be/dQw4w9WgXcQ, https://www.youtube.com/watch?v=dQw4w9WgXcQ, or dQw4w9WgXcQ). Also accepted as `ref` or `url`."
    }
  },
  "required": [
    "video_id"
  ],
  "additionalProperties": false,
  "description": "Input for POST /youtube/get"
}

Endpoint

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

Payment

Protocol
x402
Listed price
10000 units of USDC (Solana) per call; decimals not stated in record
Payment method
exact
Network
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Asset
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://glim.sh/api/v1/youtube/get
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z