Meta Ad Library Scraper
Automated scraping tool for collecting ad creatives from Meta Ad Library
Sandbox-Only Tool
The scraper uses Puppeteer (headless Chrome) to extract ads from Meta Ad Library. It runs in the development sandbox environment and is not available in the deployed version. To update ad data, run the scraper scripts from the sandbox terminal.
Current Data Status
40
D2C Brands
961
Scraped Ads
38
Brands with Ads
38 brands have scraped ad creatives
4 brands have no active ads on Meta
Available Scripts
batch-scrape.mjs
Scrape ads from Meta Ad Library for all brands using Puppeteer
$ node scripts/batch-scrape.mjsscrape-ad-counts.mjs
Scrape the total active ad count from Meta Ad Library pages
$ node scripts/scrape-ad-counts.mjsbatch-enrich.mjs
Enrich ads with LLM-powered classification (hook type, offer type, funnel stage, spend)
$ node scripts/batch-enrich.mjssync-data.mjs
Sync database to data.json for the frontend to consume
$ node scripts/sync-data.mjs