InsightSocial API

Facebook

29 Facebook endpoints on one API key.

Pages and profiles, posts, comments, groups, reels, photos, events, Marketplace, search and the Meta Ad Library.

Base path: /v1/facebook/...

Quickstart

cURL
curl "https://api.insightsocial.app/v1/facebook/profile?url=https%3A%2F%2Fwww.facebook.com%2FMeta" \
  -H "x-api-key: $INSIGHTSOCIAL_API_KEY"

Endpoints

9 of these are metered: the price depends on how much the call reads. See Credits.

EndpointCreditsWhat it returnsKey parameters
/profile20Returns a Facebook page's public profile: page id, display name, profile image, bio, follower count, and page-like count.url
/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.url, pageId
/post20Returns one Facebook post in full: the post text, like, comment and share counts, a reactions breakdown, media attachments, and author info.url
/post/comments20–100Returns comments on a Facebook post, each with the commenter's name, comment text, like count, reply count, and creation time.url, feedback_id
/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.url, group_id
/group20Returns a Facebook group's public record: name, description, member count, privacy, visibility, and creation date.url, group_id
/post/transcript200Returns the spoken words of a Facebook video post as a transcript, using Facebook's auto-generated captions.url
/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.url
/profile/reels20Returns a page or profile's reels, each with a reel id, description, thumbnail, permalink, publish time, and a rounded public view count.url
/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.id, url
/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.pageId, companyName
/adlibrary/search/ads100Returns Facebook Ad Library ads matching a keyword, each with its creative text, images, sponsor info, and running status.query
/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.query
/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.url
/post/comment/replies20–100Returns the replies under a single Facebook comment, each with the author name, reply text, like count, and creation time.feedback_id, expansion_token
/marketplace/location/search20Returns Facebook Marketplace locations and cities matching a search term, each with its lat and lng coordinates.query
/marketplace/search20Returns Facebook Marketplace listings near a lat/lng, each with title, price, location, photo, delivery types, and sold or live flags.query, lat, lng
/marketplace/item20Returns one Facebook Marketplace listing: title, description, price, location, condition, photos, seller, and availability flags.id, url
/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.query
/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.url
/event/details20Returns one Facebook event in full: title, description, start and end time, location, host, cover image, and RSVP counts when shown.id, url
/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.id, url
/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.url
/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.url
/search/posts20–180Returns public Facebook posts matching a keyword, each with text, permalink, publish time, like count, comment count, and author.query
/search/pages20Returns Facebook pages matching a keyword, each with page id, display name, permalink, avatar, and verified flag.query
/search/people20Returns Facebook people matching a keyword, each with profile id, display name, permalink, avatar, and verified flag.query
/search/videos20Returns public Facebook videos matching a keyword, each with video id, caption, permalink, thumbnail, and author.query
/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.query

On this page