Get TikTok Ad Library ad
curl --request GET \
--url https://api.aisa.one/apis/v1/tiktok/ad-library/ads \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tiktok/ad-library/ads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/tiktok/ad-library/ads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/tiktok/ad-library/ads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tiktok/ad-library/ads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/tiktok/ad-library/ads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tiktok/ad-library/ads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"ad": {
"advertiserBusinessId": "7377365644930662401",
"brandName": null,
"category": null,
"commentCount": 1,
"cost": 1,
"countries": [
"TR",
"US"
],
"ctr": 0.5,
"detailUrl": "https://library.tiktok.com/ads/detail/?ad_id=1872975048695249",
"estimatedAudience": "1K-10K",
"firstShownAt": "2025-02-13T00:00:00.000Z",
"format": "video",
"hasVoiceOver": false,
"id": "1872975048695249",
"imageUrls": [],
"industryKey": "label_22108000000",
"interactiveAnalysis": {
"clicks": {
"analysis": [
{
"second": 0,
"value": 0.263
},
{
"second": 1,
"value": 1
}
],
"duration": 91,
"highlight": [
1,
7,
21
],
"metric": "click_cnt",
"percentile": 0.99
},
"conversion": {
"analysis": [
{
"second": 0,
"value": 0
}
],
"duration": 91,
"highlight": [],
"metric": "convert_cnt",
"percentile": 0.99
},
"ctr": {
"analysis": [
{
"second": 0,
"value": 0.048
},
{
"second": 1,
"value": 1
},
{
"second": 2,
"value": 0.495
}
],
"duration": 91,
"highlight": [
1,
4,
21
],
"metric": "retain_ctr",
"percentile": 0.99
},
"cvr": {
"analysis": [
{
"second": 0,
"value": 0
},
{
"second": 1,
"value": 0
}
],
"duration": 91,
"highlight": [],
"metric": "retain_cvr",
"percentile": 0.99
},
"remain": {
"analysis": [
{
"second": 0,
"value": 1
},
{
"second": 1,
"value": 0.184
}
],
"duration": 91,
"highlight": [],
"metric": "play_retain_cnt",
"percentile": 0.99
}
},
"isUnavailable": false,
"keywords": null,
"landingPageUrl": "https://www.amazon.com/dp/B0DRTC8XBW",
"lastShownAt": "2026-08-30T00:00:00.000Z",
"likeCount": 92,
"moderation": {
"auditStatus": "1",
"rejectionReason": null
},
"objective": "campaign_objective_reach",
"objectives": [
{
"label": "campaign_objective_reach",
"value": 5
}
],
"patterns": [],
"relatedAds": [
{
"brandName": null,
"cost": 0,
"ctr": 0.63,
"estimatedAudience": null,
"firstShownAt": null,
"id": "7644102379697602567",
"industryKey": "label_22108000000",
"lastShownAt": null,
"likeCount": 127,
"objective": "campaign_objective_reach",
"title": "Related ad example title.",
"url": null,
"video": {
"coverUrl": "https://p16-common-sign.tiktokcdn.com/example-related.image",
"durationSeconds": 13.213,
"height": 1024,
"id": "v1c044g50000d86qrfnog65v7nuvf30g",
"urls": {
"p1080": null,
"p360": null,
"p480": null,
"p540": null,
"p720": "https://v16m-default.tiktokcdn.com/related-720p.mp4"
},
"width": 576
}
}
],
"shareCount": 1,
"source": "Others",
"title": "I thought this was a gimmick until I tried it! A wrinkled shirt, one button, and a few minutes later... ready to wear.",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1872975048695249",
"video": {
"coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/example~tplv-noop.image",
"durationSeconds": 89.767,
"height": 1280,
"id": "v12044gd0000d8erq07og65h1cq991gg",
"urls": {
"p1080": null,
"p360": null,
"p480": null,
"p540": "https://v16m-default.tiktokcdn.com/example-540p.mp4",
"p720": "https://v16m-default.tiktokcdn.com/example-720p.mp4"
},
"width": 720
},
"videos": [
{
"coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/example~tplv-noop.image",
"durationSeconds": 89.767,
"height": 1280,
"id": "v12044gd0000d8erq07og65h1cq991gg",
"urls": {
"p1080": null,
"p360": null,
"p480": null,
"p540": "https://v16m-default.tiktokcdn.com/example-540p.mp4",
"p720": "https://v16m-default.tiktokcdn.com/example-720p.mp4"
},
"width": 720
}
]
},
"lookupStatus": "found"
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01tiktok_ad_library_ad_found",
"version": "v1"
}
}TikTok 广告库
Get TikTok Ad Library ad
Returns a single TikTok Ad Library or Top Ads creative. Provide adId or url.
GET
https://api.aisa.one
/
apis
/
v1
/
tiktok
/
ad-library
/
ads
Get TikTok Ad Library ad
curl --request GET \
--url https://api.aisa.one/apis/v1/tiktok/ad-library/ads \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tiktok/ad-library/ads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/tiktok/ad-library/ads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/tiktok/ad-library/ads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tiktok/ad-library/ads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/tiktok/ad-library/ads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tiktok/ad-library/ads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"ad": {
"advertiserBusinessId": "7377365644930662401",
"brandName": null,
"category": null,
"commentCount": 1,
"cost": 1,
"countries": [
"TR",
"US"
],
"ctr": 0.5,
"detailUrl": "https://library.tiktok.com/ads/detail/?ad_id=1872975048695249",
"estimatedAudience": "1K-10K",
"firstShownAt": "2025-02-13T00:00:00.000Z",
"format": "video",
"hasVoiceOver": false,
"id": "1872975048695249",
"imageUrls": [],
"industryKey": "label_22108000000",
"interactiveAnalysis": {
"clicks": {
"analysis": [
{
"second": 0,
"value": 0.263
},
{
"second": 1,
"value": 1
}
],
"duration": 91,
"highlight": [
1,
7,
21
],
"metric": "click_cnt",
"percentile": 0.99
},
"conversion": {
"analysis": [
{
"second": 0,
"value": 0
}
],
"duration": 91,
"highlight": [],
"metric": "convert_cnt",
"percentile": 0.99
},
"ctr": {
"analysis": [
{
"second": 0,
"value": 0.048
},
{
"second": 1,
"value": 1
},
{
"second": 2,
"value": 0.495
}
],
"duration": 91,
"highlight": [
1,
4,
21
],
"metric": "retain_ctr",
"percentile": 0.99
},
"cvr": {
"analysis": [
{
"second": 0,
"value": 0
},
{
"second": 1,
"value": 0
}
],
"duration": 91,
"highlight": [],
"metric": "retain_cvr",
"percentile": 0.99
},
"remain": {
"analysis": [
{
"second": 0,
"value": 1
},
{
"second": 1,
"value": 0.184
}
],
"duration": 91,
"highlight": [],
"metric": "play_retain_cnt",
"percentile": 0.99
}
},
"isUnavailable": false,
"keywords": null,
"landingPageUrl": "https://www.amazon.com/dp/B0DRTC8XBW",
"lastShownAt": "2026-08-30T00:00:00.000Z",
"likeCount": 92,
"moderation": {
"auditStatus": "1",
"rejectionReason": null
},
"objective": "campaign_objective_reach",
"objectives": [
{
"label": "campaign_objective_reach",
"value": 5
}
],
"patterns": [],
"relatedAds": [
{
"brandName": null,
"cost": 0,
"ctr": 0.63,
"estimatedAudience": null,
"firstShownAt": null,
"id": "7644102379697602567",
"industryKey": "label_22108000000",
"lastShownAt": null,
"likeCount": 127,
"objective": "campaign_objective_reach",
"title": "Related ad example title.",
"url": null,
"video": {
"coverUrl": "https://p16-common-sign.tiktokcdn.com/example-related.image",
"durationSeconds": 13.213,
"height": 1024,
"id": "v1c044g50000d86qrfnog65v7nuvf30g",
"urls": {
"p1080": null,
"p360": null,
"p480": null,
"p540": null,
"p720": "https://v16m-default.tiktokcdn.com/related-720p.mp4"
},
"width": 576
}
}
],
"shareCount": 1,
"source": "Others",
"title": "I thought this was a gimmick until I tried it! A wrinkled shirt, one button, and a few minutes later... ready to wear.",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1872975048695249",
"video": {
"coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/example~tplv-noop.image",
"durationSeconds": 89.767,
"height": 1280,
"id": "v12044gd0000d8erq07og65h1cq991gg",
"urls": {
"p1080": null,
"p360": null,
"p480": null,
"p540": "https://v16m-default.tiktokcdn.com/example-540p.mp4",
"p720": "https://v16m-default.tiktokcdn.com/example-720p.mp4"
},
"width": 720
},
"videos": [
{
"coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/example~tplv-noop.image",
"durationSeconds": 89.767,
"height": 1280,
"id": "v12044gd0000d8erq07og65h1cq991gg",
"urls": {
"p1080": null,
"p360": null,
"p480": null,
"p540": "https://v16m-default.tiktokcdn.com/example-540p.mp4",
"p720": "https://v16m-default.tiktokcdn.com/example-720p.mp4"
},
"width": 720
}
]
},
"lookupStatus": "found"
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01tiktok_ad_library_ad_found",
"version": "v1"
}
}
请求示例待验证。 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式,请替换为自己的参数。正式调用前,可用免费的报价模式(X-AISA-Cost-Mode: quote)查看预估费用。
请求规范
- 方法与路径: GET /apis/v1/tiktok/ad-library/ads
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/tiktok/ad-library/ads - adId: query; 可选
- url: query; 可选
{
"operationId": "tiktok.ad-library.ads",
"method": "GET",
"path": "/apis/v1/tiktok/ad-library/ads",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "adId",
"required": false,
"schema": {
"description": "TikTok Ad Library or Top Ads ad id.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "url",
"required": false,
"schema": {
"description": "Public TikTok Ad Library or Top Ads detail URL for the ad.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
已观察到的响应结构
以下结构来自探针或抽样请求的成功结果,只反映已观察到的部分:字段和类型可能变化,不保证每次都有。已有正式响应定义优先;这里不发布真实响应值。- HTTP 状态 / 最近观察日期: 200 / 2026-11-14
{
"additionalProperties": true,
"properties": {
"data": {
"additionalProperties": true,
"properties": {
"ad": {
"additionalProperties": true,
"properties": {
"advertiserBusinessId": {
"type": "string"
},
"brandName": {
"type": "string"
},
"category": {
"type": "null"
},
"commentCount": {
"type": "null"
},
"cost": {
"type": "null"
},
"countries": {
"items": {
"type": "string"
},
"type": "array"
},
"ctr": {
"type": "null"
},
"detailUrl": {
"type": "string"
},
"estimatedAudience": {
"type": "string"
},
"firstShownAt": {
"type": "string"
},
"format": {
"type": "string"
},
"hasVoiceOver": {
"type": "null"
},
"id": {
"type": "string"
},
"imageUrls": {
"items": {},
"type": "array"
},
"industryKey": {
"type": "null"
},
"interactiveAnalysis": {
"additionalProperties": true,
"properties": {
"clicks": {
"type": "null"
},
"conversion": {
"type": "null"
},
"ctr": {
"type": "null"
},
"cvr": {
"type": "null"
},
"remain": {
"type": "null"
}
},
"type": "object"
},
"isUnavailable": {
"type": "boolean"
},
"keywords": {
"type": "null"
},
"landingPageUrl": {
"type": "null"
},
"lastShownAt": {
"type": "string"
},
"likeCount": {
"type": "null"
},
"moderation": {
"additionalProperties": true,
"properties": {
"auditStatus": {
"type": "string"
},
"rejectionReason": {
"type": "null"
}
},
"type": "object"
},
"objective": {
"type": "string"
},
"objectives": {
"items": {
"additionalProperties": true,
"properties": {
"label": {
"type": "string"
},
"value": {
"type": "null"
}
},
"type": "object"
},
"type": "array"
},
"patterns": {
"items": {},
"type": "array"
},
"relatedAds": {
"items": {},
"type": "array"
},
"shareCount": {
"type": "null"
},
"source": {
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"additionalProperties": true,
"properties": {
"coverUrl": {
"type": "string"
},
"durationSeconds": {
"type": "null"
},
"height": {
"type": "null"
},
"id": {
"type": "null"
},
"urls": {
"additionalProperties": true,
"type": "object"
},
"width": {
"type": "null"
}
},
"type": "object"
},
"videos": {
"items": {
"additionalProperties": true,
"properties": {
"coverUrl": {
"type": "string"
},
"durationSeconds": {
"type": "null"
},
"height": {
"type": "null"
},
"id": {
"type": "null"
},
"urls": {
"additionalProperties": true,
"type": "object"
},
"width": {
"type": "null"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"lookupStatus": {
"type": "string"
}
},
"type": "object"
},
"meta": {
"additionalProperties": true,
"properties": {
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.042 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。响应时间
- 通常 10 秒内返回。