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

# TikTok Ad Library Leads

Structured TikTok data: every input is optional. Single lookup, 3 credits per successful call.

`GET|POST https://api.scrapier.io/api/v2/tiktok-ad-library-leads/` · 3 credits per successful call · Single lookup

## Overview

Call `GET /api/v2/tiktok-ad-library-leads/`. The results are in `data.leads`. 16 optional parameters refine the call (see Parameters).

## Request

```bash
curl -G "https://api.scrapier.io/api/v2/tiktok-ad-library-leads/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --max-time 210
```

```python
import requests

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

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

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

## Parameters

> **Note:** No parameter is strictly required, but send at least the inputs shown in the example.

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `X-API-Key` (header) | string | yes | — | Your API key. |
| `keyword` | string | no | `Skincare` | Optional search term for the default single-query mode. Single lookup -- next_cursor is always null. |
| `country` | string | no | `US` | — |
| `period` | integer | no | `180` | One of: `7`, `30`, `180`. |
| `order_by` | string | no | `for_you` | One of: `for_you`, `impression`, `ctr`, `play_2s_rate`, `play_6s_rate`, `cvr`, `like`. |
| `ad_format` | string | no | `All ad types` | One of: `All ad types`, `Spark ads`, `Non-Spark ads`. |
| `ad_language` | string | no | `en` | — |
| `like_tier` | integer | no | — | — |
| `industry` | string | no | `Skincare` | — |
| `queries` | string | no | — | Optional JSON array of per-search override objects to sweep many keyword/industry/country combinations in ONE call. |
| `max_items` | integer | no | `30` | Ads collected per query before dedup/grouping. |
| `max_landing_pages_per_advertiser` | integer | no | `3` | — |
| `max_concurrent_queries` | integer | no | `2` | — |
| `max_concurrent_details` | integer | no | `2` | — |
| `max_concurrent_crawls` | integer | no | `10` | — |
| `max_retries` | integer | no | `5` | — |
| `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.leads`. Sample from the live catalog, arrays trimmed to 3 items.

```json
{
  "success": true,
  "data": {
    "keyword": "Skincare",
    "returned_count": 1,
    "leads": [
      {
        "brand": null,
        "brand_names_seen": [],
        "domain": "www.amazon.com",
        "ads_scanned": 1,
        "unique_landing_pages_resolved": 1,
        "emails": [
          "api-services-support@amazon.com"
        ],
        "phones": [],
        "whatsapp": [],
        "social_links": {},
        "websites": [
          "www.amazon.com"
        ],
        "sample_top_ads_url": "https://ads.tiktok.com/business/creativecenter/topads/7585128842285809686/pc/en?countryCode=US&period=180",
        "lead_sources": [
          {
            "materialId": "7585128842285809686",
            "channel": "website",
            "found": {
              "emails": [
                "api-services-support@amazon.com"
              ],
              "phones": [],
              "whatsapp": [],
              "socialLinks": {}
            },
            "notes": null
          }
        ],
        "notes": null,
        "scraped_at": "2026-09-27T08:49:10.000Z"
      }
    ],
    "next_cursor": null
  }
}
```

## Response fields

| Field | Type | Example | Description |
|---|---|---|---|
| `keyword` | string | `Skincare` |  |
| `returned_count` | integer | `1` |  |
| `leads` | array | `[1 item]` | The results. |
| `next_cursor` | null | `null` | Pass back as `cursor` for the next page. `null` on the last page. |
| `leads[].brand` | null | `null` |  |
| `leads[].brand_names_seen` | array | `[]` |  |
| `leads[].domain` | string | `www.amazon.com` |  |
| `leads[].ads_scanned` | integer | `1` |  |
| `leads[].unique_landing_pages_resolved` | integer | `1` |  |
| `leads[].emails` | array | `[1 item]` |  |
| `leads[].phones` | array | `[]` |  |
| `leads[].whatsapp` | array | `[]` |  |
| `leads[].social_links` | object | `{…}` |  |
| `leads[].websites` | array | `[1 item]` |  |
| `leads[].sample_top_ads_url` | string | `https://ads.tiktok.com/business/creativecente…` |  |
| `leads[].lead_sources` | array | `[1 item]` |  |
| `leads[].notes` | null | `null` |  |
| `leads[].scraped_at` | string | `2026-09-27T08:49:10.000Z` |  |

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

- Nothing special: send the inputs, read the result.

## Related

- [TikTok Ad Library](https://docs.scrapier.io/api-reference/tiktok/tiktok-ads.md): Structured TikTok data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [TikTok Ads Top](https://docs.scrapier.io/api-reference/tiktok/tiktok-ads-top.md): Structured TikTok data: every input is optional. Cursor-paginated, 1 credit per successful call.
- [TikTok Collection Videos](https://docs.scrapier.io/api-reference/tiktok/tiktok-collection-videos.md): Structured TikTok data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [TikTok Comment Replies](https://docs.scrapier.io/api-reference/tiktok/tiktok-comment-replies.md): Structured TikTok data: send `urls`. Cursor-paginated, 1 credit per successful call.
