# Search Google advertisers

> Find an advertiser's Google Ads id by brand name, with how many ads they run, plus matching websites.

- **Request:** `GET https://api.lurkapi.com/v1/google/adLibrary/advertisers/search`
- **Auth:** `x-api-key` header ([get a free key](https://lurkapi.com/login?next=/dashboard))
- **Cost:** 1 credit per call. Validation errors, `401`/`402`/`429` rejections and `5xx` failures are free; `not_found` is charged ([how charging works](https://lurkapi.com/docs.md#credits)).
- **MCP tool:** `google_search_advertisers` on `https://api.lurkapi.com/mcp`
- **Freshness:** responses are cached for up to 1 day
- **Try it live:** https://lurkapi.com/docs/google/search-advertisers#try (no signup)
- **Platform:** [Google](https://lurkapi.com/docs/google.md) (adstransparency.google.com)
- **Web page:** https://lurkapi.com/docs/google/search-advertisers

## When 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.

| Name | Type | Required | Default | Allowed values | Description | Example |
| --- | --- | --- | --- | --- | --- | --- |
| `query` | string | yes |  |  | Brand or advertiser name, e.g. `nike`. | `nike` |
| `region` | string | no | `US` |  | 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](https://lurkapi.com/login?next=/dashboard).

curl:

```bash
curl "https://api.lurkapi.com/v1/google/adLibrary/advertisers/search?query=nike" \
  -H "x-api-key: YOUR_API_KEY"
```

JavaScript:

```js
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);
```

Python:

```python
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 `…`.

200 OK (application/json):

```json
{
  "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.

| 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` | `string`, nullable | Country the advertiser is based in, as a 2-letter code. |
| `advertisers[].number_of_ads_estimate` | `number`, nullable | How many ads they have in `region`: the lower end of Google's range (exact for small advertisers). |
| `advertisers[].number_of_ads_range` | `object`, nullable | 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](https://lurkapi.com/docs.md#credits)). [All error codes](https://lurkapi.com/docs.md#errors).

| 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](https://lurkapi.com/docs.md#claude), this endpoint is the `google_search_advertisers` tool. Ask in plain English, for example:

Ask Claude:

```text
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:

Tool arguments:

```json
{
  "query": "nike"
}
```

Tool results skip nulls and empty lists to save tokens.

---

Previous: [TikTok Shop product](https://lurkapi.com/docs/tiktok/product.md) · Next: [Google ads by company](https://lurkapi.com/docs/google/company-ads.md)
