Facebook Reel API
Send the link of a Facebook reel, an fb.watch short link or a share link and get the reel as JSON: caption, publication time, reaction, comment and share counts, the page or person behind it, the music, and direct HD and SD MP4 links for the video.
Request
GET /v1/facebook/reels ·
1 credit per successful call
curl "https://api.igramapi.com/v1/facebook/reels?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F1234567890123456" \
-H "Authorization: Bearer YOUR_API_KEY" import requests
response = requests.get(
"https://api.igramapi.com/v1/facebook/reels?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F1234567890123456",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
response.raise_for_status()
print(response.json()) const response = await fetch("https://api.igramapi.com/v1/facebook/reels?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F1234567890123456", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});
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/reels?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F1234567890123456");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data); Response
{
"id": "1234567890123456",
"url": "https://www.facebook.com/reel/1234567890123456/",
"caption": "Behind the scenes at the studio today",
"created_at": 1761900000,
"video": {
"hd_url": "https://video.xx.fbcdn.net/v/example/clip-hd.mp4",
"sd_url": "https://video.xx.fbcdn.net/v/example/clip-sd.mp4",
"width": 1080,
"height": 1920,
"duration": 23.125,
"thumbnail_url": "https://scontent.xx.fbcdn.net/v/example/thumb.jpg",
"dash_manifest": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\" …>…</MPD>"
},
"author": {
"id": "100012345678901",
"name": "Example Studio",
"url": "https://www.facebook.com/examplestudio",
"avatar_url": "https://scontent.xx.fbcdn.net/v/example/avatar.jpg",
"is_verified": true
},
"soundtrack": {
"id": "889724021450209",
"type": "LIBRARY_MUSIC",
"title": "Example Artist · Example Song",
"album_art": "https://scontent.xx.fbcdn.net/v/example/album.jpg",
"is_original_audio": false
},
"stats": {
"likes": 2767,
"comments": 106,
"shares": 16,
"views_str": "18K"
},
"cached": false
} All values above are made-up examples. Media links are temporary Facebook CDN addresses.
Parameters
| Name | In | Description |
|---|---|---|
urlrequired | query | The reel's link: a facebook.com/reel/ URL, an fb.watch link or a facebook.com/share/r/ link. |
Response fields
| Field | Type | Description |
|---|---|---|
id / url | string | Reel id and its canonical link. |
caption / created_at | string | null / integer | null | Caption and the Unix time it was published. |
video.hd_url / video.sd_url | string | null | Direct MP4 links in HD and SD (temporary CDN links). Either can be null when Facebook offers one quality only. |
video.width / height / duration | integer / number | Picture size in pixels and length in seconds. |
video.thumbnail_url | string | null | Preview image (temporary CDN link). |
video.dash_manifest | string | null | The full DASH manifest as an XML string, for adaptive players. About 12 to 15 KB, so skip it if you only need the MP4 links. |
author | object | id, name, url, avatar_url and is_verified of the page or person. |
soundtrack | object | null | id, type, title, album_art and is_original_audio of the music. |
stats | object | likes (all reactions), comments, shares and views_str (a formatted string such as 18K). |
cached | boolean | True when served from the short-lived cache. |
Direct MP4 links
video.hd_url and video.sd_url are progressive MP4 links you can play or download without any other call.
Music included
soundtrack names the track and its artist, or marks the reel as original audio.
Short links resolved
fb.watch links and facebook.com/share/ links are followed to the reel, so you can pass whatever your users paste.
Adaptive streaming
video.dash_manifest holds the DASH manifest for players that switch quality on their own.
What the Facebook reel endpoint returns
The response describes one reel. video carries the HD and SD links, the picture size, the length in seconds, a thumbnail and the DASH manifest. author identifies the page or person, stats holds the reaction, comment and share counts, and stats.views_str the view count as Facebook formats it, for example 18K.
caption is null when the reel has no text. Statistics Facebook does not show for a reel come back as null.
Download links
hd_url and sd_url point to Facebook's CDN and are temporary: they work for a limited time and then expire, so download soon after the call or pass the media URL to the Facebook Downloader API for a stored MP4 or merged HD video.
Use the HD link when it is present. When Facebook publishes a single quality, one of the two links is null. Respect the creator's rights, and read our Acceptable Use Policy before you build a downloader.
One reel or a whole page
This endpoint works from the link of one reel. To list a page's reels or videos, use the Facebook Profile Reels & Videos API.
Frequently asked questions
Can I pass a short link copied from the Facebook app?
Yes. fb.watch links and facebook.com/share/r/ links are followed to the reel.
Do the MP4 links work forever?
No. They are temporary Facebook CDN links. Download the file soon after the call, or call the endpoint again for a fresh link.
Is the view count an integer?
No. Facebook shows it as text such as 18K, and stats.views_str returns that text. Reactions, comments and shares are integers.
Which reels are not available?
Reels that were deleted, are private or need a login return HTTP 404 with the code reel_not_found.
Can I list the reels of a page or look one up by username?
Yes. Use the Facebook Profile Reels & Videos API to list a page's reels and videos, or the Facebook Profile API for page details.
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 Reel API free
Create a key and make your first request in minutes. 100 free credits every month.