← API Catalog
Apify·Async

Facebook Ad Library Scraper

SocialE-commerce$0.00075 / ad

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

ParameterTypeRequiredDescription
urlsarrayYesList of facebook ads search URLs or Page URLs to scrape ads from
countnumberNoLeave this field empty if you want to limit number of ads scraped
proxyjsonNoYou can use this option to customise the proxy country
runTagtextNoAdd this value to 'runTag' column in the output
limitPerSourcenumberNoLimit 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
scrapeAdDetailsbooleanNoEnable this option to scrape ads details such as EU Reach info
scrapePageAds.periodselectNoSearch ads in given date range
scrapePageAds.sortByselectNoSort by impressions or date. Default: Impressions
scrapePageAds.countryCodetextNo2-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.activeStatusselectNo

Endpoints

GET/v1/agents/resources/inspect/apify.curious_coder.facebook-ads-library-scraperPublic
POST/v1/agents/resources/estimate/apify.curious_coder.facebook-ads-library-scraperPublic
POST/v1/agents/resources/run/apify.curious_coder.facebook-ads-library-scraperAgent key
GET/v1/agents/resources/runs/{run_id}Agent key

Quick 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.