TikTok Ad Library Advertiser Ads
tiktok-adlibrary.advertiser-ads.list
List the ads of one registered advertiser, by country and date range.
At a glance
- Endpoint ID
tiktok-adlibrary.advertiser-ads.list- Price
- 10–25 credits per call; failed calls are free
- Runs for up to
- 120 seconds
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.advertiser-ads.list", "input": { "advertiser_name": "NIKE Retail B.V." }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tiktok-adlibrary.advertiser-ads.list", "input": { "advertiser_name": "NIKE Retail B.V." }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "tiktok-adlibrary.advertiser-ads.list", "input": { "advertiser_name": "NIKE Retail B.V." }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
advertiser_name |
string | yes | The advertiser's exact registered name, such as NIKE Retail B.V., from the advertiser search. | NIKE Retail B.V. |
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:
{ "total_items": 50, "items": [ { "name": "NIKE Retail B.V.", "title": "Postaw na produkty gotowe na wszystko. Zawsze. Wszędzie.", "audit_status": "1", "estimated_audience": "200K-300K", "first_shown_date": 1791158400000, "id": "1878195355527474", "impression": 0, "last_shown_date": 1791936000000, "rejection_info": null, "show_mode": 2, "sor_audit_status": "1", "spent": "", "subject": "Home Improvement", "type": "2" }, { "name": "NIKE Retail B.V.", "title": "Get the gear that's up for it all. Any time. Anywhere.", "audit_status": "1", "estimated_audience": "10K-100K", "first_shown_date": 1791676800000, "id": "1878794782729521", "impression": 0, "last_shown_date": 1791936000000, "rejection_info": null, "show_mode": 1, "sor_audit_status": "1", "spent": "", "subject": "Sports & Outdoor", "type": "2" } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
items[].name |
string | The advertiser's registered name. | NIKE Retail B.V. |
items[].title |
string | The ad's text. | Postaw na produkty gotowe na wszystko. Zawsze. Wszędzie. |
items[].estimated_audience |
string | TikTok's audience band, such as 100K-200K. | 200K-300K |
items[].first_shown_date |
integer | The first day the ad was shown, as a Unix time in milliseconds. | 1,791,158,400,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[].subject |
string | The ad's topic. | Home Improvement |
items[].id |
string | TikTok's ID for the ad, used by the ad detail endpoint. | 1878195355527474 |
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.