Social Media Scraper
Facebook API

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

25Endpoints
RESTProtocol
JSONResponse
facebook.jsGET
// 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/profile

Read public Facebook profile information to identify the account behind a page or content link.

$0.002444 / request

Facebook Profile Reels API

GET /v1/facebook/reels

List a Facebook profile's Reels to compare its short-video content over successive requests.

$0.002444 / request

Facebook Video Search API

GET /v1/facebook/search_videos

Search Facebook videos by keyword for topic-led video and creator research.

$0.002444 / request

Facebook Profile Photos API

GET /v1/facebook/photos

Retrieve public photo records associated with a Facebook profile for visual content research.

$0.002444 / request

Facebook Page Posts API

GET /v1/facebook/posts

Collect a Facebook profile or page's public posts to follow announcements and published content.

$0.002444 / request

Facebook Page Events API

GET /v1/facebook/events

Discover events associated with a Facebook profile or page before retrieving selected event details.

$0.002444 / request

Facebook Post Details API

GET /v1/facebook/post

Read a Facebook post's public text, author and engagement fields from its URL.

$0.073320 / request

Facebook Video Transcript API

GET /v1/facebook/transcript

Retrieve transcript text from a Facebook video post for summaries and content search.

$0.073320 / request

Facebook Post Comments API

GET /v1/facebook/comments

Read Facebook post comments and keep conversation identifiers for subsequent reply requests.

$0.002444 / request

Facebook Comment Replies API

GET /v1/facebook/post_comment_replies

Retrieve replies to a Facebook comment using its feedback and expansion context.

$0.002444 / request

Facebook Group Details API

GET /v1/facebook/group

Look up a public Facebook group to identify the community associated with a group URL.

$0.002444 / request

Facebook Group Posts API

GET /v1/facebook/group_posts

Read public posts from a Facebook group to collect discussion around a community topic.

$0.002444 / request

Facebook Marketplace Locations API

GET /v1/facebook/marketplace_location_search

Resolve a place query into Facebook Marketplace location records before searching nearby listings.

$0.002444 / request

Facebook Marketplace Search API

GET /v1/facebook/marketplace_search

Find Facebook Marketplace listings by keyword and coordinates for local product research.

$0.002444 / request

Facebook Marketplace Item Details API

GET /v1/facebook/marketplace_item

Retrieve a Facebook Marketplace listing's product and seller-related public fields from its URL.

$0.002444 / request

Facebook Event Search API

GET /v1/facebook/events_search

Search Facebook events to discover public activities relevant to a topic or location.

$0.002444 / request

Facebook Location Event Listings API

GET /v1/facebook/events_details

Read Facebook event listings for an explore-location URL and the documented time filters.

$0.002444 / request

Facebook Event Details API

GET /v1/facebook/event_details

Look up a specific Facebook event identifier to retrieve the selected event's public record.

$0.002444 / request

Facebook Ad Library Details API

GET /v1/facebook/adlibrary_ad

Inspect a Facebook Ad Library entry's creative, advertiser and public ad metadata.

$0.073320 / request

Facebook Ad Video Transcript API

GET /v1/facebook/adlibrary_ad_transcript

Retrieve transcript text from a Facebook Ad Library video to analyze spoken advertising messages.

$0.073320 / request

Facebook Ad Library Search (GET) API

GET /v1/facebook/adlibrary_search_ads

Search Facebook Ad Library with URL query parameters to find public ads matching a keyword.

$0.002444 / request

Facebook Ad Library Search (POST) API

POST /v1/facebook/adlibrary_search_ads_post

Search Facebook Ad Library with a JSON body to submit keywords and advertising filters together.

$0.002444 / request

Facebook Company Ads (GET) API

GET /v1/facebook/adlibrary_company_ads

Read a company's Facebook Ad Library records using advertiser inputs in GET query parameters.

$0.002444 / request

Facebook Company Ads (POST) API

POST /v1/facebook/adlibrary_company_ads_post

Retrieve company-specific Facebook ads using a JSON request body with Page or company identifiers.

$0.002444 / request

Facebook Ad Library Advertiser Search API

GET /v1/facebook/adlibrary_search_companies

Find company and Page records in Facebook Ad Library before requesting an advertiser's ads.

$0.002444 / request