Black FridayA full year of Eden for up to 50% off, until MondaySee the deal
Social data

Transcripts

Get the transcript of a YouTube, Instagram, TikTok, or Loom video from its link, plus any on-screen and slide text.

View as markdown

GET /v1/transcripts?url= with a video link returns its transcript. It works for YouTube, Instagram, TikTok, and Loom. Eden returns its stored copy first, and saves any new transcript for good.

GET https://api.eden.so/v1/transcripts?url={link}

Query

ParamRequiredWhat it is
urlYesThe full link to the video, starting with https://. URL-encode it.

Example

curl -G "https://api.eden.so/v1/transcripts" \
  --data-urlencode "url=https://www.youtube.com/watch?v=Xyz123AbC45" \
  -H "Authorization: Bearer $EDEN_API_KEY"
{
  "ok": true,
  "url": "https://www.youtube.com/watch?v=Xyz123AbC45",
  "platform": "youtube",
  "post_id": "sample-post-0",
  "language": "en",
  "duration_seconds": 540,
  "transcript": {
    "text": "Most people think they need more time to write. You need a system. Here is mine. Step one, I keep every idea in one place...",
    "status": "available",
    "truncated": false,
    "source": "cache"
  },
  "on_screen_text": { "text": null, "status": "not-supported" },
  "slide_text": { "text": null, "status": "not-supported", "truncated": false }
}

Fields

FieldWhat it is
urlThe link you sent.
platformyoutube, instagram, tiktok, or loom (for a video). Other platforms can answer too, see below.
post_idEden's id for the post. Use it with GET /v1/posts/{platform}/{id}. null for Loom.
languageThe post's language code, like en, when Eden knows it.
duration_secondsVideo length, when known.
transcript.textThe spoken words, or null.
transcript.statusavailable, not-supported, vendor-miss (no transcript could be made), fetch-disabled, or fetch-failed.
transcript.truncatedtrue when a very long transcript was cut short.
transcript.sourcecache when Eden already had it, live-fetch when it was just made.
on_screen_textText shown on screen in an Instagram reel or TikTok (hooks, captions, lists). status can also be scan-failed.
slide_textThe words on each slide of an Instagram carousel, as Slide 1: and so on.

Loom answers carry only url, platform, post_id, and transcript.

Good to know

  • Stored first. Eden checks its own copy before fetching. A transcript it fetches for you is saved for good, so the next call for that link comes back with "source": "cache".
  • Reels and TikToks are transcribed from the audio, so they work without captions.
  • First time for a link? The call can answer 202 with retry_after_seconds while Eden fetches the post. Wait, then call again. Waiting is free.
  • No words, no charge. If the video has no transcript, on-screen text, or slide text, the call is free. A call with words costs 0.1 credit, the same whether it came from the store or a fresh fetch.
  • Other links. X, LinkedIn, Threads, and Substack links work too, but those posts are text. Use GET /v1/posts?url= to get their words.
  • Any other link answers 422 with "status": "unsupported".

Errors

HTTPstatusWhen
202queuedEden is fetching the post for the first time.
404not-foundThe post is gone or private.
422invalidurl is missing or not a full link.
422unsupportedEden can't read this kind of link.

All errors are on the Errors page.