Get ad keyframe analysis
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"material_id": "<string>",
"metric": "retain_ctr",
"cookie": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis"
payload = {
"material_id": "<string>",
"metric": "retain_ctr",
"cookie": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({material_id: '<string>', metric: 'retain_ctr', cookie: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis', 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/tikhub/tiktok/ads/get_ad_keyframe_analysis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'material_id' => '<string>',
'metric' => 'retain_ctr',
'cookie' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis"
payload := strings.NewReader("{\n \"material_id\": \"<string>\",\n \"metric\": \"retain_ctr\",\n \"cookie\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"material_id\": \"<string>\",\n \"metric\": \"retain_ctr\",\n \"cookie\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"material_id\": \"<string>\",\n \"metric\": \"retain_ctr\",\n \"cookie\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body商业
获取广告关键帧分析
获取广告关键帧分析
POST
/
tikhub
/
tiktok
/
ads
/
get_ad_keyframe_analysis
Get ad keyframe analysis
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"material_id": "<string>",
"metric": "retain_ctr",
"cookie": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis"
payload = {
"material_id": "<string>",
"metric": "retain_ctr",
"cookie": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({material_id: '<string>', metric: 'retain_ctr', cookie: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis', 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/tikhub/tiktok/ads/get_ad_keyframe_analysis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'material_id' => '<string>',
'metric' => 'retain_ctr',
'cookie' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis"
payload := strings.NewReader("{\n \"material_id\": \"<string>\",\n \"metric\": \"retain_ctr\",\n \"cookie\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"material_id\": \"<string>\",\n \"metric\": \"retain_ctr\",\n \"cookie\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"material_id\": \"<string>\",\n \"metric\": \"retain_ctr\",\n \"cookie\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body获取广告关键帧分析
计费 — 成功调用基准价 $0.00145(= provider 成本 × 1.45;最终扣费按你的套餐倍率浮动)。仅当上游响应体
code 为 200 时计费。
响应结构尚未完整文档化 —— 以实际调用为准。
示例
curl -X POST "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_ad_keyframe_analysis" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}' # 请求体结构见下方 schema
授权
AIsa API key. Get yours at https://aisa.one
请求体
application/json
响应
200
Successful response. 以实际调用为准 / Response structure varies; refer to the actual API response.