Ads in your TikTok ad account, with creatives
tiktok-ads.adsList the ads in your TikTok ad account with their creatives and landing pages
- 价格
- free按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/tiktok-ads.ads预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
creatives come back as ids (video_id, image_ids), not playable URLs — resolve them through the file/video/ad/get/ endpoint to get preview links, which expire
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
page | 整数 | 可选 | 1 | |
fields | 数组 | 可选 | ["ad_id","ad_name","adgroup_id","ad_format","ad_text","video_id","image_ids","landing_page_url","call_to_action","operat | |
filtering | 对象 | 可选 | {"adgroup_ids":["123"]} or {"ad_ids":["456"]} | {"adgroup_ids":["1234567890123456789"]} |
page_size | 整数 | 可选 | 100 | |
advertiser_id | 字符串 | 必填 | 7000000000000000000 | |
- 查询参数
page整数可选示例:
1fields数组可选示例:
["ad_id","ad_name","adgroup_id","ad_format","ad_text","video_id","image_ids","landing_page_url","call_to_action","operatfiltering对象可选{"adgroup_ids":["123"]} or {"ad_ids":["456"]}
示例:
{"adgroup_ids":["1234567890123456789"]}page_size整数可选示例:
100advertiser_id字符串必填示例:
7000000000000000000
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X GET 'https://toolswitch.dev/v1/tools/tiktok-ads.ads' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tiktok-ads.ads",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tiktok-ads.ads", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。