↑ ↓ to move ↵ to open
TikTok Ad Library API reference

TikTok Ad Library Ads Search

tiktok-adlibrary.ad.search

Search TikTok ads by keyword, brand or slogan, by country and date range: advertiser, ad text, audience size, subject and first and last day shown.

At a glance

Endpoint ID
tiktok-adlibrary.ad.search
Price
10–25 credits per call; failed calls are free
Runs for up to
120 seconds
Request
POST /execute
Run an endpoint
MCP tool when pinned
tiktok-adlibrary__ad__search
Pin tools
OpenAPI
openapi.json
Download

Request

Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.

curl --request POST \  --url https://data.upscrape.com/execute \  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \  --header "Content-Type: application/json" \  --header "Prefer: wait=30" \  --data '{  "capability": "tiktok-adlibrary.ad.search",  "input": {    "query": "nike"  }}'

Input

FieldTypeRequiredWhat it doesExample
query string yes The keyword, brand, product or slogan to search for, such as nike. nike
country string no A country the library covers, such as DE, FR or GB, or ALL. The regions endpoint lists them. ALL · AT · BE · BG · CH · CY · CZ · DE · DK · E…
cursor string no Pass next_cursor from the last response to get the next page.
end_date string no Only ads shown up to this day (YYYY-MM-DD). Today by default.
limit integer no How many ads to return in this call.
start_date string no Only ads shown on or after this day (YYYY-MM-DD). By default, 30 days before the end date.

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "total_items": 50,  "items": [    {      "name": "NIKE Retail B.V.",      "title": "Trainiere ohne Kompromisse - im Nike Hybrid RN.",      "audit_status": "1",      "estimated_audience": "100K-200K",      "first_shown_date": 1791936000000,      "id": "1879011035967585",      "impression": 0,      "last_shown_date": 1791936000000,      "rejection_info": null,      "show_mode": 2,      "sor_audit_status": "1",      "spent": "",      "type": "2"    },    {      "name": "NIKE Retail B.V.",      "title": "Trainiere ohne Kompromisse - im Nike Hybrid RN.",      "audit_status": "1",      "estimated_audience": "10K-100K",      "first_shown_date": 1791936000000,      "id": "1879008267714690",      "impression": 0,      "last_shown_date": 1791936000000,      "rejection_info": null,      "show_mode": 2,      "sor_audit_status": "1",      "spent": "",      "type": "2"    }  ]}

Fields

FieldTypeWhat it isExample
items[].name string The advertiser's registered name. NIKE Retail B.V.
items[].title string The ad's text. Trainiere ohne Kompromisse - im Nike Hybrid RN.
items[].estimated_audience string TikTok's audience band, such as 100K-200K. 100K-200K
items[].first_shown_date integer The first day the ad was shown, as a Unix time in milliseconds. 1,791,936,000,000
items[].last_shown_date integer The last day the ad was shown, as a Unix time in milliseconds. 1,791,936,000,000
items[].id string TikTok's ID for the ad, used by the ad detail endpoint. 1879011035967585
items[].audit_status string TikTok's review status code for the ad. 1
items[].impression integer Impressions as a number, when TikTok gives one; often 0. 0
items[].rejection_info null Why TikTok rejected the ad, when it did. null
items[].show_mode integer TikTok's code for how the ad is shown. 2
items[].sor_audit_status string A second review status code TikTok gives the ad. 1
items[].spent string Amount spent on the ad, when TikTok shows it.
items[].type string TikTok's code for the kind of ad. 2
items array The results. 50 records
total_items integer How many results this response holds. 50

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Other TikTok Ad Library endpoints

Something missing or unclear? Ask the team that builds the TikTok Ad Library endpoints.