← API Catalog
Apify·Async
Facebook Ads Library Scraper
Social$0.005 / Run started
What it does
Scrape Facebook / Meta Ad Library for competitor ad monitoring. Search by keyword, Page URL, pasted Ads Library URL, country, status, and media type. Extract creatives, copy, links, media, platforms, spend. No login or Meta API token required.
Returns: Scrape Facebook / Meta Ad Library for competitor ad monitoring. Search by keyword, Page URL, pasted Ads Library URL, country, status, and media type. Extract creatives, copy, links, media, platforms, spend. No login or Meta API token required.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
maxAds | number | No | Maximum number of ads to extract per search query, page URL, or Ads Library URL. The scraper scrolls to load more results automatically. Safety cap: 500 per search/page task; split very large exports into smaller runs for clearer progress and lower abort risk. |
country | text | No | ISO country code to search in. Use "ALL" for all countries. |
pageUrls | array | No | Enter Facebook Page URLs to scrape ads from specific advertisers (e.g. "https://www.facebook.com/shopify"). Safety cap: up to 20 total search/page/Ads Library URL tasks per run. |
mediaType | select | No | Filter by ad media type. |
activeStatus | select | No | Filter by ad status. |
searchQueries | array | No | Enter keywords to search for in the Ad Library (e.g. "shopify", "running shoes"). Each keyword runs a separate search. Safety cap: up to 20 total search/page/Ads Library URL tasks per run. |
adsLibraryUrls | array | No | Paste Facebook Ads Library results URLs copied from facebook.com/ads/library/. Embedded URL filters (keyword, page ID, country, status, media type, search type, and supported ad type) are used for this input; unsupported URL parameters such as date, language, or platform filters are ignored with a warning. Safety cap: up to 20 total search/page/Ads Library URL tasks per run. |
Endpoints
GET
/v1/agents/resources/inspect/apify.automation-lab.facebook-ads-libraryPublicPOST
/v1/agents/resources/estimate/apify.automation-lab.facebook-ads-libraryPublicPOST
/v1/agents/resources/run/apify.automation-lab.facebook-ads-libraryAgent 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.automation-lab.facebook-ads-library \
-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.