How to see a competitor’s Facebook and Instagram ads
Find every ad a competitor runs on Facebook and Instagram, by hand in the Meta Ad Library or through an API, and keep them before the links expire.
Every ad running on Facebook, Instagram, Messenger, Threads and the Audience Network is public in the Meta Ad Library. You can read it by hand, or ask for it from your own code.
1By hand
Open the Meta Ad Library, choose a country and "All ads", and type the brand’s name. Pick the brand’s page from the suggestions, not the keyword search, or you also get every ad that mentions the name. The page shows each ad with its start date, placements and versions.
2Through an API
With Public Ads API, search once by keyword to find the advertiser. Each result carries advertiser.id, the Facebook page’s id.
curl "https://api.publicadsapi.com/v1/meta/ads?q=example+running+co&country=GB" \ -H "authorization: Bearer $PADS_API_KEY"
3Every ad from that page
Send that id as page_id to get only that page’s ads, 30 a page. Add sort=newest to see the latest first, or active=true for only those still running. Follow next_cursor for more.
curl "https://api.publicadsapi.com/v1/meta/ads?page_id=100000000000001&country=ALL&sort=newest" \ -H "authorization: Bearer $PADS_API_KEY"
4Keep what you need
Meta’s image and video addresses expire, often within days. Download the files you want to keep when you get them. Meta also drops a stopped US commercial ad from the library, so an ad you didn’t save may be gone later.
5More detail on one ad
For ads delivered in the EU, GET /v1/ads/{id} adds reach by country, age and gender, the targeting used and who paid. See one ad.
Every account starts with 100 free credits a month and a sandbox key, no card. Get a free API key or read the quickstart.
Try it free