> Documentation index: https://docs.scrapier.io/llms.txt
> Auth: header `X-API-Key: <key>` · Base: https://api.scrapier.io/api/v2 · Synchronous; paginate with `cursor` ← `data.next_cursor`.

# Google Ad Library Leads

Structured Google data: send `urls`. Single lookup, 1 credit per successful call.

`GET|POST https://api.scrapier.io/api/v2/google-ad-library-leads/` · 1 credit per successful call · Single lookup · Long-running

## Overview

Call `GET /api/v2/google-ad-library-leads/` with `urls`. The results are in `data.lead`. 3 optional parameters refine the call (see Parameters).

## Request

```bash
curl -G "https://api.scrapier.io/api/v2/google-ad-library-leads/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "urls=https://adstransparency.google.com/advertiser/AR04619580580634296321" \
  --max-time 210
```

```python
import requests

resp = requests.get(
    "https://api.scrapier.io/api/v2/google-ad-library-leads/",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"urls": "https://adstransparency.google.com/advertiser/AR04619580580634296321"},
    timeout=210,
)
body = resp.json()
if not resp.ok:
    raise RuntimeError(body.get("error") or body.get("detail"))

print(body["data"]["lead"])
```

POST with a JSON body works too (same parameters; the body is merged over the query string).

## Parameters

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `X-API-Key` (header) | string | yes | — | Your API key. |
| `urls` | string | yes | e.g. `https://adstransparency.google.com/advertiser/AR04619580580634296321` | Google Ads Transparency Center advertiser URL. Single lookup -- next_cursor always null. |
| `cursor` | string | no | — | Pagination cursor returned in the previous response's `next_cursor`. Pass it back unchanged to fetch the next page. When `next_cursor` is null, you have reached the last page. |
| `max_items` | integer | no | `200` | Locked in cursor. |
| `max_creatives_to_try` | integer | no | `12` | Locked in cursor. |
| `use_proxy` | boolean | no | `true` | Route the request through Scrapier's residential proxy pool. Default: `true`. Leave as is unless support tells you otherwise. |
| `raw_data` | boolean | no | `false` | When true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under `raw_responses`, in place of the formatted items. When false (default) you get the formatted output. Pagination (`cursor` / `next_cursor`) works the same in both modes. |

## Response

HTTP 200. Results are in `data.lead`. Sample from the live catalog, arrays trimmed to 3 items.

```json
{
  "success": true,
  "data": {
    "urls": "https://adstransparency.google.com/advertiser/AR04619580580634296321",
    "lead": {
      "input_url": "https://adstransparency.google.com/advertiser/AR04619580580634296321",
      "advertiser_id": "AR04619580580634296321",
      "advertiser_name": "Pokemon Co., Ltd.",
      "ad_library_sample_url": "https://adstransparency.google.com/advertiser/AR04619580580634296321/creative/CR16261692295231832065",
      "creatives_found": 200,
      "destination_url": "https://play.google.com/store/apps/details?id=jp.pokemon.pokemonsleep",
      "destination_type": "play_store",
      "emails": [
        "app-auto-reply@pokemon-support.com",
        "app-info@pokemon.co.jp"
      ],
      "email_source": "play_store_listing",
      "developer_name": "THE POKEMON COMPANY",
      "success": true,
      "status": "ok",
      "error": null,
      "note": null,
      "scraped_at": "2026-09-26T11:22:53.106Z"
    },
    "next_cursor": null
  }
}
```

## Response fields

| Field | Type | Example | Description |
|---|---|---|---|
| `urls` | string | `https://adstransparency.google.com/advertiser…` |  |
| `lead` | object | `{…}` | The results. |
| `next_cursor` | null | `null` | Pass back as `cursor` for the next page. `null` on the last page. |
| `lead.input_url` | string | `https://adstransparency.google.com/advertiser…` |  |
| `lead.advertiser_id` | string | `AR04619580580634296321` |  |
| `lead.advertiser_name` | string | `Pokemon Co., Ltd.` |  |
| `lead.ad_library_sample_url` | string | `https://adstransparency.google.com/advertiser…` |  |
| `lead.creatives_found` | integer | `200` |  |
| `lead.destination_url` | string | `https://play.google.com/store/apps/details?id…` |  |
| `lead.destination_type` | string | `play_store` |  |
| `lead.emails` | array | `[2 items]` |  |
| `lead.email_source` | string | `play_store_listing` |  |
| `lead.developer_name` | string | `THE POKEMON COMPANY` |  |
| `lead.success` | boolean | `true` |  |
| `lead.status` | string | `ok` |  |
| `lead.error` | null | `null` |  |
| `lead.note` | null | `null` |  |
| `lead.scraped_at` | string | `2026-09-26T11:22:53.106Z` |  |

## Pagination

Single lookup: everything comes back in one call and `next_cursor` is always `null`.

## Errors

Failed calls are free. Branch on HTTP status; the message is in `error` (or `detail`). See https://docs.scrapier.io/errors.md

- **400** Bad input. The exact message varies by endpoint. `{"success":false,"error":"…"}`
- **402** Balance below the endpoint's price. `{"error":"Insufficient credits. Buy more to scrape more.","balance":1,"required":2}`
- **403** Invalid or unknown API key. `{"detail":"Authentication service unavailable or invalid API key."}`
- **429** Throttled — wait for Retry-After. `{"detail":"Request was throttled. Expected available in N seconds."}`
- **404** unknown slug · **503** busy (retry after `Retry-After`) · **5xx** upstream failure or timeout (retry with backoff).

## Notes

- The response data carries its own `success` field from the scraper. The outer `success` is what counts: an HTTP 200 with outer `success: true` is billed, even if the inner field says otherwise.
- This endpoint can take several minutes. Set your client timeout to at least 210 seconds.

## Related

- [Google Maps Places](https://docs.scrapier.io/api-reference/google/google-maps.md): Search Google Maps for places matching a keyword around a location and get names, ratings, addresses and place IDs.
- [Google Ad Transparency](https://docs.scrapier.io/api-reference/google/google-ads-transparency.md): Structured Google data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [Google Autocomplete](https://docs.scrapier.io/api-reference/google/google-autocomplete.md): Structured Google data: send `queries`. Cursor-paginated, 1 credit per successful call.
- [Google Play Reviews](https://docs.scrapier.io/api-reference/google/google-play-reviews.md): Structured Google data: send `urls`. Cursor-paginated, 1 credit per successful call.
