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
| Field | Type | Description |
|---|---|---|
| targetUrl | string | Paste the full Facebook Ad Library URL directly. If provided, all parameter fields below are ignored. Leave empty to build the URL from parameters instead. |
| country | string | ISO 3166-1 alpha-2 country code for ad targeting (e.g. US, IN, IT, GB). Required when not using a direct URL. default "US" |
| searchQuery | string | Keyword search query (e.g. 'nike', 'adidas shoes'). This searches across all ads by keyword. |
| pageId | string | Numeric 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 "" |
| adId | string | Numeric ID of a specific ad to look up (e.g. 1191898553123641). |
| activeStatus | string (active | inactive | all) | Filter by ad campaign status. default "active" |
| adType | string (all | political_and_issue_ads | housing | employment | credit) | Filter by type of ads. default "all" |
| mediaType | string (all | image | video | meme) | Filter by media format. default "all" |
| isTargetedCountry | boolean | If true, only show ads specifically targeting the selected country. default false |
| contentLanguages | array | Filter by content language codes (ISO 639-1, e.g. 'en', 'it', 'hi'). Leave empty for all languages. |
| sortMode | string (total_impressions | relevance | start_date) | Sort metric for results. default "total_impressions" |
| sortDirection | string (desc | asc) | Sort order for results. default "desc" |
| maxConcurrency | integer | Number 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 |
| requestHandlerTimeoutSecs | integer | Maximum 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 |
| proxyUrl | string | Add 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 120mcp
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.