Facebook Ad Library API
Real-time Facebook Ad Library
data, one API call.
The unofficial Meta Ad Library API from ScrapeCreators lets developers search public Facebook and Instagram ads without maintaining a browser scraper. Find ads by keyword or advertiser, filter by country, platform, and status, then collect creatives and ad details as JSON.
7
Endpoints
REST
Protocol
JSON
Response
// Search public Meta Ad Library ads with JavaScript
const response = await fetch(
'https://api.scrapecreators.com/v1/facebook/adLibrary/search/ads?query=running',
{
headers: {
'x-api-key': 'YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data); Endpoints
What you can do with the Facebook Ad Library API
Ad Details
GET /v1/facebook/adLibrary/ad Pass the Ad ID and get back details about the ad. Be careful that if an ad has multiple versions, you're actually going to want to get the title from the 'cards' object.
View endpoint pageAd Transcript
GET /v1/facebook/adLibrary/ad/transcript Get the transcript for a Facebook Ad Library video ad by ad ID or URL. Credits are only charged when a transcript is returned.
View endpoint pageSearch
GET /v1/facebook/adLibrary/search/ads Search the Facebook (Meta) Ad Library by keyword. Use GET for normal requests. If the cursor becomes too large after extensive pagination, use POST and send the same parameters in the JSON body.
View endpoint pageSearch
POST /v1/facebook/adLibrary/search/ads Search the Facebook (Meta) Ad Library by keyword. Use GET for normal requests. If the cursor becomes too large after extensive pagination, use POST and send the same parameters in the JSON body.
View endpoint pageCompany Ads
GET /v1/facebook/adLibrary/company/ads Get all the ads a company has running. Use GET for normal requests. If the cursor becomes too large after extensive pagination, use POST and send the same parameters in the JSON body.
View endpoint pageCompany Ads
POST /v1/facebook/adLibrary/company/ads Get all the ads a company has running. Use GET for normal requests. If the cursor becomes too large after extensive pagination, use POST and send the same parameters in the JSON body.
View endpoint pageSearch for Companies
GET /v1/facebook/adLibrary/search/companies Search for companies by name and get their ad library page id
View endpoint pageQuick start
Facebook Ad Library API quick start
Make your first request in under a minute. Sign up, grab your API key, paste this in.
// Search public Meta Ad Library ads with JavaScript
const response = await fetch(
'https://api.scrapecreators.com/v1/facebook/adLibrary/search/ads?query=running',
{
headers: {
'x-api-key': 'YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data); Why us
Why ship on the ScrapeCreators Facebook Ad Library API
Real-time data access
Get the most up-to-date Facebook Ad Library data without dealing with rate limits or IP blocks.
Simple integration
Clear documentation and straightforward REST API endpoints make it easy to get started in any language.
High reliability
Our infrastructure ensures high uptime and consistent performance for your applications, even at scale.
Comprehensive data
Access a wide range of Facebook Ad Library data points through our carefully designed endpoints.
Use cases
Facebook Ad Library API use cases
Competitor ad monitoring
Track active public ads, messaging angles, creative changes, and landing pages from competitors in the Meta Ad Library.
Creative research
Collect public ad copy, images, videos, calls to action, and advertiser details for creative analysis.
Market analysis
Filter public ad data by country, platform, status, and advertiser to understand where campaigns are running.
Ad transparency reporting
Build repeatable reports from public Facebook and Instagram ad data without maintaining browser automation.
FAQ
Questions we hear
about the Facebook Ad Library API.
Is the Facebook Ad Library API official?
No, ScrapeCreators provides an unofficial Facebook Ad Library API that lets you access Facebook Ad Library data through our platform. We handle the complexities of data collection so you can focus on building your application.
How current is the Facebook Ad Library data?
We provide real-time data from Facebook Ad Library. When you make a request, we fetch the latest information available, so you always get fresh Facebook Ad Library data.
Can I use the Facebook Ad Library API in production?
Absolutely. Many businesses rely on ScrapeCreators APIs for their production applications. Our infrastructure is designed for reliability and performance at scale.
Do I need a credit card to try the Facebook Ad Library API?
No credit card required. Sign up for free and you get 100 credits on the house to test the Facebook Ad Library API before deciding on a plan. Credits never expire.
What does the Facebook Ad Library API return?
The Facebook Ad Library API returns clean JSON with public ad creatives, copy, images, videos, advertiser details, active status, platforms, countries, and pagination where available. See the endpoints section above for all 7 endpoints.
Get started
Start using the Facebook Ad Library API
100 credits on the house. No credit card. Start pulling Facebook Ad Library data in under sixty seconds.
Also searched