Facebook scraper API

Public Facebook pages, posts, comments, groups, reels, events and Marketplace as JSON, plus the Meta Ad Library. No Page Public Content Access review.

29 endpoints · from 20 credits a call · 10 free calls · no credit card

curl "https://api.insightsocial.app/v1/facebook/profile?url=https%3A%2F%2Fwww.facebook.com%2FMeta" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "facebook",
"endpoint": "/v1/facebook/profile",
"data": {
"author": {
"username": "Meta",
}
},
"credits_used": 0,
"charge_reason": "miss",
"free_call": true
}

What Facebook data can you get?

Public Facebook data only, returned in the same JSON envelope as every other platform.

Pages and profiles

Name, bio, followers and page likes, and for businesses the address, rating and opening hours where the page lists them.

Posts, reels and comments

A page's posts and reels with reactions, comments and shares, and the full comment thread under any public post.

Groups, events and Marketplace

Posts in public groups, events by page or search, and Marketplace listings by keyword and location.

Meta Ad Library

Ads a company is running, ad search by keyword, and the spoken text of video ads.

Facebook API endpoints

All 29 Facebook endpoints and their price in credits. 9 are metered: they show a range and charge what the call actually read.

EndpointCreditsWhat it returns
/profile20Returns a Facebook page's public profile: page id, display name, profile image, bio, follower count, and page-like count.
/profile/posts20–80Returns recent posts from a Facebook page or profile, each with the post text, like and comment counts, the per-reaction breakdown, media, and publish time.
/post20Returns one Facebook post in full: the post text, like, comment and share counts, a reactions breakdown, media attachments, and author info.
/post/comments20–100Returns comments on a Facebook post, each with the commenter's name, comment text, like count, reply count, and creation time.
/group/posts20Returns posts from a Facebook group, 3 to 4 per page, each with the post text, reaction count, comment count, the per-reaction breakdown, and author info.
/group20Returns a Facebook group's public record: name, description, member count, privacy, visibility, and creation date.
/post/transcript200Returns the spoken words of a Facebook video post as a transcript, using Facebook's auto-generated captions.
/profile/photos20–180Returns a page or profile's photos, each with a photo id, permalink, full-size image URL, thumbnail, and accessibility caption when available.
/profile/reels20Returns a page or profile's reels, each with a reel id, description, thumbnail, permalink, publish time, and a rounded public view count.
/adlibrary/ad100Returns one ad from the Facebook Ad Library: creative, CTA and link, run dates, display format, and the advertiser's page URL, likes and categories.
/adlibrary/company/ads100Returns the ads one company or page is running in the Facebook Ad Library, each with its creative, status, spend, and targeting info.
/adlibrary/search/ads100Returns Facebook Ad Library ads matching a keyword, each with its creative text, images, sponsor info, and running status.
/adlibrary/search/companies100Returns advertiser pages in the Facebook Ad Library matching a name, each with its page id, name, handle, verification badge and follower count.
/profile/events20–180Returns a Facebook page's upcoming and past events, each with a title, link, the start time, the venue, the city, the rendered time line, and the cancelled, past and online flags.
/post/comment/replies20–100Returns the replies under a single Facebook comment, each with the author name, reply text, like count, and creation time.
/marketplace/location/search20Returns Facebook Marketplace locations and cities matching a search term, each with its lat and lng coordinates.
/marketplace/search20Returns Facebook Marketplace listings near a lat/lng, each with title, price, location, photo, delivery types, and sold or live flags.
/marketplace/item20Returns one Facebook Marketplace listing: title, description, price, location, condition, photos, seller, and availability flags.
/events/search20Returns public Facebook events matching a keyword, each with name, date sentence, venue, cover photo, interested and going counts, and online and past flags.
/events20–260Returns the events listed on a Facebook city or region events page, each with a title, link, cover image, the start time, the venue, and the going and interested counts.
/event/details20Returns one Facebook event in full: title, description, start and end time, location, host, cover image, and RSVP counts when shown.
/adlibrary/ad/transcript200Returns the spoken words of a Facebook Ad Library video ad, from Facebook's captions when available or transcribed from the video itself.
/profile/full100Returns a page's profile plus its latest 3 posts and computed figures: engagement rate by views and by followers, posting cadence, top post, and format mix.
/profile/reels/full100–500Returns a page's reels with exact per-reel engagement merged in: views, likes, comments, and shares, plus each reel's id, thumbnail, and link.
/search/posts20–180Returns public Facebook posts matching a keyword, each with text, permalink, publish time, like count, comment count, and author.
/search/pages20Returns Facebook pages matching a keyword, each with page id, display name, permalink, avatar, and verified flag.
/search/people20Returns Facebook people matching a keyword, each with profile id, display name, permalink, avatar, and verified flag.
/search/videos20Returns public Facebook videos matching a keyword, each with video id, caption, permalink, thumbnail, and author.
/search/groups20–300Returns public Facebook groups matching your keywords, one row per group, with the group's name, id and URL in the same shape the group endpoints take.

Parameters, response fields and examples for each endpoint are in the Facebook API reference.

InsightSocial vs the official Facebook API

The Facebook Graph API reads pages you manage. Public page content needs the Page Public Content Access feature and app review, and Meta retired the Groups API in 2024.

InsightSocial APIOfficial Facebook API
Public pagesAny public pagePage Public Content Access, after app review
GroupsPosts in public groupsGroups API retired in 2024
MarketplaceListings by keyword and locationNot offered
ApprovalNone. Sign in and copy a keyMeta app review and business verification

The official API is the right tool for posting, messaging or managing accounts you own. This one is read-only public data.

How much does the Facebook API cost?

Facebook calls start at 20 credits. Every endpoint's price is in the table above and in the free GET /v1/endpoints catalogue, so you know the cost before you call.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Repeats are free

    Call the same thing again inside its window, 1 to 24 hours depending on the endpoint, and it costs 0.

  • One balance

    API calls and Chrome extension exports share the same credits. The free plan includes 500 a month.

Not writing code?

The free Facebook scraper for Chrome exports the same data to Excel, CSV or Google Sheets from your browser, on the same account.

Facebook scraper for Chrome

Facebook API: frequently asked questions

Yes, for public groups. /v1/facebook/group/posts returns a group's posts page by page. Meta removed its own Groups API in 2024, so there is no official route. Private groups need a member's session: the InsightSocial Chrome extension reads them from your own logged-in browser.