Apify Store
AS
Apify Store
/whoareyouanas/meta-ad-scraper

Meta (Facebook) Ad Library Scraper - Fast & Reliable

Scrape Meta ads in seconds - no fluff, just instant access to the ad data and insights you need. Get detailed ad information including title, description, images, videos, CTA, Social platform and meta

liveasyncunknown~30s typical
agentssocial medialead generationmeta
$0.013
per result + $0.005 call
plus $0.001 platform fee per run
Actor charges $0.01 per result; Cracked adds 25% plus a $0.005 call fee
Bring your own Apify Store key: provider portion drops to $0.
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run apify /whoareyouanas/meta-ad-scraper for me.

Input

FieldTypeDescription
targetUrlstringPaste the full Facebook Ad Library URL directly. If provided, all parameter fields below are ignored. Leave empty to build the URL from parameters instead.
countrystringISO 3166-1 alpha-2 country code for ad targeting (e.g. US, IN, IT, GB). Required when not using a direct URL. default "US"
searchQuerystringKeyword search query (e.g. 'nike', 'adidas shoes'). This searches across all ads by keyword.
pageIdstringNumeric Facebook Page ID to view all ads from a specific page (e.g. 108047081396228). You can find this in the URL when viewing a page's ads. default ""
adIdstringNumeric ID of a specific ad to look up (e.g. 1191898553123641).
activeStatusstring (active | inactive | all)Filter by ad campaign status. default "active"
adTypestring (all | political_and_issue_ads | housing | employment | credit)Filter by type of ads. default "all"
mediaTypestring (all | image | video | meme)Filter by media format. default "all"
isTargetedCountrybooleanIf true, only show ads specifically targeting the selected country. default false
contentLanguagesarrayFilter by content language codes (ISO 639-1, e.g. 'en', 'it', 'hi'). Leave empty for all languages.
sortModestring (total_impressions | relevance | start_date)Sort metric for results. default "total_impressions"
sortDirectionstring (desc | asc)Sort order for results. default "desc"
maxConcurrencyintegerNumber of browser tabs to run in parallel. Keep at 1 for stability. Increase to 2-3 only if you need faster scraping and have sufficient memory. Higher values increase memory usage. default 1
requestHandlerTimeoutSecsintegerMaximum time to wait for a page to load and scrape all ads. Pages with 200+ ads need 600-900 seconds. Default of 900 seconds (15 minutes) handles large datasets. default 900
proxyUrlstringAdd your Apify Proxy URL to get 99% of all ads! Format: http://groups-RESIDENTIAL:YOUR_APIFY_TOKEN@proxy.apify.com:8000. Get your token from Apify Console → Proxy → Groups tab → RESIDENTIAL link → Copy link. External proxies (BrightData, Oxylabs) also work. Or connect with us directly if you don't want to use Proxy but want 99% of all ads.

Call it

curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
  -H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
  -d '{"provider":"apify","endpoint":"/whoareyouanas/meta-ad-scraper","input":{"country":"US","searchQuery":"nike","pageId":"","maxConcurrency":3,"requestHandlerTimeoutSecs":900},"wait":false}'
poll
curl "https://cracked-ai-pearl.vercel.app/v1/runs/<runId>?wait=30" -H "Authorization: Bearer ck_live_..."
cli
npx cracked-ai run -p apify -e /whoareyouanas/meta-ad-scraper -i '{"country":"US","searchQuery":"nike","pageId":"","maxConcurrency":3,"requestHandlerTimeoutSecs":900}' -w 120
mcp
run_tool({ provider: "apify", endpoint: "/whoareyouanas/meta-ad-scraper", input: {"country":"US","searchQuery":"nike","pageId":"","maxConcurrency":3,"requestHandlerTimeoutSecs":900}, wait: false })

Try it

Runs against your signed-in workspace balance. Sign in if you have not.