Ad Library API: Search Meta and Google Ads
The ads a brand, keyword or website runs on Meta and Google, with their copy, start dates and days running. Research a competitor's advertising.
/v1/ads/search
Request
Send a JSON body with the fields below.
import requestsr = requests.post( 'https://api.snoopscan.com/v1/ads/search', headers={'Authorization': 'Bearer sk_YOUR_KEY'}, json={ 'query': 'running shoes', 'platforms': [ 'meta', 'google' ], 'country': 'US', 'limit': 20 },)print(r.json())
const r = await fetch('https://api.snoopscan.com/v1/ads/search', { method: 'POST', headers: { Authorization: 'Bearer sk_YOUR_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ "query": "running shoes", "platforms": [ "meta", "google" ], "country": "US", "limit": 20 }),});console.log(await r.json());
curl -X POST https://api.snoopscan.com/v1/ads/search \ -H 'Authorization: Bearer sk_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{ "query": "running shoes", "platforms": [ "meta", "google" ], "country": "US", "limit": 20}'
Parameters
Response
{ "success": true, "data": { "query": "running shoes", "advertiser": null, "domain": null, "country": "US", "sort": "days_running", "ads": [ { "platform": "meta", "library_id": "1234567890123456", "advertiser": { "name": "Example Running Co", "id": "100000000000001", "page_url": "https://www.facebook.com/examplerunning/" }, "text": "Lightweight trainers for every distance.", "headline": "Shop the Spring Range", "cta": "Shop now", "link_url": "https://shop.example.com/running", "format": "IMAGE", "media": [ { "type": "image", "url": "https://img.example.com/ad-1.jpg", "thumbnail_url": null } ], "started_at": "2026-09-14T00:00:00Z", "ended_at": null, "days_running": 83, "active": true, "placements": [ "facebook", "instagram" ], "countries": [ "US" ], "variants_count": 4, "ad_url": "https://www.facebook.com/ads/library/?id=1234567890123456" }, { "platform": "google", "library_id": "CR01234567890123456789", "advertiser": { "name": "Example Sports Ltd", "id": "AR01234567890123456789", "page_url": null }, "text": null, "headline": null, "cta": null, "link_url": null, "format": "text", "media": [], "started_at": "2026-11-02T00:00:00Z", "ended_at": null, "days_running": 34, "active": true, "placements": [], "countries": [ "US" ], "variants_count": null, "ad_url": "https://adstransparency.google.com/advertiser/AR01234567890123456789/creative/CR01234567890123456789" } ], "platforms": [ { "platform": "meta", "status": "ok", "ads": 1, "total": 312, "reason": null }, { "platform": "google", "status": "ok", "ads": 1, "total": 40, "reason": null } ], "next_cursor": "eyJtIjp7ImEiOiJhYmMifX0", "cost": { "credits": 7, "extras": { "ad_search_meta": 1, "ad_search_google": 1 } } }}
adsis one list across the libraries, sorted bydays_runningor bynewest.platformsays which library an ad came from, andlibrary_idis its id there.advertiserhas thename, the library'sidfor it and itspage_urlwhere there is one. Send thatidasadvertiserto see only that advertiser's ads.text,headline,cta,link_urlandmediaare the ad itself. Media is linked, never downloaded. Google lists the advertiser, format and dates, and leaves the words empty when it shows none.started_at,ended_at,days_runningandactivesay when the ad ran.ended_atisnullwhile the ad is live.countries,placementsandvariants_countare filled when the library shows them.ad_urlopens the ad in the library itself.platformshas one row for each library you asked for, with itsstatus, the number ofadsit returned andtotal, how many it says match. Areasonis added when there is something to explain.
Library status
| Status | What it means |
|---|---|
ok | The library answered with ads. |
empty | The library answered and has no ads for this search. |
failed | The library did not answer. Try the search again. |
unavailable | The library is not offered, and reason says why. tiktok is accepted as a platform and always comes back this way, because TikTok asks every visitor to pass a human check before it shows ads. |
More ads
When a library has more ads, next_cursor is set. Send it back as cursor, with the same search, to get the next ads. It is null when there are no more. limit is the most ads from each library, so a limit of 100 on two libraries can return 200 ads.
Billing
A search is billed for each library that returned ads, at one flat price whatever the limit. A library that answered with no ads, or did not answer, costs nothing. cost.credits is what the call was charged.
| Library | Credits |
|---|---|
| Meta Ad Library | 5 / search |
| Google Ads Transparency Center | 2 / search |
See Credits for every rate.
MCP tool
The same search is the ads tool on the MCP server. It takes query, advertiser, domain, platforms, country, active_only, sort, limit and cursor, and answers in markdown.
Use SnoopScan to find the Meta and Google ads that point to example.com, longest running first.
maxAge, is free. See Credits for every rate.
Related
- Tech The CMS, shop platform, theme, analytics, CDN, firewall and server a site runs, read from one page.
- Brand A company's name, description, logos, brand colors, fonts and social links, read from its own site.
- Social data Profiles, posts, videos, comments and transcripts from eight social platforms.