Facebook Ads Library API call Facebook Ads Library Scraper from your code
Looking for a Facebook Ads Library API? EasyAPI’s Facebook Ads Library Scraper runs on Apify: call it like an API, land structured datasets, and pay per result.
- 1,758users
- 98%30-day success
- 1.78 ★rating
curl -X POST \
"https://api.apify.com/v2/acts/easyapi~facebook-ads-library-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchUrl":"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=cup&search_type=keyword_unordered","maxItems":20}' from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("easyapi/facebook-ads-library-scraper").call(run_input={
"searchUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=cup&search_type=keyword_unordered",
"maxItems": 20,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item) import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('easyapi/facebook-ads-library-scraper').call({
"searchUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=cup&search_type=keyword_unordered",
"maxItems": 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items); Who calls this API
- Developers who want Actor API / webhook access instead of maintaining scrapers
- Data teams that need JSON/CSV exports on a schedule
- Product and research folks validating a source before building in-house
Why use Facebook Ads Library Scraper as your API
- Focused on public ad creatives, advertisers and landing URLs
- Apify Actor API, schedules and dataset exports out of the box
- Pay-per-result pricing with a live rate on the Actor page
- One integration pattern (Apify API) works for every EasyAPI tool
- From $2.99 / 1k on this landing (as of Oct 2026)
- Required input: searchUrl
- 98% successful Apify runs in the last 30 days
- 1,758 Apify users have run this Actor
What to look for in an API-style option
Prefer an official API when the source offers one that fits. Otherwise look for a maintained scraper with a clear schema, exports and pricing.
- An official or well-documented API when the source offers one
- If not: a maintained Apify Actor with clear input/output schema
- Export formats (JSON/CSV) and webhook/API hooks for automation
- Transparent usage pricing and run logs
Facebook Ads Library Scraper at a glance
Ad Library → creative rows
Extract active Facebook Ads Library creatives: copy, media, CTA and advertiser signals for competitive ads research.
Library-scale competitor scans
Run search URLs across countries and keywords so growth and agency teams share one structured ads dataset.
Part of the ads toolkit
Pair with LinkedIn Ads Library, Google Ads and Microsoft Ad Library Actors when you need cross-network creative intel.
Input fields
searchUrlstringrequiredURL of Facebook Ad Library search results page
maxItemsintegerMaximum number of ads to scrape
{
"searchUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=cup&search_type=keyword_unordered",
"maxItems": 20
} {
"pageName": "Acme",
"adText": "Ship faster\u2026",
"cta": "Learn more",
"startDate": "2026-08-01",
"mediaUrls": [
"https://\u2026"
]
} Straight answers
Is this an official Facebook Ads Library API?
No — it is EasyAPI’s Apify Actor that scrapes public pages into structured data. If the platform offers an official API, prefer that for production compliance needs.
How do I call it like an API?
Run the Actor via the Apify API or console, then fetch the dataset. You can schedule runs and push results with webhooks.
Where is the tool landing?
See Facebook Ads Library Scraper on easyapi.tools and the live Actor on Apify for schema and pricing.
What does Facebook Ads Library Scraper return?
Ad-level rows: page/advertiser, ad text, CTA, start signals and media URLs when present. Confirm schema on the Apify Actor page.
Facebook vs LinkedIn vs Google ads Actors?
Facebook Ads Library covers Meta’s public Ad Library. LinkedIn Ads Library and Google Ads scrapers cover their respective libraries. Use Facebook for Meta creatives; switch Actors for other networks.
Related tools
Start calling Facebook Ads Library Scraper
Run a small test on Apify’s free credits and compare the output with whatever you use today.