Get top contents list
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"period_end_timestamp": 1785024000,
"period_dimension": 1,
"country_code": "US",
"content_label_ids": "",
"order_by_metric": 1,
"organic_only": false,
"page": 1,
"limit": 20,
"cookie": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list"
payload = {
"period_end_timestamp": 1785024000,
"period_dimension": 1,
"country_code": "US",
"content_label_ids": "",
"order_by_metric": 1,
"organic_only": False,
"page": 1,
"limit": 20,
"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({
period_end_timestamp: 1785024000,
period_dimension: 1,
country_code: 'US',
content_label_ids: '',
order_by_metric: 1,
organic_only: false,
page: 1,
limit: 20,
cookie: '<string>'
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list', 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_top_contents_list",
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([
'period_end_timestamp' => 1785024000,
'period_dimension' => 1,
'country_code' => 'US',
'content_label_ids' => '',
'order_by_metric' => 1,
'organic_only' => false,
'page' => 1,
'limit' => 20,
'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_top_contents_list"
payload := strings.NewReader("{\n \"period_end_timestamp\": 1785024000,\n \"period_dimension\": 1,\n \"country_code\": \"US\",\n \"content_label_ids\": \"\",\n \"order_by_metric\": 1,\n \"organic_only\": false,\n \"page\": 1,\n \"limit\": 20,\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_top_contents_list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"period_end_timestamp\": 1785024000,\n \"period_dimension\": 1,\n \"country_code\": \"US\",\n \"content_label_ids\": \"\",\n \"order_by_metric\": 1,\n \"organic_only\": false,\n \"page\": 1,\n \"limit\": 20,\n \"cookie\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list")
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 \"period_end_timestamp\": 1785024000,\n \"period_dimension\": 1,\n \"country_code\": \"US\",\n \"content_label_ids\": \"\",\n \"order_by_metric\": 1,\n \"organic_only\": false,\n \"page\": 1,\n \"limit\": 20,\n \"cookie\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyCommercial
Get top contents list
Get top contents list
POST
/
tikhub
/
tiktok
/
ads
/
get_top_contents_list
Get top contents list
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"period_end_timestamp": 1785024000,
"period_dimension": 1,
"country_code": "US",
"content_label_ids": "",
"order_by_metric": 1,
"organic_only": false,
"page": 1,
"limit": 20,
"cookie": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list"
payload = {
"period_end_timestamp": 1785024000,
"period_dimension": 1,
"country_code": "US",
"content_label_ids": "",
"order_by_metric": 1,
"organic_only": False,
"page": 1,
"limit": 20,
"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({
period_end_timestamp: 1785024000,
period_dimension: 1,
country_code: 'US',
content_label_ids: '',
order_by_metric: 1,
organic_only: false,
page: 1,
limit: 20,
cookie: '<string>'
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list', 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_top_contents_list",
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([
'period_end_timestamp' => 1785024000,
'period_dimension' => 1,
'country_code' => 'US',
'content_label_ids' => '',
'order_by_metric' => 1,
'organic_only' => false,
'page' => 1,
'limit' => 20,
'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_top_contents_list"
payload := strings.NewReader("{\n \"period_end_timestamp\": 1785024000,\n \"period_dimension\": 1,\n \"country_code\": \"US\",\n \"content_label_ids\": \"\",\n \"order_by_metric\": 1,\n \"organic_only\": false,\n \"page\": 1,\n \"limit\": 20,\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_top_contents_list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"period_end_timestamp\": 1785024000,\n \"period_dimension\": 1,\n \"country_code\": \"US\",\n \"content_label_ids\": \"\",\n \"order_by_metric\": 1,\n \"organic_only\": false,\n \"page\": 1,\n \"limit\": 20,\n \"cookie\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list")
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 \"period_end_timestamp\": 1785024000,\n \"period_dimension\": 1,\n \"country_code\": \"US\",\n \"content_label_ids\": \"\",\n \"order_by_metric\": 1,\n \"organic_only\": false,\n \"page\": 1,\n \"limit\": 20,\n \"cookie\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyGet top contents list
Pricing — base $0.00145 per successful call (provider cost × 1.45; final charge scales by your plan multiplier). Charged only when the upstream response body
code is 200.
Response structure is not yet fully documented — refer to the actual API response.
Example
curl -X POST "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_list" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}' # see request schema below
Authorizations
AIsa API key. Get yours at https://aisa.one
Body
application/json
调用方需根据目标榜单日期自行生成结束时间戳(10位 Unix 秒级),例如 1785024000;请勿传 0,否则会返回空结果/The caller must generate this 10-digit Unix timestamp in seconds from the target ranking date, for example 1785024000; do not pass 0 because it returns an empty result
Example:
1785024000
榜单周期:1/3/5 /Period dimension
Examples:
1
3
5
国家/地区代码/Country code
内容分类ID,多个用逗号分隔,空为全部/Content label IDs, comma separated
排序指标:1 播放量 2 互动率 3 6秒完播率/Order by metric
Examples:
1
2
3
是否仅看自然流量内容/Organic content only
页码/Page number
每页数量,最大100/Items per page, max 100
自定义Cookie字符串(可选)/Custom Cookie string (optional)
Response
200
Successful response. 以实际调用为准 / Response structure varies; refer to the actual API response.