daysinteger
Number of days of Commercial Content Library history to search, from 1 to 365. Defaults to 30.
ค่าเริ่มต้น: 30
https://api.sandbase.ai/v1/api/tiktok/ad-transparency-searchSearch TikTok's EU Commercial Content Library by keyword or advertiser ID.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
This API searches TikTok's EU Commercial Content Library and returns a list of ads. Each ad includes its title, advertiser name, audience estimate, show dates, and media links. Send a keyword in query or a library advertiser ID in advertiserId.
advertiserId.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ad-transparency-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"days": 30, "limit": 20, "query": "nike", "region": "DE"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
advertiserId | string | No | TikTok Commercial Content Library advertiser ID. Provide advertiserId or query. |
cursor | string | No | Search cursor from a previous response's nextCursor. |
days | integer | No | Number of days of Commercial Content Library history to search, from 1 to 365. Defaults to 30. |
limit | integer | No | Maximum number of ads to return, from 1 to 50. Defaults to 20. Billing is flat per request. |
offset | integer | No | Zero-based result offset. Defaults to 0. |
query | string | No | Keyword to search in TikTok's EU Commercial Content Library. Provide query or advertiserId. |
region | string | No | Region code for the transparency search. Defaults to DE. |
sort | string | No | Sort expression. Defaults to last_shown_date,desc. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"ads": [
{
"adTitle": "Neue Winterausrüstung in Nike Factory Stores.",
"advertiserName": "NIKE Retail B.V.",
"estimatedAudience": "300K-400K",
"firstShownUtc": 1792454400,
"format": "2",
"id": "1879578150853922",
"image": "https://p16-common-sign.tiktokcdn.com/ad-site-i18n-sg/20261013c7c72a61615657cc4f…",
"lastShownUtc": 1793577600,
"status": "1",
"videoUrl": "https://library.tiktok.com/api/v1/cdn/1793691828/video/aHR0cHM6Ly92MTZtLnRpa3Rva…"
}
],
"hasMore": false,
"nextCursor": "cur_r-MF0Us35pN_wCPP3qHT6Q",
"offset": 0,
"region": "DE",
"total": 4448
},
"found": true
}
| Field | Meaning |
|---|---|
data.ads[].id | ID of the ad in the Commercial Content Library, returned as a string. |
data.ads[].adTitle | Text title of the ad. |
data.ads[].advertiserName | Name of the advertiser that ran the ad. |
data.ads[].estimatedAudience | Estimated audience size as a range string, for example 300K-400K. |
data.ads[].firstShownUtc / data.ads[].lastShownUtc | Unix timestamps in seconds for the first and last day the ad was shown. |
data.ads[].videoUrl / data.ads[].image | Links to the ad video and the ad image. |
data.ads[].format / data.ads[].status | Coded values for the ad format and ad status, returned as strings such as 2 and 1. |
data.total | Total number of ads that match the search. |
data.hasMore / data.nextCursor | hasMore tells you if more results exist. nextCursor is the value to send as cursor in the next request. |
data.region | Region code used for the search. |
query or advertiserId. Use limit (1 to 50) and offset to page through results.data.nextCursor as cursor in the next request.found: false.Billed at the actual cost of each call, about $0.0008 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ad-transparency-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"days": 30,
"sort": "last_shown_date,desc",
"limit": 20,
"query": "nike",
"offset": 0,
"region": "DE"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
daysintegerNumber of days of Commercial Content Library history to search, from 1 to 365. Defaults to 30.
ค่าเริ่มต้น: 30
sortstringSort expression. Defaults to last_shown_date,desc.
ค่าเริ่มต้น: "last_shown_date,desc"
limitintegerMaximum number of ads to return, from 1 to 50. Defaults to 20. Billing is flat per request.
ค่าเริ่มต้น: 20
querystringKeyword to search in TikTok's EU Commercial Content Library. Provide query or advertiserId.
cursorstringSearch cursor from a previous response's nextCursor.
offsetintegerZero-based result offset. Defaults to 0.
ค่าเริ่มต้น: 0
regionstringRegion code for the transparency search. Defaults to DE.
ค่าเริ่มต้น: "DE"
advertiserIdstringTikTok Commercial Content Library advertiser ID. Provide advertiserId or query.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
TikTok | เริ่มต้นที่ $0.0008 ต่อครั้ง | JSON |
TikTok | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
TikTok | เริ่มต้นที่ $0.0008 ต่อครั้ง | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
คู่มือ:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/ad-transparency-search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0008 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: days (integer), sort (string), limit (integer), query (string), cursor (string) และ offset (integer) และอีก 2 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น TikTok Ad Transparency Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก