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
- Base URL:
https://ripify.co/api/v1. JSON responses, HTTPS only. - Two calls:
/extractturns a page link into metadata and download links, and/downloadstreams one of those links as a file. - Same rules as the website: the same supported sites, the same quality, and audio (MP3, FLAC, WAV) and full playlists for PRO.
- The API is part of Ripify PRO. Keys stop working when the plan ends and work again when it's renewed.
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_hereKeys 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).
{
"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
| Field | Description |
|---|---|
platform | Site id, such as youtube, tiktok, instagram. |
isPlaylist, itemCount | Playlists, carousels and galleries return one entry per item in items. |
linksExpireAt | When 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[].mediaType | video, 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[].duration | Length in seconds, or null (images, files, live streams). |
items[].description | The 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[].uploadedAt | Who 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[].downloadUrl | Fetch it with your API key to get the file. Signed: don't change it. |
formats[].directUrl | The 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.
| Code | Status | Meaning |
|---|---|---|
missing_api_key | 401 | No Authorization: Bearer header. |
invalid_api_key | 401 | The key doesn't exist or was revoked. |
pro_required | 403 | The key's account has no active PRO plan (or the download needs PRO). |
rate_limited | 429 | Too many requests for this key. Wait for Retry-After seconds. |
missing_url | 400 | No url parameter or body field. |
invalid_url | 400 | Not a complete, public http(s) link. |
invalid_request | 400 | Malformed body or parameters. |
prohibited_content | 403 | The link or its content is blocked under our Terms. Repeated attempts are logged. |
extraction_failed | 422 | The site didn't return any downloadable media (private, removed, geo-blocked or unsupported). |
timeout | 503 | The site took too long to answer. Try again later. |
download_failed | 424 | The 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_busy | 503 | Ripify is handling too many downloads at once. Wait for Retry-After seconds. |
invalid_link | 403 | A download link was changed or didn't come from /extract. |
link_expired | 403 | A download link is past linksExpireAt. Call /extract again. |
not_found | 404 | The video, or the quality you asked for, is no longer at the source. Call /extract again or pick another format. |
forbidden | 403 | The request isn't allowed. |
internal_error | 500 | Something 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.
| Endpoint | Per minute | Per 24 hours |
|---|---|---|
/extract | 20 | 500 |
/download | 10 | 250 |
Every authenticated response carries the current state:
X-RateLimit-Limit / X-RateLimit-Remaining | Requests allowed and left in the rolling minute. |
X-RateLimit-Reset | Unix time (seconds) when a slot in the minute window frees up. |
X-RateLimit-Limit-Day / X-RateLimit-Remaining-Day / X-RateLimit-Reset-Day | The same for the rolling 24 hours. |
Retry-After | On 429 only: seconds to wait. |
Need more? Tell us what you're building through the contact form on the downloader page.
Examples
# 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"// 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 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
- The Terms of Service apply to the API as they do to the website: only download what you have the right to. Keys used in breach of them may be revoked.
- Like every download, API requests are logged with the link, IP address and user agent (see the Privacy Policy), plus which key made them.
- If you've switched on your download library, links you extract through the API are saved there too, marked "API", and deleted after 90 days.
- The API is versioned: breaking changes will come as
/api/v2, with notice.