Apify Store
AS
Apify Store
/igolaizola/facebook-ad-library-scraper

Facebook (Meta) Ads Library Scraper

Extract powerful ad insights from Meta's Facebook Ads Library. Scrape comprehensive data including IDs, ad text, images, links, and page details to fuel digital marketing strategies and competitive re

liveasyncunknown~30s typical
social medialead generationseo toolsfacebooklibrary
$0.00094
per result + $0.005 call
plus $0.001 platform fee per run
Actor charges $0.00075 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 /igolaizola/facebook-ad-library-scraper for me.

Input

FieldTypeDescription
maxItems*integerMaximum number of ads to scrape default 10
querystringSearch query to filter ads. Use either query or pageId.
pageIdstringFetch all ads for a specific page ID without a query. Use either pageId or query.
countrystring (ALL | AX | AL | DZ | AS | AD)Country code to filter ads default "ALL"
categorystring (all | political_and_issue_ads | housing_ads | employment_ads | credit_ads)Category to filter ads default "all"
mediaTypestring (all | image | meme | image_and_meme | video | none)Media type to filter ads default "all"
sortBystring (mostRecent | impressions)Sort order for results default "mostRecent"
activeStatusstring (active | inactive | all)Active status to filter ads default "active"
minDatestringSelect min date in format YYYY-MM-DD
maxDatestringSelect max date in format YYYY-MM-DD
advertisersarrayPage IDs to filter by advertiser default []
fetchDetailsbooleanWhen enabled, fetch advertiser and transparency details for each ad. default false

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":"/igolaizola/facebook-ad-library-scraper","input":{"maxItems":3,"query":"put your search query here"},"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 /igolaizola/facebook-ad-library-scraper -i '{"maxItems":3,"query":"put your search query here"}' -w 120
mcp
run_tool({ provider: "apify", endpoint: "/igolaizola/facebook-ad-library-scraper", input: {"maxItems":3,"query":"put your search query here"}, wait: false })

Try it

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