← API Catalog
Apify·Async
Facebook Ads Library Scraper: Meta Ad Spy Tool
Social$0.005 / Actor Start
What it does
Scrape Facebook & Instagram ads from Meta Ad Library by keyword, page or URL. Get ad copy, creatives, carousel cards, CTA links, EU spend, impressions, age/gender audience reach and running-days per ad. Filter by country, language, status. For ad spy, dropshipping, agencies. $0.75/1K ads.
Returns: Scrape Facebook & Instagram ads from Meta Ad Library by keyword, page or URL. Get ad copy, creatives, carousel cards, CTA links, EU spend, impressions, age/gender audience reach and running-days per ad. Filter by country, language, status. For ad spy, dropshipping, agencies. $0.75/1K ads.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
urls | array | No | List of Meta Ad Library URLs or Facebook page ad URLs. Supports search results URLs, page URLs, and filtered URLs. Process multiple URLs in one run. |
pageId | text | No | View all ads from a specific Facebook page. Get the page ID from the page URL or About section. |
country | text | No | ISO 2-letter country code (US, FR, GB, DE, etc.). Use 'ALL' for worldwide. |
sortMode | select | No | Sort results by relevance, total impressions, or start date. |
enrichAds | boolean | No | Add CTA detection, ad category (ecommerce/lead_gen/app_install), running duration, hashtag count, word count, and a winner_score (0-100) flagging proven performers by longevity + variants + still-active. |
mediaType | select | No | Filter by media type: all, image, video, or meme. |
analyzeAds | boolean | No | Use AI to classify each ad's marketing angle, emotional hook, offer type and target persona. Paid Apify plan only. Billed per ad analyzed. |
maxResults | number | No | Maximum number of ads to extract per URL. Initial page load gives ~28 ads. More requires scrolling. |
searchTerms | text | No | Keywords to search in ad text (e.g. 'fitness', 'nike', 'skincare'). Alternative to pasting an Ad Library URL. |
activeStatus | select | No | Filter by active, inactive, or all ads. |
sortDirection | select | No | Sort ascending or descending. |
maxConcurrency | number | No | How many URLs to scrape in parallel. Higher = faster on multi-URL/multi-brand runs, each on its own residential IP. Kept to 8 max so the browser fallback stays within the 512MB memory limit. |
contentLanguages | array | No | Filter ads by language (ISO 639-1 codes, e.g. ['en', 'fr']). Leave empty for all languages. |
transcribeVideos | boolean | No | Transcribe the audio of each video ad so you can read the script/hook of winning video creatives. Paid Apify plan only. Billed per video transcribed. |
proxyConfiguration | json | No | Advanced: override the proxy. Defaults to Apify residential proxy in the search country. Leave empty to use the recommended default. |
useResidentialProxy | boolean | No | Route requests through residential IPs. Required to fetch more than ~30 ads per search (Facebook rate-limits pagination per IP). Disable to run free on datacenter IPs at ~30 ads/URL. |
Endpoints
GET
/v1/agents/resources/inspect/apify.dltik.facebook-ads-scraperPublicPOST
/v1/agents/resources/estimate/apify.dltik.facebook-ads-scraperPublicPOST
/v1/agents/resources/run/apify.dltik.facebook-ads-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.dltik.facebook-ads-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.