Facebook Downloader API
Send a temporary Facebook CDN link from any reel, video, post or story response to POST /v1/facebook/downloads and receive a time-limited direct download link for a stored MP4, merged HD video, MP3 audio or JPEG image.
Request
POST /v1/facebook/downloads ·
1 to 2 credits per successful call
curl -X POST "https://api.igramapi.com/v1/facebook/downloads" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"video","url":"https://video.xx.fbcdn.net/v/example/clip-hd.mp4","filename":"fb-reel"}' import requests
response = requests.post(
"https://api.igramapi.com/v1/facebook/downloads",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"type":"video","url":"https://video.xx.fbcdn.net/v/example/clip-hd.mp4","filename":"fb-reel"},
timeout=30,
)
response.raise_for_status()
print(response.json()) const response = await fetch("https://api.igramapi.com/v1/facebook/downloads", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({"type":"video","url":"https://video.xx.fbcdn.net/v/example/clip-hd.mp4","filename":"fb-reel"}),
});
if (!response.ok) throw new Error((await response.json()).error.message);
console.log(await response.json()); <?php
$ch = curl_init("https://api.igramapi.com/v1/facebook/downloads");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => '{"type":"video","url":"https://video.xx.fbcdn.net/v/example/clip-hd.mp4","filename":"fb-reel"}',
]);
$data = json_decode(curl_exec($ch), true);
print_r($data); Response
{
"download_url": "https://download.example.com/files/fb-reel.mp4?signature=example",
"expires_at": "2026-11-25T12:00:00Z",
"filename": "fb-reel.mp4",
"content_type": "video/mp4",
"size_bytes": 4250000
} All values above are made-up examples. Media links are temporary Facebook CDN addresses.
Parameters
| Name | In | Description |
|---|---|---|
typerequired | body | video, audio, or image. |
urlrequired | body | A Facebook CDN media URL from another endpoint response. |
audio_url | body | Optional audio track URL to merge with a video-only DASH stream. |
filename | body | Preferred filename for the download (extension added automatically). |
Response fields
| Field | Type | Description |
|---|---|---|
download_url | string | Time-limited direct download link (no API key needed). |
expires_at | string | ISO 8601 expiry timestamp. |
filename / content_type / size_bytes | string / integer | File name, MIME type and byte size. |
HD DASH audio-video merge
Pass a high-resolution video-only track in url and its audio track in audio_url to receive one combined MP4.
MP3 extraction
Set type: "audio" to turn any video stream into a standalone MP3 file.
Browser-ready links
Returns a clean download_url that works directly in browsers with no extra headers or API key.
Fast repeat calls
Repeated requests for the same media reuse the stored copy.
When to use the Facebook Downloader
Facebook CDN links expire after a short window and highest-resolution DASH formats separate video and audio into two tracks. Send the link (and optional audio_url) to POST /v1/facebook/downloads to stage a single ready-to-save file.
Frequently asked questions
How many credits does a Facebook download cost?
Videos (including merged HD streams) cost 2 credits; MP3 audio and images cost 1 credit.
Which URLs can I pass to url?
Pass a valid HTTPS Facebook CDN link returned by /v1/facebook/reels, /videos, /posts or /stories.
Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.
Try the Facebook Downloader API free
Create a key and make your first request in minutes. 100 free credits every month.