Facebook data API: pages, posts, reels, videos and comments
Read public Facebook profiles, page posts, reels, videos, active stories, post comments and search results as clean JSON, or prepare downloadable MP4 and MP3 files. One REST API, one key, no Facebook login and no app review.
One request, everything about a reel
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); {
"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.
Every Facebook API on one key
Facebook Profile API
Get public Facebook profile and page details as JSON: name, category, bio, verified status, follower counts, avatar and cover photo. 1 credit per lookup.
Facebook Profile Posts API
Fetch public posts from a Facebook page or profile timeline with cursor pagination: text, media, link previews and engagement counters.
Facebook Profile Reels & Videos API
List the latest public reels or videos from any Facebook page or profile as JSON, with HD and SD MP4 links and view counts. 1 credit per call.
Facebook Reel API
Turn a Facebook reel link or fb.watch short link into JSON: caption, views, reactions, author, music and direct HD and SD MP4 links. 1 credit per reel.
Facebook Video API
Turn a Facebook video, Watch or fb.watch link into JSON: caption, views, reactions, author or page, and direct HD and SD MP4 links. 1 credit per video.
Facebook Post API
Turn a Facebook post, photo or permalink link into JSON: text, time, author, attached photos and videos, link card and reaction, comment and share counts.
Facebook Stories API
Get the active 24-hour stories of a public Facebook page or profile as JSON, with direct photo and HD/SD video links and expiry times. Every plan.
Facebook Comments API
Read public comments on a Facebook post or photo as JSON with cursor pagination: comment text, timestamp, reactions, reply counts and author details.
Facebook Search API
Search public Facebook pages, profiles, posts and videos by keyword as JSON, with type filtering and cursor pagination.
Facebook Downloader API
Turn temporary Facebook CDN video, audio or image links into stable download URLs, merge HD DASH video with sound, or extract MP3 audio.
What the Facebook API covers
These are the facts, so you can decide in a minute whether it fits your product.
| Data | Available |
|---|---|
| A public page or profile's details by username, id or link | Yes |
A page's public reels and videos (/profiles/reels and /profiles/videos) | Yes |
| A page's public timeline posts with cursor pagination | Yes |
| A public reel or video from its link or an fb.watch short link: HD and SD MP4 links | Yes |
| A public post from its link: text, time, photos, videos, link card, reactions, shares | Yes |
| Public comments on a post or photo with cursor pagination | Yes |
| Search Facebook pages, posts and videos by keyword | Yes |
| Active 24-hour stories of a public page or profile | Yes |
| Managed MP4, merged HD DASH video, MP3 audio and image downloads | Yes |
| Group posts, Marketplace, Events, private profiles and friends-only content | No |
Why not the official Graph API?
Meta's Graph API is designed for apps that act for the people and Pages that connect to them, and access to other pages' public content is a reviewed permission. IGramAPI is for reading a public reel, video or post from its link on demand. See the Facebook API comparison for a side by side table, or read Facebook Graph API limitations.
How it works
- Create a free key. Sign up, confirm your email and create a key in the dashboard.
- Send a link. Pass the key as a Bearer token and the link of the reel, video or post as
url. Short links from the Facebook app work too. - Use the JSON. Read the data, and use the MP4 links of reels and videos soon after the call, because they are temporary.
Pricing
| Call | Credits | Plans |
|---|---|---|
| Profile / page details, reels tab, videos tab | 1 | All plans |
| Single reel or video, with MP4 links | 1 | All plans |
| Single post | 2 | All plans |
| Profile posts, stories, comments, search (per page) | 2 | All plans |
| Downloader: MP3 audio or image | 1 | All plans |
| Downloader: video or merged HD video | 2 | All plans |
Every plan includes these endpoints, starting with 100 free credits a month. See Facebook API pricing for what 1,000 calls cost on each plan.
Frequently asked questions
What does the Facebook API do?
It reads public Facebook pages, profiles, timeline posts, reels, videos, active stories, post comments and search results as JSON, and provides a managed downloader for MP4, merged HD video, MP3 audio and images.
Is there an official Facebook API I can use instead?
Meta's Graph API is built for apps that manage the Pages and accounts of people who connect to them, and reading public content of other pages needs a feature that Meta reviews and grants. It does not let a product read any public reel, video or post from its link on demand. See the comparison on this site.
Do I need a Facebook account or the owner's permission?
No. You need an IGramAPI key only. The pages and people you look up never log in or authorize anything, because only information that Facebook shows to the public is returned.
Can I get video files?
Yes. The reel and video endpoints return direct HD and SD MP4 links and DASH streams, and POST /v1/facebook/downloads merges HD DASH video+audio or extracts MP3s into browser-ready download links.
Does it work with the short links copied from the Facebook app?
Yes. fb.watch links and facebook.com/share/ links are followed to the reel, video or post.
How much does it cost?
Profiles, profile reels/videos, single reels and single videos cost 1 credit on all plans. Single posts cost 2 credits on all plans. Profile posts, stories, comments and search cost 2 credits on all plans.
What if Facebook cannot be reached?
The request returns HTTP 502 with the code upstream_error and is not charged. Retry after a short pause.
Is IGramAPI affiliated with Facebook or Meta?
No. IGramAPI is an independent service and is not affiliated with, endorsed by or sponsored by Facebook or Meta Platforms, Inc.
Am I allowed to use the data and the videos?
You are responsible for using them lawfully and in line with Facebook's terms, privacy law and the rights of the people and pages concerned. Download only content you have the right to use, and read our Acceptable Use Policy before you build.
Guides
Also see: Facebook Scraper API · Facebook API pricing · Facebook video downloader apps · endpoint reference
Compare: Facebook Graph API alternative
Try the Facebook API free
Create a key and make your first request in minutes. 100 free credits every month.