Ads
按关键词搜索 TikTok 广告资料库,或列出某个广告主在欧盟、英国等资料库覆盖的国家投放的全部广告。
GET | POST /v1/tiktok-ads/ads参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 请求体发送,两者等价。
请求
curl "https://gateway.apinoa.com/v1/tiktok-ads/ads?advertiserName=NIKE%20Retail%20B.V.&advertiser=6876453864464188162&country=DE" \
-H "x-api-key: $APINOA_API_KEY"传入内容
| 传入 | 读取内容 | 说明 |
|---|---|---|
query | 匹配关键词的广告 | |
advertiserName | 某个广告主投放的全部广告 | advertisers 返回的名称;同时传入 advertiser(其 id)可跳过查找 |
传入 query 或 advertiserName,以及 country:以下之一:AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, IS, LI, NO, CH, GB, TR, BR。资料库覆盖在欧盟和欧洲经济区、瑞士、英国、土耳其和巴西展示的广告,不覆盖美国。筛选条件(startDate、endDate、sort、order、status)两者都可搭配使用。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
advertiser | string | With advertiserName: the advertiser's id (advertisers and an ad's advertiser.id give it), which saves the name lookup. A comma list where the library lists several. | |
advertiserName | string | Every ad one advertiser ran: its name exactly as advertisers lists it. | |
country | enum | Where the ads were shown (required): one of AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, IS, LI, NO, CH, GB, TR, BR — the EU, the EEA, Switzerland, the UK, Turkey and Brazil (not the US), which is what the library covers. AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE IS LI NO CH GB TR BR | |
cursor | string | Opaque cursor from the previous page's cursor. Pass it alone for the next page. | |
endDate | string | Last day shown, YYYY-MM-DD (default: today). | |
order | enum | desc (default) or asc. desc asc | |
query | string | Keywords to search the library's ads for. | |
sort | enum | Order: the day last shown (default), creation, or impressions. lastShown created impressions | |
startDate | string | First day shown, YYYY-MM-DD (default: 30 days before endDate). | |
status | enum | all ads (default), or only those still running. all active |
这些参数及所有响应类型也写在OpenAPI 文档中。
响应
在 data 中返回 AdPage。 真实响应的节选:数组只保留前几项,长文本已截断。
{
"success": true,
"data": {
"library": "tiktok-ads",
"items": [
{
"library": "tiktok-ads",
"id": "1882724572699761",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1882724572699761",
"advertiser": {
"name": "NIKE Retail B.V."
},
"images": [],
"videos": [
{
"url": "https://library.tiktok.com/api/v1/cdn/1795662568/video/aHR0cHM6Ly92MTZtLnRpa3Rva…",
"coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast2a-p-0037-euttp/oIP9EXaIYbgzE0ZC…"
}
],
"cards": [],
"firstShownAt": "2026-11-24T00:00:00.000Z",
"lastShownAt": "2026-11-24T00:00:00.000Z",
"reach": {
"text": "100K-200K",
"lower": 100000,
"upper": 200000
},
"ext": {
"audit_status": "1",
"type": "2",
"spent": "",
"impression": 0,
"show_mode": 1,
"rejection_info": null,
"sor_audit_status": "1"
}
}
],
"cursor": "dERsZAXeOKHmah7cEuTr7TborJxvm1ZkC31Xm_ImwWtV6floyr3ypouSoI4TEDeGpJKZHrwiQqgmYBj7…",
"total": 16528
}
}错误
| 状态 | 代码 | 含义 |
|---|---|---|
| 400 | INVALID_CURSOR | 该 cursor 不是本操作返回的。请不带它重新开始。 |
| 400 | INVALID_PARAMS | 参数缺失、未知或超出范围。消息中会指出是哪一个。 |
| 401 | UNAUTHORIZED | 缺少 x-api-key 请求头,或密钥已吊销或未知。 |
| 402 | INSUFFICIENT_CREDITS | 积分不足以支付本次调用。请在控制台选择套餐或充值。 |
| 404 | NOT_FOUND | 资料库中没有该名称的广告主。消息中会列出资料库给出的名称。 |
| 429 | MARKETPLACE_SATURATED | 并发调用过多。请等待 Retry-After 秒后重试。 |
| 502 | UPSTREAM_ERROR | 平台返回了无法使用的内容。请退避后重试。 |
| 503 | SERVICE_UNAVAILABLE | 临时故障。请退避后重试。 |
全部错误代码见 Errors。失败的调用不计费。
价格
价格 每次调用 1 积分。套餐与积分
说明
advertiser是广告主的id,需与advertiserName一起传入:TikTok 资料库按名称和 id 一起查找广告主。两者都由advertisers返回。total是匹配的广告数,与资料库所示一致。关键词搜索最多计到 5,000,达到上限时改为返回totalRange(lower: 5000)。广告主的广告会完整计数。startDate和endDate是广告展示期间的日期(YYYY-MM-DD);不传时为最近 30 天。reach是广告触达的独立用户数范围,包含 TikTok 显示的文本(100K-200K)以及从中读取的上下限。- 出资方、链接、各国展示量和定向信息请用
ad读取。 - 只有 TikTok 提供的信息(审核代码、展示相关字段)以资料库原名放在
ext中。 - 要获取下一页,只传
cursor。