Facebook Data and Ad Library API
Research public posts, Reels, comments, groups, Marketplace listings, events and Ad Library records using separate Facebook endpoints. 25 documented operations, each with its own parameters and request price.
$0.002444 USD / requestPrice version 2026-11-23.retail-1
// Facebook Profile API · facebook API
const response = await fetch("https://socialmediascraper.org/v1/facebook/profile?url=https%3A%2F%2Fwww.facebook.com%2Fmantraindianfolsom", {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY',
'x-price-version': '2026-11-23.retail-1',
'Idempotency-Key': 'example-request-0001'
}
});
const data = await response.json();
console.log(data);Plan your Facebook data workflow
For ad research, find an advertiser or keyword first, then inspect individual ads. For local commerce, resolve locations before loading listings. Use comment and reply endpoints together to preserve conversation structure.
Endpoints
What you can do with the Facebook API
Facebook Profile API
GET /v1/facebook/profileRead public Facebook profile information to identify the account behind a page or content link.
Facebook Profile Reels API
GET /v1/facebook/reelsList a Facebook profile's Reels to compare its short-video content over successive requests.
Facebook Video Search API
GET /v1/facebook/search_videosSearch Facebook videos by keyword for topic-led video and creator research.
Facebook Profile Photos API
GET /v1/facebook/photosRetrieve public photo records associated with a Facebook profile for visual content research.
Facebook Page Posts API
GET /v1/facebook/postsCollect a Facebook profile or page's public posts to follow announcements and published content.
Facebook Page Events API
GET /v1/facebook/eventsDiscover events associated with a Facebook profile or page before retrieving selected event details.
Facebook Post Details API
GET /v1/facebook/postRead a Facebook post's public text, author and engagement fields from its URL.
Facebook Video Transcript API
GET /v1/facebook/transcriptRetrieve transcript text from a Facebook video post for summaries and content search.
Facebook Post Comments API
GET /v1/facebook/commentsRead Facebook post comments and keep conversation identifiers for subsequent reply requests.
Facebook Comment Replies API
GET /v1/facebook/post_comment_repliesRetrieve replies to a Facebook comment using its feedback and expansion context.
Facebook Group Details API
GET /v1/facebook/groupLook up a public Facebook group to identify the community associated with a group URL.
Facebook Group Posts API
GET /v1/facebook/group_postsRead public posts from a Facebook group to collect discussion around a community topic.
Facebook Marketplace Locations API
GET /v1/facebook/marketplace_location_searchResolve a place query into Facebook Marketplace location records before searching nearby listings.
Facebook Marketplace Search API
GET /v1/facebook/marketplace_searchFind Facebook Marketplace listings by keyword and coordinates for local product research.
Facebook Marketplace Item Details API
GET /v1/facebook/marketplace_itemRetrieve a Facebook Marketplace listing's product and seller-related public fields from its URL.
Facebook Event Search API
GET /v1/facebook/events_searchSearch Facebook events to discover public activities relevant to a topic or location.
Facebook Location Event Listings API
GET /v1/facebook/events_detailsRead Facebook event listings for an explore-location URL and the documented time filters.
Facebook Event Details API
GET /v1/facebook/event_detailsLook up a specific Facebook event identifier to retrieve the selected event's public record.
Facebook Ad Library Details API
GET /v1/facebook/adlibrary_adInspect a Facebook Ad Library entry's creative, advertiser and public ad metadata.
Facebook Ad Video Transcript API
GET /v1/facebook/adlibrary_ad_transcriptRetrieve transcript text from a Facebook Ad Library video to analyze spoken advertising messages.
Facebook Ad Library Search (GET) API
GET /v1/facebook/adlibrary_search_adsSearch Facebook Ad Library with URL query parameters to find public ads matching a keyword.
Facebook Ad Library Search (POST) API
POST /v1/facebook/adlibrary_search_ads_postSearch Facebook Ad Library with a JSON body to submit keywords and advertising filters together.
Facebook Company Ads (GET) API
GET /v1/facebook/adlibrary_company_adsRead a company's Facebook Ad Library records using advertiser inputs in GET query parameters.
Facebook Company Ads (POST) API
POST /v1/facebook/adlibrary_company_ads_postRetrieve company-specific Facebook ads using a JSON request body with Page or company identifiers.
Facebook Ad Library Advertiser Search API
GET /v1/facebook/adlibrary_search_companiesFind company and Page records in Facebook Ad Library before requesting an advertiser's ads.