TikTok AD
TikTok Ads helps businesses reach audiences through video advertising on TikTok, with tools to create campaigns, target customers, and measure performance.
- Selected price
- $0.00188 / callPublished pricing
- Sellers / APIs
- 3 / 14
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
TikTok AD
Prepare your request, then continue with your agent.
Selected price
$0.00188 / call
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
adsobject[]adv_biz_idsstringaudit_statusstringestimated_audiencestringfirst_shown_dateintegeridstringimage_urlsunknown[]impressionintegerlast_shown_dateintegernamestringrejection_infonullshow_modeintegersor_audit_statusstringspentstringtypestringurlstringvideosobject[]cover_imgstringvideo_urlstring
advertiser_matchesobject[]idsstringnamestring
advertiser_namestringcredits_chargedintegercredits_remainingintegercursorstringhas_morebooleanresolved_advertiser_namestringsourcestringsuccessbooleantotalinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
ads?: Array<{
adv_biz_ids?: string;
audit_status?: string;
estimated_audience?: string;
first_shown_date?: number;
id?: string;
image_urls?: Array<unknown>;
impression?: number;
last_shown_date?: number;
name?: string;
rejection_info?: null;
show_mode?: number;
sor_audit_status?: string;
spent?: string;
type?: string;
url?: string;
videos?: Array<{
cover_img?: string;
video_url?: string;
}>;
}>;
advertiser_matches?: Array<{
ids?: string;
name?: string;
}>;
advertiser_name?: string;
credits_charged?: number;
credits_remaining?: number;
cursor?: string;
has_more?: boolean;
resolved_advertiser_name?: string;
source?: string;
success?: boolean;
total?: number;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| TikTok Ad Library Ad · POST · View API reference | $0.0012 / call | —Select to load statistics | —successP50— | |
| TikTok Ad Library Search · POST · View API reference | $0.0008 / call | —Select to load statistics | —successP50— | |
| TikTok Top Ads Search · POST · View API reference | $0.0012 / call | —Select to load statistics | —successP50— | |
| TikTok Ad Transparency Search · POST · View API reference | $0.0008 / call | —Select to load statistics | —successP50— | |
| TikTok Ad Library — Ad Library Ad · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
Current TikTok Ad Library — Ad Library Search · GET · View API reference | $0.00188 / call | — | —successP50— | |
| Get recommended ads · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get ad keyframe analysis · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get top ads spotlight · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get Top Ads filters · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Search ads · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get ad interactive analysis · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get ad percentile data · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get single ad detail · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.00188
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 6. Price update time: not supplied.
Total $0.188
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search?query=Gymshark®ion=GB' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
query | URL query parametersquery | string | No | General ad search. Provide either query or advertiser_name, not both. |
advertiser_name | URL query parametersquery | string | No | Advertiser name to resolve through TikTok's typeahead and search by advertiser entity. Falls back to TikTok's name search when no entity matches. Provide either advertiser_name or query, not both. |
adv_biz_ids | URL query parametersquery | string | No | TikTok advertiser business ID from a See all ads link. Use it with advertiser_name to pin the exact advertiser. Required companion: advertiser_name; ID-only searches return 400 because TikTok ignores the ID without the name. |
cursor | URL query parametersquery | string | No | Opaque cursor returned from the previous response. |
start_time | URL query parametersquery | integer | No | Inclusive lower bound for the ad's last shown date; end_time is the inclusive upper bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request. |
end_time | URL query parametersquery | integer | No | Inclusive upper bound for the ad's last shown date; start_time is the inclusive lower bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request. |
region | URL query parametersquery | string | No | Filter by the ad's targeting/delivery country, not the advertiser's registration country. Omitted region defaults to all supported countries, not every country worldwide. Values are case-insensitive; choose all or one of the listed country codes. US is not supported. Empty values, unsupported countries and multiple countries return 400 bad_request. enum: "all", "AT", "BE", "BG", "BR", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "HR", "HU", "IE", "IS", "IT", "LI", "LT", "LU", "LV", "MT", "NL", "NO", "PL", "PT", "RO", "SE", "SI", "SK", "TR" |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"ads": [
{
"adv_biz_ids": "7078923208527618049",
"audit_status": "1",
"estimated_audience": "1K-10K",
"first_shown_date": 1784937600000,
"id": "1871655924410641",
"image_urls": [],
"impression": 0,
"last_shown_date": 1785024000000,
"name": "GYMSHARK LTD",
"rejection_info": null,
"show_mode": 1,
"sor_audit_status": "1",
"spent": "",
"type": "2",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1871655924410641",
"videos": [
{
"cover_img": "https://p16-common-sign.tiktokcdn.com/...",
"video_url": "https://library.tiktok.com/api/v1/cdn/..."
}
]
}
],
"advertiser_matches": [
{
"ids": "7078923208527618049",
"name": "GYMSHARK LTD"
}
],
"advertiser_name": "Gymshark",
"credits_charged": 1,
"credits_remaining": 100,
"cursor": "opaque cursor for the next page",
"has_more": true,
"resolved_advertiser_name": "GYMSHARK LTD",
"source": "tiktok_public_ads_library",
"success": true,
"total": 62344
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# TikTok AD
TikTok Ads helps businesses reach audiences through video advertising on TikTok, with tools to create campaigns, target customers, and measure performance.
## Available implementations
anyapi · TikTok Ad Library Ad: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=5a707d0d-6a2e-4d20-8d4d-3815d7aed496 · $0.0012 / call
anyapi · TikTok Ad Library Search: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=603f362b-02a4-4ea1-bf03-0aff79f4012b · $0.0008 / call
anyapi · TikTok Top Ads Search: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=6f094d5d-3fc2-48e6-ace0-0082f93d9987 · $0.0012 / call
anyapi · TikTok Ad Transparency Search: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=8841b046-b89f-4dfb-bcd9-5cb189a1c77e · $0.0008 / call
scrapecreators · TikTok Ad Library — Ad Library Ad: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=05f2b06f-fc84-4a1d-a8a7-675ccfd4766a · $0.00188 / call
scrapecreators · TikTok Ad Library — Ad Library Search: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=0b243c2f-276a-430a-abec-fa9ed386b216 · $0.00188 / call
tikhub · Get recommended ads: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=0b986dce-2b15-467d-b45d-95b4e06d6362 · $0.001 / call
tikhub · Get ad keyframe analysis: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=2946c851-58ea-4912-86a9-f9cc50ca9192 · $0.001 / call
tikhub · Get top ads spotlight: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=3c3ad071-9a32-402b-a572-ba02dabe019d · $0.001 / call
tikhub · Get Top Ads filters: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=42a0e4ea-41b8-43e1-864b-3b1910ad03ee · $0.001 / call
tikhub · Search ads: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=462ae38d-a66d-495a-99f0-0599da0cb715 · $0.001 / call
tikhub · Get ad interactive analysis: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=9dfa7d86-8f5b-43ac-8bdc-eb7b4a0a488a · $0.001 / call
tikhub · Get ad percentile data: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=b80b338c-6891-4598-adc1-9c156181a581 · $0.001 / call
tikhub · Get single ad detail: https://openany.si/markets/apis/capabilities/tiktok-ad?offering=f4f7568c-b659-4a0b-bab1-93bc374f1838 · $0.001 / call
## Selected API contract
Documentation: https://openany.si/apis/0b243c2f-276a-430a-abec-fa9ed386b216
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search
Price: $0.00188 / call
Provider: scrapecreators
Contract revision: 6
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search?query=Gymshark®ion=GB' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "TikTok Ad Library — Ad Library Search",
"endpoint": "https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "General ad search. Provide either query or advertiser_name, not both.",
"location": "query",
"name": "query",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Advertiser name to resolve through TikTok's typeahead and search by advertiser entity. Falls back to TikTok's name search when no entity matches. Provide either advertiser_name or query, not both.",
"location": "query",
"name": "advertiser_name",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "TikTok advertiser business ID from a See all ads link. Use it with advertiser_name to pin the exact advertiser. Required companion: advertiser_name; ID-only searches return 400 because TikTok ignores the ID without the name.",
"location": "query",
"name": "adv_biz_ids",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Opaque cursor returned from the previous response.",
"location": "query",
"name": "cursor",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Inclusive lower bound for the ad's last shown date; end_time is the inclusive upper bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request.",
"location": "query",
"name": "start_time",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Inclusive upper bound for the ad's last shown date; start_time is the inclusive lower bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request.",
"location": "query",
"name": "end_time",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Filter by the ad's targeting/delivery country, not the advertiser's registration country. Omitted region defaults to all supported countries, not every country worldwide. Values are case-insensitive; choose all or one of the listed country codes. US is not supported. Empty values, unsupported countries and multiple countries return 400 bad_request.",
"enum_values": [
"all",
"AT",
"BE",
"BG",
"BR",
"CH",
"CY",
"CZ",
"DE",
"DK",
"EE",
"ES",
"FI",
"FR",
"GB",
"GR",
"HR",
"HU",
"IE",
"IS",
"IT",
"LI",
"LT",
"LU",
"LV",
"MT",
"NL",
"NO",
"PL",
"PT",
"RO",
"SE",
"SI",
"SK",
"TR"
],
"location": "query",
"name": "region",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "1880",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"query": "Gymshark",
"region": "GB"
}
},
"response_body": {
"ads": [
{
"adv_biz_ids": "7078923208527618049",
"audit_status": "1",
"estimated_audience": "1K-10K",
"first_shown_date": 1784937600000,
"id": "1871655924410641",
"image_urls": [],
"impression": 0,
"last_shown_date": 1785024000000,
"name": "GYMSHARK LTD",
"rejection_info": null,
"show_mode": 1,
"sor_audit_status": "1",
"spent": "",
"type": "2",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1871655924410641",
"videos": [
{
"cover_img": "https://p16-common-sign.tiktokcdn.com/...",
"video_url": "https://library.tiktok.com/api/v1/cdn/..."
}
]
}
],
"advertiser_matches": [
{
"ids": "7078923208527618049",
"name": "GYMSHARK LTD"
}
],
"advertiser_name": "Gymshark",
"credits_charged": 1,
"credits_remaining": 100,
"cursor": "opaque cursor for the next page",
"has_more": true,
"resolved_advertiser_name": "GYMSHARK LTD",
"source": "tiktok_public_ads_library",
"success": true,
"total": 62344
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 7
Review these request fields before running. Keep the published provider and request method unchanged.
query- General ad search. Provide either query or advertiser_name, not both.
advertiser_name- Advertiser name to resolve through TikTok's typeahead and search by advertiser entity. Falls back to TikTok's name search when no entity matches. Provide either advertiser_name or query, not both.
adv_biz_ids- TikTok advertiser business ID from a See all ads link. Use it with advertiser_name to pin the exact advertiser. Required companion: advertiser_name; ID-only searches return 400 because TikTok ignores the ID without the name.
cursor- Opaque cursor returned from the previous response.
start_time- Inclusive lower bound for the ad's last shown date; end_time is the inclusive upper bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request.
end_time- Inclusive upper bound for the ad's last shown date; start_time is the inclusive lower bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request.
region- Filter by the ad's targeting/delivery country, not the advertiser's registration country. Omitted region defaults to all supported countries, not every country worldwide. Values are case-insensitive; choose all or one of the listed country codes. US is not supported. Empty values, unsupported countries and multiple countries return 400 bad_request.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search?query=Gymshark®ion=GB' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "ads": [ { "adv_biz_ids": "7078923208527618049", "audit_status": "1", "estimated_audience": "1K-10K", "first_shown_date": 1784937600000, "id": "1871655924410641", "image_urls": [], "impression": 0, "last_shown_date": 1785024000000, "name": "GYMSHARK LTD", "rejection_info": null, "show_mode": 1, "sor_audit_status": "1", "spent": "", "type": "2", "url": "https://library.tiktok.com/ads/detail/?ad_id=1871655924410641", "videos": [ { "cover_img": "https://p16-common-sign.tiktokcdn.com/...", "video_url": "https://library.tiktok.com/api/v1/cdn/..." } ] } ], "advertiser_matches": [ { "ids": "7078923208527618049", "name": "GYMSHARK LTD" } ], "advertiser_name": "Gymshark", "credits_charged": 1, "credits_remaining": 100, "cursor": "opaque cursor for the next page", "has_more": true, "resolved_advertiser_name": "GYMSHARK LTD", "source": "tiktok_public_ads_library", "success": true, "total": 62344 }