Facebook data API

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.

100 free credits every month No Facebook login JSON with an OpenAPI schema Server errors refunded

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
curl "https://api.igramapi.com/v1/facebook/reels?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F1234567890123456" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response shape · example values
{
  "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.

TaskEndpointCredits
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 scraperIGramAPI
What you runA headless browser or HTTP client, parsers, a scheduler and retriesNothing: HTTPS calls to one API
Login prompts, CAPTCHAs and blocksYours to detect and work aroundHandled on our side; you get JSON or a documented error code
When the site changesYour parsers break until you fix themWe adapt; your code keeps the same fields
OutputWhatever your parser extractsDocumented JSON with an OpenAPI schema
Your accountsLogged-in scraping can get them restrictedNone of yours is used
CostServers, IP addresses, accounts and engineering time100 free credits a month, then down to about ₹18 per 1,000 credits
ControlAny field you can see on the pageThe endpoints listed on this page, public data only

Every Facebook endpoint and its price

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

  1. Create a free account and confirm your email.
  2. Create an API key in the dashboard and keep it on your server.
  3. 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.