InsightSocial

Facebook scraper API

The Facebook scraper API for public pages, posts, comments, groups and Marketplace, as JSON, plus the Meta Ad Library. No Page Public Content Access review.

29 endpoints · from 10 credits a call · 10 free calls up to 100 credits each · no credit card

curl "https://api.insightsocial.app/v1/facebook/profile?url=https%3A%2F%2Fwww.facebook.com%2FExampleBakery" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "facebook",
"endpoint": "/v1/facebook/profile",
"schema_version": "2",
"data": {
"author": {
"id": "100000000000001",
"username": "ExampleBakery",
"display_name": "Example Bakery",
"avatar_url": "https://cdn.example.com/avatars/example_bakery.jpg",
"bio": "Sourdough, pastries and coffee. Open daily from 7am.",
"verified": null,
"followers": 12000,
"followers_approximate": true,
"following": null,
"posts_count": null,
"likes_count": 11905,
"url": "https://www.facebook.com/ExampleBakery",
"location": "Portland, OR",
"external_url": null,
"private": null,
"joined_at": "2014-05-02T00:00:00.000Z",
"last_post_at": null,
"ext": {
"business_category": "Bakery",
"website": "https://example.com",
"public_email": "hello@example.com",
"rating": "4.8",
"rating_count": 312
}
}
},
"unavailable": [],
"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. 8 are metered: they show a range and charge what the call actually read.

EndpointCreditsWhat it returns
/profile10Returns a Facebook page's public profile: page id, display name, profile image, bio, follower count, and page-like count.
/profile/posts10–40Returns 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.
/post10Returns one Facebook post in full: the post text, like, comment and share counts, a reactions breakdown, media attachments, and author info.
/post/comments10Returns comments on a Facebook post, each with the commenter's name, comment text, like count, reply count, and creation time.
/group/posts10Returns 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.
/group10Returns a Facebook group's public record: name, description, member count, privacy, visibility, and creation date.
/post/transcript100Returns the spoken words of a Facebook video post as a transcript, using Facebook's auto-generated captions.
/profile/photos10–90Returns a page or profile's photos, each with a photo id, permalink, full-size image URL, thumbnail, and accessibility caption when available.
/profile/reels10Returns a page or profile's reels, each with a reel id, description, thumbnail, permalink, publish time, and a rounded public view count.
/adlibrary/ad50Returns 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/ads50–350Returns the ads one company or page is running in the Facebook Ad Library, each with its creative, status, spend, and targeting info.
/adlibrary/search/ads50Returns Facebook Ad Library ads matching a keyword, each with its creative text, images, sponsor info, and running status.
/adlibrary/search/companies50Returns advertiser pages in the Facebook Ad Library matching a name, each with its page id, name, handle, verification badge and follower count.
/profile/events10–90Returns 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/replies10Returns the replies under a single Facebook comment, each with the author name, reply text, like count, and creation time.
/marketplace/location/search10Returns Facebook Marketplace locations and cities matching a search term, each with its lat and lng coordinates.
/marketplace/search10Returns Facebook Marketplace listings near a lat/lng, each with title, price, location, photo, delivery types, and sold or live flags.
/marketplace/item10Returns one Facebook Marketplace listing: title, description, price, location, condition, photos, seller, and availability flags.
/events/search10Returns public Facebook events matching a keyword, each with name, date sentence, venue, cover photo, interested and going counts, and online and past flags.
/events10–130Returns 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/details10Returns one Facebook event in full: title, description, start and end time, location, host, cover image, and RSVP counts when shown.
/adlibrary/ad/transcript100Returns the spoken words of a Facebook Ad Library video ad, from Facebook's captions when available or transcribed from the video itself.
/profile/full50Returns a page's profile plus its latest 3 posts in one call.
/profile/reels/full50–250Returns 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/posts10–50Returns public Facebook posts matching a keyword, each with text, permalink, publish time, like count, comment count, and author.
/search/pages10Returns Facebook pages matching a keyword, each with page id, display name, permalink, avatar, and verified flag.
/search/people10Returns Facebook people matching a keyword, each with profile id, display name, permalink, avatar, and verified flag.
/search/videos10Returns public Facebook videos matching a keyword, each with video id, caption, permalink, thumbnail, and author.
/search/groups10–110Returns 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
Cost per call10 creditsNo per-call price; access is gated by Meta app review

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 10 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. Pro's 10,000 monthly credits cover about 1,000 pages at 10 credits each.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Retries are free

    Resend a request with the same Idempotency-Key and the replay costs 0. Repeating a call without one is charged like the first time, because it can return newer data.

  • One balance

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

Not writing code?

Connect InsightSocial to Claude or ChatGPT and ask for Facebook data in plain English. Same account, same credits.

Use it from Claude or ChatGPT

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.

Facebook API guides