Developers · Included with Ripify PRO

Ripify Video Downloader API

Everything the Ripify downloader does, from your own code: send a link from YouTube, TikTok, Instagram, X, Reddit or any of the 500+ supported sites, get back the title, thumbnail, length and every available format with a ready-to-use download link.

Quick answer

The Ripify API is a REST API included with Ripify PRO. Send a link from YouTube, TikTok, Instagram or 500+ other sites to /api/v1/extract with your key as a Bearer token to get the title, thumbnail and every format with a download link. Limits: 20 extracts a minute (500 a day) and 10 downloads a minute (250 a day).

Overview

Authentication

Create a key on your account page (up to 5 per account). Keys start with rpf_ and are shown once; we only store a hash, so if you lose one, revoke it and create another. Send it on every request:

Authorization: Bearer rpf_your_key_here

Keys are not accepted in the query string. Keep them on your server: don't put them in browser or mobile app code, and revoke a key straight away if it leaks. The account page shows when each key was last used.

Extract media from a link

GET  https://ripify.co/api/v1/extract?url=<page link>
POST https://ripify.co/api/v1/extract        {"url": "<page link>"}

Pass the link exactly as you would paste it on ripify.co (share links, short links and embed codes work too). Extraction usually takes 1 to 10 seconds and can take up to about a minute for slow sites, so use a generous client timeout (90 s).

200 OK
{
  "success": true,
  "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "platform": "youtube",
  "title": "Me at the zoo",
  "isPlaylist": false,
  "itemCount": 1,
  "linksExpireAt": "2026-10-28T06:19:36.000Z",
  "items": [
    {
      "index": 0,
      "id": "jNQXAC9IVRw",
      "title": "Me at the zoo",
      "thumbnail": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg",
      "duration": 19,
      "sourceUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
      "mediaType": "video",
      "isLive": false,
      "description": "The first video on YouTube. While not the most exciting...",
      "author": "jawed",
      "uploadedAt": "2005-04-24T00:00:00.000Z",
      "formats": [
        {
          "id": "bv*[height<=240][ext=mp4]+ba[ext=m4a]/b[height<=240]",
          "ext": "mp4",
          "quality": "240p",
          "note": "240p",
          "filesize": 433081,
          "downloadUrl": "https://ripify.co/api/v1/download?url=...&format=...&s=...",
          "directUrl": null
        }
      ],
      "audio": [
        { "format": "mp3",  "ext": "mp3",  "downloadUrl": "https://ripify.co/api/v1/download?...&format=mp3&s=..." },
        { "format": "flac", "ext": "flac", "downloadUrl": "https://ripify.co/api/v1/download?...&format=flac&s=..." },
        { "format": "wav",  "ext": "wav",  "downloadUrl": "https://ripify.co/api/v1/download?...&format=wav&s=..." }
      ]
    }
  ]
}

Response fields

FieldDescription
platformSite id, such as youtube, tiktok, instagram.
isPlaylist, itemCountPlaylists, carousels and galleries return one entry per item in items.
linksExpireAtWhen the download links stop working: about 12 hours, or sooner when a link goes straight to a file whose own link on the source site expires first. Extract again for fresh ones. null if they don't expire.
items[].mediaTypevideo, image (photo posts and carousel photos, such as Instagram, Reddit and X) or file (direct file links). A carousel can mix photos and videos.
items[].durationLength in seconds, or null (images, files, live streams).
items[].descriptionThe post's full caption or description (up to 5,000 characters), or null. Use it when title is cut short (TikTok titles stop at about 70 characters) or generic (Instagram's "Video by <user>").
items[].author, items[].uploadedAtWho posted it (the name or handle the site gives) and when, as an ISO 8601 time. null when the site doesn't say. A time from a date alone is midnight UTC.
items[].formats[]Video (or file) formats, best first. quality is a label like 1080p; filesize is in bytes when known.
formats[].downloadUrlFetch it with your API key to get the file. Signed: don't change it.
formats[].directUrlThe file on the site's own CDN when it can be fetched directly, else null. Faster, but it may expire sooner or need a Referer of sourceUrl.
items[].audio[]Audio conversions (mp3 320k, flac, wav). Empty for files and images.

Download a file

GET https://ripify.co/api/v1/download?<parameters from downloadUrl>
Authorization: Bearer rpf_...

Request a downloadUrl as-is with the same header. The response is the file itself, with Content-Type and a Content-Disposition filename. Some formats are merged or converted on the fly, so Content-Length isn't always known in advance. Optional start and end parameters (seconds or mm:ss) trim the video, the same as the website's trimmer. Errors come back as JSON in the same shape as /extract.

Errors

Every error has an HTTP status and a stable code you can branch on:

{ "success": false, "error": { "code": "invalid_url", "message": "Please enter a complete and valid URL" } }

Branch on error.code, not the status. A failure at the source site is sent as 424 and a timeout as 503 (the X-Upstream-Status header has the gateway status, 502 or 504), so the JSON body always reaches you.

CodeStatusMeaning
missing_api_key401No Authorization: Bearer header.
invalid_api_key401The key doesn't exist or was revoked.
pro_required403The key's account has no active PRO plan (or the download needs PRO).
rate_limited429Too many requests for this key. Wait for Retry-After seconds.
missing_url400No url parameter or body field.
invalid_url400Not a complete, public http(s) link.
invalid_request400Malformed body or parameters.
prohibited_content403The link or its content is blocked under our Terms. Repeated attempts are logged.
extraction_failed422The site didn't return any downloadable media (private, removed, geo-blocked or unsupported).
timeout503The site took too long to answer. Try again later.
download_failed424The site refused or broke off the file, or its own server is failing (the message says why when known). Try again later or pick another format.
server_busy503Ripify is handling too many downloads at once. Wait for Retry-After seconds.
invalid_link403A download link was changed or didn't come from /extract.
link_expired403A download link is past linksExpireAt. Call /extract again.
not_found404The video, or the quality you asked for, is no longer at the source. Call /extract again or pick another format.
forbidden403The request isn't allowed.
internal_error500Something went wrong on our side. Retry with backoff.

Rate limits

Limits apply per account and are shared by all of its keys. Requests that are rejected for a bad key don't count.

EndpointPer minutePer 24 hours
/extract20500
/download10250

Every authenticated response carries the current state:

X-RateLimit-Limit / X-RateLimit-RemainingRequests allowed and left in the rolling minute.
X-RateLimit-ResetUnix time (seconds) when a slot in the minute window frees up.
X-RateLimit-Limit-Day / X-RateLimit-Remaining-Day / X-RateLimit-Reset-DayThe same for the rolling 24 hours.
Retry-AfterOn 429 only: seconds to wait.

Need more? Tell us what you're building through the contact form on the downloader page.

Examples

curl
# 1. Extract: get the title, formats and download links
# (-G with --data-urlencode encodes the link, so links containing & work too)
curl -sG "https://ripify.co/api/v1/extract" \
  --data-urlencode "url=https://www.youtube.com/watch?v=jNQXAC9IVRw" \
  -H "Authorization: Bearer $RIPIFY_API_KEY"

# Or POST a JSON body
curl -s -X POST "https://ripify.co/api/v1/extract" \
  -H "Authorization: Bearer $RIPIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"}'

# 2. Download: pass a downloadUrl from the response, with the same header
curl -L -o video.mp4 "<downloadUrl>" -H "Authorization: Bearer $RIPIFY_API_KEY"
JavaScript (Node.js)
// Node.js 18+ (built-in fetch). Keep the key on your server, never in browser code.
import { createWriteStream } from "node:fs";
import { Readable } from "node:stream";
import { pipeline } from "node:stream/promises";

const headers = { Authorization: `Bearer ${process.env.RIPIFY_API_KEY}` };

const res = await fetch(
  "https://ripify.co/api/v1/extract?url=" + encodeURIComponent("https://www.youtube.com/watch?v=jNQXAC9IVRw"),
  { headers }
);
const data = await res.json();
if (!data.success) throw new Error(`${data.error.code}: ${data.error.message}`);

const item = data.items[0];
const best = item.formats[0]; // formats are sorted best first
console.log(item.title, best.quality, "remaining this minute:", res.headers.get("X-RateLimit-Remaining"));

const file = await fetch(best.downloadUrl, { headers });
if (!file.ok) throw new Error((await file.json()).error.message);
await pipeline(Readable.fromWeb(file.body), createWriteStream(`video.${best.ext}`));
Python
# Python 3 with requests (pip install requests)
import os, requests

headers = {"Authorization": f"Bearer {os.environ['RIPIFY_API_KEY']}"}

r = requests.get(
    "https://ripify.co/api/v1/extract",
    params={"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"},
    headers=headers,
    timeout=90,
)
data = r.json()
if not data["success"]:
    raise SystemExit(f"{data['error']['code']}: {data['error']['message']}")

item = data["items"][0]
mp3 = next(a for a in item["audio"] if a["format"] == "mp3")  # audio needs PRO

with requests.get(mp3["downloadUrl"], headers=headers, stream=True, timeout=300) as dl:
    dl.raise_for_status()
    with open(f"{item['title']}.mp3", "wb") as f:
        for chunk in dl.iter_content(chunk_size=1 << 16):
            f.write(chunk)

Rules and privacy