TikTok Ad Library Leads
Structured TikTok data: every input is optional. Single lookup, 3 credits per successful call.
GET · POST3 credits / successful callSingle lookup
Overview
Section titled “Overview”Call GET /api/v2/tiktok-ad-library-leads/. The results are in data.leads. 16 optional parameters refine the call (see Parameters).
Request
Section titled “Request”curl -G "https://api.scrapier.io/api/v2/tiktok-ad-library-leads/" \ -H "X-API-Key: YOUR_API_KEY" \ --max-time 210const params = new URLSearchParams({});
const res = await fetch(`https://api.scrapier.io/api/v2/tiktok-ad-library-leads/?${params}`, { headers: { "X-API-Key": "YOUR_API_KEY" }, signal: AbortSignal.timeout(210_000),});const body = await res.json();if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
console.log(body.data.leads);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"])curl -X POST "https://api.scrapier.io/api/v2/tiktok-ad-library-leads/" \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{}' \ --max-time 210Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
X-API-Key header | string | yes | — | Your API key from the dashboard. |
keyword | string | no | Skincare | Optional search term for the default single-query mode. Single lookup -- next_cursor is always null. |
country | string | no | US | No description in the catalog yet. |
period | integer | no | 180 | No description in the catalog yet. 730180 |
order_by | string | no | for_you | No description in the catalog yet. for_youimpressionctrplay_2s_rateplay_6s_ratecvrlike |
ad_format | string | no | All ad types | No description in the catalog yet. All ad typesSpark adsNon-Spark ads |
ad_language | string | no | en | No description in the catalog yet. |
like_tier | integer | no | — | No description in the catalog yet. |
industry | string | no | Skincare | No description in the catalog yet. |
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 | No description in the catalog yet. |
max_concurrent_queries | integer | no | 2 | No description in the catalog yet. |
max_concurrent_details | integer | no | 2 | No description in the catalog yet. |
max_concurrent_crawls | integer | no | 10 | No description in the catalog yet. |
max_retries | integer | no | 5 | No description in the catalog yet. |
Advanced
| Name | Type | Default | Description |
|---|---|---|---|
use_proxy | boolean | true | Route the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise. |
raw_data | boolean | 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
Section titled “Response”{ "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": [ ], "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": [ ], "phones": [], "whatsapp": [], "socialLinks": {} }, "notes": null } ], "notes": null, "scraped_at": "2026-09-27T08:49:10.000Z" } ], "next_cursor": null }}Bad input. The exact message varies by endpoint.
{ "success": false, "error": "…"}Balance below the endpoint’s price.
{ "error": "Insufficient credits. Buy more to scrape more.", "balance": 1, "required": 2}Invalid or unknown API key.
{ "detail": "Authentication service unavailable or invalid API key."}Throttled — wait for Retry-After.
{ "detail": "Request was throttled. Expected available in N seconds."}Sample from the live catalog; arrays trimmed to 3 items. Results are in data.leads.
Response fields
Section titled “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
Section titled “Pagination”Returns everything in one call; next_cursor is always null.
Errors
Section titled “Errors”Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.
| Status | Meaning | Retry? | Charged? |
|---|---|---|---|
400 | Bad or missing input. | No — fix the params | No |
401 / 403 | Missing, invalid or revoked API key. | No — fix the key | No |
402 | Out of credits (body has balance). | No — top up | No |
404 | Unknown endpoint slug. | No — check the slug | No |
429 / 503 | Busy or throttled. | Yes — after Retry-After | No |
5xx | Target site or upstream failure, or timeout. | Yes — with backoff | No |
- Nothing special: send the inputs, read the result.
Related
Section titled “Related”- TikTok Ad Library — Structured TikTok data: send
urls. Cursor-paginated, 1 credit per successful call. - TikTok Ads Top — Structured TikTok data: every input is optional. Cursor-paginated, 1 credit per successful call.
- TikTok Collection Videos — Structured TikTok data: send
urls. Cursor-paginated, 1 credit per successful call. - TikTok Comment Replies — Structured TikTok data: send
urls. Cursor-paginated, 1 credit per successful call.