Audio & video API

Audio & Video Transcription API

Send the link of a recording and get what is said in it as JSON: the full transcript, timed segments, the language and the length. Audio and video files on any host, podcast episodes from their feed, Apple Podcasts or Spotify link, and X, TikTok, Instagram, Facebook and Vimeo videos all work; you upload nothing.

  • 10 free credits
  • No card needed
  • No scraper to build or maintain
curl "https://pipefetch.com/v1/audio/transcribe?url=https%3A%2F%2Fgithub.com%2Fopenai%2Fwhisper%2Fraw%2Fmain%2Ftests%2Fjfk.flac&max_minutes=4" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • The full transcript, and the same text in timed segments (start and end in seconds)
  • The language, detected among about 100, or the one you name
  • The recording's length, how much of it was transcribed, and the opening line
  • Word count, words per minute and seconds of speech
  • For podcast episodes: the title, show, publication date and artwork, and the publisher's own transcript with speaker names when the feed has one
  • The audio or video file that was transcribed
200 OK · application/json
{
  "data": {
    "url": "https://github.com/openai/whisper/raw/main/tests/jfk.flac",
    "title": "jfk.flac",
    "transcript": "And so, my fellow Americans, ask not what your country can do for you. Ask what you can do for your country.",
    "language": "English",
    "transcriptSource": "speech_to_text",
    "durationSeconds": 11,
    "transcribedSeconds": 11,
    "truncated": false,
    "hook": "And so, my fellow Americans, ask not what your country can do for you.",
    "wordCount": 22,
    "wordsPerMinute": 139,
    "speechSeconds": 9.5,
    "segments": [
      {
        "start": 0.3,
        "end": 7.08,
        "text": "And so, my fellow Americans, ask not what your country can do for",
        "speaker": null
      },
      {
        "start": 7.08,
        "end": 7.42,
        "text": "you.",
        "speaker": null
      }
    ],
    "platform": "file",
    "author": null,
    "showTitle": null,
    "publishedAt": null,
    "thumbnailUrl": null,
    "mediaUrl": "https://github.com/openai/whisper/raw/main/tests/jfk.flac",
    "feedUrl": null,
    "itemId": null
  },
  "credits": {
    "used": 2,
    "remaining": 98
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

GET/v1/audio/transcribe

Costs 1 credit per 2 items requested. Only requests that return data are charged.

Parameters

NameTypeDescription
urlrequired string A public link: an audio or video file (.mp3, .m4a, .wav, .mp4, .m3u8 ...), a podcast episode (its file, an Apple Podcasts episode link with ?i=, a Spotify episode link, or a feed: its newest episode), or an X, TikTok, Instagram, Facebook or Vimeo video.
max_minutesoptional integer Transcribe at most this many minutes from the start of the recording. Every started 2 minutes allowed cost 1 credit, also when the recording is shorter. Default: 4. From 1 to 30.
languageoptional string The language spoken, as a two-letter code (en, es, de ...). Leave it out to detect the language; set it for short or noisy recordings.

Good to know

  • The price follows max_minutes: 1 credit per started 2 minutes, so 2 credits for the default 4 minutes and 15 credits for 30. A recording longer than max_minutes is transcribed from its start up to that length, and truncated is true.
  • Speech-to-text is Whisper large-v3 turbo, which recognises about 100 languages. segments are the transcript in timed lines (start and end in seconds); hook is the opening line.
  • A podcast episode whose feed carries the publisher's own transcript is answered from it (transcriptSource publisher), with the speakers it names.
  • A recording without speech (music only), without a sound track, a link that leads to no file, a deleted post, an encrypted (DRM) stream and a Spotify-only show answer 404 with a code that says which (no_speech, no_audio, not_found, no_media, drm_protected, spotify_only), and cost nothing. When a site refuses the request or speech-to-text is busy, the answer is 502 upstream_error, free and worth a retry.
  • YouTube links are refused before anything is charged: /v1/youtube/transcript reads YouTube's own captions.

Open the reference

Use cases

What people build with it

  • Podcast transcripts and show notes

    Turn each new episode into text for show notes, articles, newsletters and search.

  • Subtitles for short videos

    Get timed lines for a TikTok, a Reel or an X video and turn them into captions.

  • Meeting and lecture recordings

    Send the link of a recording on your own storage and get it back as text.

  • Audio for AI agents and RAG

    An agent that gets a link to a recording reads what is said in it in one call, with times to cite.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 1 credit per 2 items requested, and a request that returns no data costs nothing. Move the slider to see what your volume costs.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit

A request costs 1 credit. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $2.42 per 1,000 credits
  • About $12.08 a month at this pace
  • Lasts about 2.4 months at this pace
  • Credits never expire
Start with 10 free credits

See all packs and what a credit buys

FAQ

Questions and answers

Which links work?

Audio and video files that a browser could download without a login (MP3, M4A, WAV, FLAC, MP4, WebM, HLS playlists and more), podcast episode files, Apple Podcasts episode links, Spotify episode links of shows with a public feed, and posts on X, TikTok, Instagram, Facebook and Vimeo. A feed link transcribes its newest episode.

Does it work for YouTube?

No: YouTube links are refused before anything is charged. The YouTube Transcript API reads YouTube's own captions instead.

How long can a recording be?

Up to 30 minutes are transcribed per request, from the start: you set how much with max_minutes. A longer recording comes back with the first part and truncated set to true. For whole long podcasts, transcribe them on Apify, where files of several hours are handled.

How accurate is it?

It uses Whisper large-v3 turbo. Clear speech comes back with very few errors; music, crosstalk and strong accents lower the accuracy. Naming the language helps with short clips.

What if nobody speaks in the recording?

A recording with only music or silence answers 404 no_speech, one without a sound track 404 no_audio, and a link to nothing 404 not_found. None of them is charged.

What does a request cost?

A request costs 1 credit per started 2 minutes you allow with max_minutes: 2 credits for the default 4 minutes, 15 credits for 30. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no transcript is not charged. New accounts get 10 free credits without a card.

More

More Audio & video APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 10 free credits.