Endpoints

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.

POST /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}'
Returns ads · text · CTA · days running · from 2 credits.

Parameters

The parameter list could not be loaded. The example above is correct. Refresh in a moment for the full list.

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            }        }    }}
Ads from both libraries in one list, longest running first. The advertisers here are made up.
  • ads is one list across the libraries, sorted by days_running or by newest. platform says which library an ad came from, and library_id is its id there.
  • advertiser has the name, the library's id for it and its page_url where there is one. Send that id as advertiser to see only that advertiser's ads.
  • text, headline, cta, link_url and media are 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_running and active say when the ad ran. ended_at is null while the ad is live.
  • countries, placements and variants_count are filled when the library shows them. ad_url opens the ad in the library itself.
  • platforms has one row for each library you asked for, with its status, the number of ads it returned and total, how many it says match. A reason is added when there is something to explain.

Library status

StatusWhat it means
okThe library answered with ads.
emptyThe library answered and has no ads for this search.
failedThe library did not answer. Try the search again.
unavailableThe 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.

LibraryCredits
Meta Ad Library5 / search
Google Ads Transparency Center2 / 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.

Prompt Use SnoopScan to find the Meta and Google ads that point to example.com, longest running first.
Want to try a search first? The ad library search runs this request from a form.
Failed requests are not charged. Re-reading a page you already fetched, within maxAge, is free. See Credits for every rate.

Related