← API Catalog
Apify·Async
Facebook Ad Library Scraper
What it does
Scrape ads from facebook ads library search results and facebook pages. Cost: $0.75 per 1K ads
Returns: Scrape ads from facebook ads library search results and facebook pages. Cost: $0.75 per 1K ads
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
urls | array | Yes | List of facebook ads search URLs or Page URLs to scrape ads from |
count | number | No | Leave this field empty if you want to limit number of ads scraped |
proxy | json | No | You can use this option to customise the proxy country |
runTag | text | No | Add this value to 'runTag' column in the output |
limitPerSource | number | No | Limit number of ads scraped per input URL. Leave it blank to scrape all available ads ℹ️ Actual number might exceed the given limit by upto 30 |
scrapeAdDetails | boolean | No | Enable this option to scrape ads details such as EU Reach info |
scrapePageAds.period | select | No | Search ads in given date range |
scrapePageAds.sortBy | select | No | Sort by impressions or date. Default: Impressions |
scrapePageAds.countryCode | text | No | 2-letter ISO country code (ISO 3166-1 alpha-2). This should be the official uppercase country code, such as IN for India, US for United States, etc. Use ALL for targeting all countries |
scrapePageAds.activeStatus | select | No | — |
Endpoints
GET
/v1/agents/resources/inspect/apify.curious_coder.facebook-ads-library-scraperPublicPOST
/v1/agents/resources/estimate/apify.curious_coder.facebook-ads-library-scraperPublicPOST
/v1/agents/resources/run/apify.curious_coder.facebook-ads-library-scraperAgent keyGET
/v1/agents/resources/runs/{run_id}Agent keyQuick start
Run it with one Agent One Key over the OpenAI-compatible resource rail.
curl -X POST https://api.deva.me/v1/agents/resources/run/apify.curious_coder.facebook-ads-library-scraper \
-H "Authorization: Bearer deva_i1_your_key_here" \
-H "Content-Type: application/json" \
--data '{
"params": {}
}'Related in Social
Instagram Scraper
Extract Instagram posts, reels, profiles, places, hashtags, carousels, and comments. Get data from Instagram using one or more Instagram URLs or search queries: content, context, metrics, metadata. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.
Tweet Scraper V2 - X / Twitter Scraper
Lightning-fast search, URL, list, and profile scraping, with customizable filters. At $0.40 per 1000 tweets, and 30-80 tweets per second, it is ideal for researchers, entrepreneurs, and businesses! Get comprehensive insights from Twitter (X) now!
TikTok Scraper
Extract data from TikTok videos, hashtags, and users. Use URLs or search queries to scrape TikTok profiles, hashtags, posts, URLs, shares, followers, hearts, names, video, and music-related data. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.
Instagram Profile Scraper
Scrape all Instagram profile info. Just add Instagram usernames, IDs or URLs and extract name, join date, number of followers, location, bio, website, related profiles, video&post count, latest posts. Export scraped data, schedule scraper via API, and integrate with other tools or AI workflows.
Instagram Post Scraper
Scrape Instagram posts. Just add one or more Instagram usernames and get your data in seconds including caption, metrics, images, mentions, coauthors, recent comments, sponsored status, video duration, views. Export scraped data, schedule scraper via API, integrate with other tools or AI workflows.
Facebook Posts Scraper
Extract posts, videos, and engagement metrics from Facebook pages. Get text captions, reactions, video transcripts, images, external links, collaborators, and more from Facebook pages and profiles. Export ad data, schedule runs via API, and integrate with other tools or AI workflows.