Facebook Ad Library API

Real-time Facebook Ad Library
data, one API call.

The Facebook Ad Library API from ScrapeCreators gives developers reliable access to Facebook Ad Library data without the hassle of building and maintaining scrapers. Our Facebook Ad Library API endpoints make it easy to retrieve profiles, posts, metrics, and more from Facebook Ad Library in real-time for your applications. Scrapes the Facebook (Meta) Ad Library

4

Endpoints

REST

Protocol

JSON

Response

facebookAdLibrary.js
example
// Example code for using the Facebook Ad Library API with JavaScript
const response = await fetch(`https://api.scrapecreators.com/v1/facebookadlibrary/profile?handle=example`, {
  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. If you ask for the transcipt, we will only transcribe the video if it's under 2 minutes.

Search

GET /v1/facebook/adLibrary/search/ads

Search the Facebook (Meta) Ad Library By Keyword. This endpoint will tap out around 1,500 results, beacuse the cursor becomes too big for a GET request. If you need more results, call this endpoint as a POST, and pass the query params in the body.

Company Ads

GET /v1/facebook/adLibrary/company/ads

Get all the ads a company has running. If params become too large, make this a POST request and pass the params in the body.

Search for Companies

GET /v1/facebook/adLibrary/search/companies

Search for companies by name and get their ad library page id

Quick start

Facebook Ad Library API quick start

Make your first request in under a minute. Sign up, grab your API key, paste this in.

facebookAdLibrary-example.js
// Example code for using the Facebook Ad Library API with JavaScript
const response = await fetch(`https://api.scrapecreators.com/v1/facebookadlibrary/profile?handle=example`, {
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  }
});

const data = await response.json();
console.log(data);
Read the full documentation

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

01

Content discovery

Find trending content on Facebook Ad Library to identify viral topics or influencers relevant to your industry.

02

Competitive analysis

Monitor competitor accounts on Facebook Ad Library to track their content strategy, engagement rates, and audience growth.

03

Influencer research

Find and verify Facebook Ad Library creators based on audience demographics, engagement metrics, and content relevance.

04

Social monitoring

Track brand mentions and relevant hashtags on Facebook Ad Library to gauge customer sentiment and identify opportunities.

05

Content aggregation

Embed Facebook Ad Library content into your application or website to keep your users engaged with fresh content.

06

Automated reporting

Build dashboards with real-time Facebook Ad Library metrics and schedule automated reports for stakeholders.

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 responses with profiles, posts, engagement metrics, and more — depending on the endpoint you call. See the endpoints section above for the full list of 4 endpoints available.

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

Common terms for Facebook Ad Library API access

Facebook Ad Library API integration Facebook Ad Library data API Access Facebook Ad Library data programmatically Facebook Ad Library API for developers Facebook Ad Library API endpoints Facebook Ad Library API documentation How to use Facebook Ad Library API Facebook Ad Library API wrapper Facebook Ad Library API solutions