← 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

ParameterTypeRequiredDescription
urlsarrayNoList 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.
pageIdtextNoView all ads from a specific Facebook page. Get the page ID from the page URL or About section.
countrytextNoISO 2-letter country code (US, FR, GB, DE, etc.). Use 'ALL' for worldwide.
sortModeselectNoSort results by relevance, total impressions, or start date.
enrichAdsbooleanNoAdd 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.
mediaTypeselectNoFilter by media type: all, image, video, or meme.
analyzeAdsbooleanNoUse AI to classify each ad's marketing angle, emotional hook, offer type and target persona. Paid Apify plan only. Billed per ad analyzed.
maxResultsnumberNoMaximum number of ads to extract per URL. Initial page load gives ~28 ads. More requires scrolling.
searchTermstextNoKeywords to search in ad text (e.g. 'fitness', 'nike', 'skincare'). Alternative to pasting an Ad Library URL.
activeStatusselectNoFilter by active, inactive, or all ads.
sortDirectionselectNoSort ascending or descending.
maxConcurrencynumberNoHow 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.
contentLanguagesarrayNoFilter ads by language (ISO 639-1 codes, e.g. ['en', 'fr']). Leave empty for all languages.
transcribeVideosbooleanNoTranscribe 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.
proxyConfigurationjsonNoAdvanced: override the proxy. Defaults to Apify residential proxy in the search country. Leave empty to use the recommended default.
useResidentialProxybooleanNoRoute 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-scraperPublic
POST/v1/agents/resources/estimate/apify.dltik.facebook-ads-scraperPublic
POST/v1/agents/resources/run/apify.dltik.facebook-ads-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.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.