Docs · Search Google advertisers
Search Google advertisers
Find an advertiser's Google Ads id by brand name, with how many ads they run, plus matching websites.
https://api.lurkapi.com/v1/google/adLibrary/advertisers/searchWhen to use this
Use it to turn a brand name into the advertiser_id that company ads (google_company_ads) needs, or to find the website to pass as domain. Big brands have one advertiser per country or agency; pick by region and number_of_ads_estimate.
The same suggestions as the search box on adstransparency.google.com: up to 10 advertisers and 10 websites, no pagination. region (default US) counts only ads shown there, so the list changes by region; pass ALL for every region.
Parameters
All parameters go in the query string.
| Parameter | Description |
|---|---|
querystringrequired | Brand or advertiser name, e.g. nike.
|
regionstringoptional | Count only ads shown in this country: a 2-letter code (US, GB, DE…), or ALL for anywhere.
|
Example request
Replace YOUR_API_KEY with your key, or set LURKAPI_KEY for the code. Get a free key.
curl "https://api.lurkapi.com/v1/google/adLibrary/advertisers/search?query=nike" \
-H "x-api-key: YOUR_API_KEY"const params = new URLSearchParams({
query: "nike",
});
const res = await fetch(`https://api.lurkapi.com/v1/google/adLibrary/advertisers/search?${params}`, {
headers: { "x-api-key": process.env.LURKAPI_KEY },
});
const data = await res.json();
if (!data.success) throw new Error(`${data.code}: ${data.error}`);
console.log(data.advertisers);import os
import requests
res = requests.get(
"https://api.lurkapi.com/v1/google/adLibrary/advertisers/search",
params={
"query": "nike",
},
headers={"x-api-key": os.environ["LURKAPI_KEY"]},
timeout=60,
)
data = res.json()
if not data["success"]:
raise RuntimeError(f"{data['code']}: {data['error']}")
print(data["advertisers"])Example response
A real response from this endpoint, captured from the live API and trimmed to a couple of items. Strings over 96 characters (mostly signed media URLs) are cut short and end in ….
Show the example response (1 KB)Hide
{
"success": true,
"credits_remaining": 999999,
"credits_charged": 1,
"advertisers": [
{
"name": "Nike, Inc.",
"advertiser_id": "AR16735076323512287233",
"region": "US",
"number_of_ads_estimate": 8000,
"number_of_ads_range": {
"min": 8000,
"max": 9000
},
"is_verified": true
},
{
"name": "NIKE SRL",
"advertiser_id": "AR17365672681860497409",
"region": "IT",
"number_of_ads_estimate": 1,
"number_of_ads_range": {
"min": 1,
"max": 1
},
"is_verified": true
}
],
"websites": [
{
"domain": "nike.com"
},
{
"domain": "nike.cl"
}
]
}Response fields
Every field of a successful response. [] marks a list: a[].b is the b of each item in a. nullable fields can be null; optional fields can be missing.
Show all 14 fieldsHide
| Field | Type | Description |
|---|---|---|
| success | true | Always true here; errors have success: false. |
| credits_remaining | number | Your balance after this call. On anonymous playground calls: free tries left today. |
| credits_charged | number | Credits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1). |
| advertisers | object[] | Matching advertisers, best match first. |
| advertisers[].name | string | The advertiser's verified name, e.g. Nike, Inc.. |
| advertisers[].advertiser_id | string | The advertiser's id (AR…). Pass it as advertiser_id to company ads. |
| advertisers[].region | stringnullable | Country the advertiser is based in, as a 2-letter code. |
| advertisers[].number_of_ads_estimate | numbernullable | How many ads they have in region: the lower end of Google's range (exact for small advertisers). |
| advertisers[].number_of_ads_range | objectnullable | The ad count as the range Google shows, e.g. 9000–10000; null when it gives none. |
| advertisers[].number_of_ads_range.min | number | Lower bound of the ad count. |
| advertisers[].number_of_ads_range.max | number | Upper bound of the ad count. |
| advertisers[].is_verified | boolean | false when Google marks the advertiser as not yet verified. |
| websites | object[] | Websites matching the query. |
| websites[].domain | string | A website with ads, e.g. nike.com. Pass it as domain to company ads. |
Caching and freshness
Responses are cached for up to 1 day, so a repeat call within that window can return the same data. It still costs 1 credit.
Errors
Errors return { success: false, error, code, docs } with the HTTP status below. Validation errors, 401/402/429 rejections and 5xx failures are free; not_found is charged (how charging works). All error codes.
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_api_key | No API key. Send it in the x-api-key header. |
| 401 | invalid_api_key | The key is unknown or was revoked. |
| 402 | insufficient_credits | Not enough credits for this call. Buy a pack or wait for tomorrow's top-up. |
| 405 | method_not_allowed | Endpoints take GET with query params. |
| 429 | rate_limited | Too many calls at once. Wait for the retry-after seconds, then retry. |
| 500 | internal_error | Something broke on our side. Retry; 5xx errors are free. |
| 502 | upstream_error | The platform didn't give a usable answer. Retry; 5xx errors are free. |
| 503 | upstream_busy | All our connections to the platform are busy. Retry in a few seconds; 5xx errors are free. |
| 504 | upstream_timeout | The platform took over 30 seconds to answer. Retry; timeouts are free. |
Use it in Claude
Once LurkAPI is connected to Claude, this endpoint is the google_search_advertisers tool. Ask in plain English, for example:
Use LurkAPI's google_search_advertisers with query "nike" and summarize what you find.Claude calls google_search_advertisers with arguments like these, and each call costs 1 credit:
{
"query": "nike"
}Tool results skip nulls and empty lists to save tokens.