Facebook Scraper API
Get public Facebook pages, their posts, reels and videos with HD and SD MP4 links, comments and search results as JSON, from a link or a page name. No browser automation and no Facebook account of yours.
IGramAPI is an independent product of AR Digital Services (Prayagraj, Uttar Pradesh, India). It is not the official API and is not affiliated with or endorsed by Facebook or Meta. About us
What running your own Facebook scraper involves
Scraping Facebook yourself works for a demo. Keeping it working is the expensive part.
Login and consent screens
Logged-out visitors often get a login prompt or a cookie-consent screen instead of the page.
Scattered data
A page keeps its data in many separate JSON blocks that point to each other by id, so a parser has to stitch them together.
Several video formats
One video comes as progressive HD and SD files plus separate DASH video and audio tracks; picking and joining them is up to you.
Many link shapes
Reels, watch links, share links, fb.watch short links and page posts all look different and redirect differently.
Or call an endpoint
Send a username or a link, get JSON. The same key also covers the other platforms.
Example: Facebook Reel API
GET /v1/facebook/reels · 1 credit. Replace YOUR_API_KEY with your key.
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
} Your scraper's jobs, as endpoints
Each common Facebook scraping task maps to one documented endpoint with a fixed price.
| Task | Endpoint | Credits |
|---|---|---|
| Page details, followers and avatar | GET /v1/facebook/profiles | 1 credit |
| Posts of a page | GET /v1/facebook/profiles/posts | 2 credits |
| Reels and videos of a page | GET /v1/facebook/profiles/reels | 1 credit |
| A reel from its link, with MP4 files | GET /v1/facebook/reels | 1 credit |
| A watch or page video | GET /v1/facebook/videos | 1 credit |
| A post from its link | GET /v1/facebook/posts | 2 credits |
| Comments under a post | GET /v1/facebook/comments | 2 credits |
| Pages, posts and videos by keyword | GET /v1/facebook/search | 2 credits |
| Download a video, merged HD or MP3 | POST /v1/facebook/downloads | 1 to 2 credits |
Your own scraper or IGramAPI
| Your own scraper | IGramAPI | |
|---|---|---|
| What you run | A headless browser or HTTP client, parsers, a scheduler and retries | Nothing: HTTPS calls to one API |
| Login prompts, CAPTCHAs and blocks | Yours to detect and work around | Handled on our side; you get JSON or a documented error code |
| When the site changes | Your parsers break until you fix them | We adapt; your code keeps the same fields |
| Output | Whatever your parser extracts | Documented JSON with an OpenAPI schema |
| Your accounts | Logged-in scraping can get them restricted | None of yours is used |
| Cost | Servers, IP addresses, accounts and engineering time | 100 free credits a month, then down to about ₹18 per 1,000 credits |
| Control | Any field you can see on the page | The endpoints listed on this page, public data only |
Every Facebook endpoint and its price
| Endpoint | Credits | Available on |
|---|---|---|
| Page or profile details | 1 | All plans |
| Reels or videos of a page (per page) | 1 | All plans |
| Reel (URL or short link), with MP4 links | 1 | All plans |
| Video (Watch or page video link), with MP4 links | 1 | All plans |
| Post (URL or share link) | 2 | All plans |
| Posts of a page (per page) | 2 | All plans |
| Stories of a page or profile | 2 | All plans |
| Comments of a post (per page) | 2 | All plans |
| Search pages, posts and videos | 2 | All plans |
| Download: image or MP3 | 1 | All plans |
| Download: video, or merged HD video | 2 | All plans |
Errors on our side (HTTP 5xx) and invalid requests are refunded automatically; a lookup that completes with "not found" or "private" costs its credits. Facebook API pricing.
Limitations
- Public data only: personal profiles' private content, groups you would need to join and messages are never returned.
- Results follow what a page shows publicly; fields a page hides come back empty or null.
- MP4 links in responses are temporary; use the downloader for a stored copy.
Get started in three steps
- Create a free account and confirm your email.
- Create an API key in the dashboard and keep it on your server.
- Run the cURL above with your key. The quickstart and the Facebook API overview cover the rest.
Questions
Is this a scraper or an API?
It is a hosted REST API. You call an HTTPS endpoint with your key and get documented JSON back, with the video formats already picked apart for you.
Do I need a Facebook account or cookies?
No. You only need an IGramAPI key. No Facebook account of yours is used.
Which links does it accept?
Reel links, watch and page video links, post links, share links and fb.watch short links. Page endpoints accept a page link or the page's username.
Can it read private profiles or groups?
No. Only content that is publicly visible without logging in is returned.
What happens when Facebook changes something?
Calls can fail until we adapt. Errors on our side (HTTP 5xx) are refunded automatically and carry a request id you can send us.
Is it legal to collect public Facebook data?
It depends on your country, the data and what you do with it. IGramAPI returns only information that is publicly visible on Facebook and never logs in to anyone's account. You are responsible for lawful use, including privacy law (such as the GDPR or India's DPDP Act) and Facebook's terms. Read our Acceptable Use Policy, and get legal advice for your use case.
Independent service, not affiliated with Facebook or its owner. Use the data lawfully: Acceptable Use Policy.
Replace your Facebook scraper with one API call
100 credits every month, no credit card.