Facebook Ad Library Scraper
Scrape ads from the public Facebook Ad Library by keyword, advertiser page and country: ad text, CTA, landing URL, images, videos, run dates and platforms. No login or cookies. Pay only for ads returned.
Run Facebook Ad Library Scraper on ApifyWhat does Facebook Ad Library Scraper do?
Facebook Ad Library Scraper collects ads from the public Meta Ad Library, the transparency site where Meta lists ads that run on Facebook, Instagram, Messenger, Threads, WhatsApp and the Audience Network. Search by keyword, by advertiser page id, or paste Ad Library search URLs, and filter by country, active or inactive status, ad category and media type. For every ad you get the advertiser page and its link, the run dates, the platforms it ran on, the ad text, headline, link description, call to action, the landing URL and the image and video URLs, plus how many versions of the ad exist. For political and issue ads, you also get the spend range, impressions range, reach and who paid for the ad when Facebook shows them. It works without a Facebook account, cookies or API token. Use it for competitor ad research, creative inspiration, market research and lists of brands that advertise on Meta.
FAQ
Do I need a Facebook account or API token?
No. The scraper opens the public Ad Library as a logged-out visitor. It uses no Facebook login, no account cookies and no Ad Library API token.
Which countries can I search?
Any country the Ad Library offers, by its two letter ISO code (for example US, GB, DE, BR), or ALL for every country. Each search uses one country.
Can I see ad spend?
Only for political and issue ads (and other ads where Facebook shows it to logged-out visitors). For those ads you get the spend range, currency, impressions range, estimated reach and who paid. Facebook does not show spend for regular commercial ads, so the scraper cannot return it.
How do I find a page id?
Open the advertiser in the Ad Library and click "See all ads". The number after view_all_page_id= in the address bar is the page id. You can also paste that whole URL into Ad Library URLs.
Why do I get fewer ads than the maximum?
The Ad Library shows a limited list for each search, and some searches simply have fewer matching ads. The run log and the FAILED_ITEMS record in the key-value store say why a search stopped.
Is there a LinkedIn version?
Yes. LinkedIn Ad Library Scraper returns ads from LinkedIn's public Ad Library with matching field names such as adUrl, adText, cta and landingUrl, so you can compare both channels side by side.
Get started
Open the Facebook Ad Library Scraper page on Apify, add your input and run it. Results export as JSON, CSV or Excel, or come back through the Apify API and the Apify MCP server for AI agents.