curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item_id": "<string>",
"period_end_timestamp": 1785024000
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail"
payload = {
"item_id": "<string>",
"period_end_timestamp": 1785024000
}
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({item_id: '<string>', period_end_timestamp: 1785024000})
};
fetch('https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail', 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_item_detail",
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([
'item_id' => '<string>',
'period_end_timestamp' => 1785024000
]),
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_item_detail"
payload := strings.NewReader("{\n \"item_id\": \"<string>\",\n \"period_end_timestamp\": 1785024000\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_item_detail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"item_id\": \"<string>\",\n \"period_end_timestamp\": 1785024000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail")
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 \"item_id\": \"<string>\",\n \"period_end_timestamp\": 1785024000\n}"
response = http.request(request)
puts response.read_body{
"cache_message": "This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.",
"cache_message_zh": "本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。",
"cache_url": "<string>",
"code": 200,
"data": "<unknown>",
"docs": "<string>",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {},
"request_id": "<string>",
"router": "",
"support": "Discord: https://discord.gg/aMEAS8Xsvz",
"time": "<string>",
"time_stamp": 123,
"time_zone": "America/Los_Angeles"
}tiktok get_top_contents_item_detail
Get top contents item detail
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item_id": "<string>",
"period_end_timestamp": 1785024000
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail"
payload = {
"item_id": "<string>",
"period_end_timestamp": 1785024000
}
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({item_id: '<string>', period_end_timestamp: 1785024000})
};
fetch('https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail', 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_item_detail",
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([
'item_id' => '<string>',
'period_end_timestamp' => 1785024000
]),
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_item_detail"
payload := strings.NewReader("{\n \"item_id\": \"<string>\",\n \"period_end_timestamp\": 1785024000\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_item_detail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"item_id\": \"<string>\",\n \"period_end_timestamp\": 1785024000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail")
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 \"item_id\": \"<string>\",\n \"period_end_timestamp\": 1785024000\n}"
response = http.request(request)
puts response.read_body{
"cache_message": "This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.",
"cache_message_zh": "本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。",
"cache_url": "<string>",
"code": 200,
"data": "<unknown>",
"docs": "<string>",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {},
"request_id": "<string>",
"router": "",
"support": "Discord: https://discord.gg/aMEAS8Xsvz",
"time": "<string>",
"time_stamp": 123,
"time_zone": "America/Los_Angeles"
}code is 200.
Example
curl -X POST "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}' # see request schema below
Request contract
- Method and path: POST /apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail
{
"operationId": "post_tikhub_tiktok_ads_get_top_contents_item_detail",
"method": "POST",
"path": "/apis/v1/tikhub/tiktok/ads/get_top_contents_item_detail",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"cookie": {
"description": "Custom Cookie string, optional parameter, you can use your own Cookie to get more data",
"title": "Cookie",
"type": "string"
},
"country_code": {
"default": "US",
"description": "Country code of the ranking the video belongs to, default US",
"title": "Country Code",
"type": "string"
},
"item_id": {
"description": "Video item ID\n\nUsage: Video ID, obtained from `itemInfo.itemID` of /tikhub/tiktok/ads/get_top_contents_list\n\nAPI references: `get_top_contents_list` = `POST /tikhub/tiktok/ads/get_top_contents_list` (operationId: `post_tikhub_tiktok_ads_get_top_contents_list`).",
"title": "Item Id",
"type": "string"
},
"period_dimension": {
"default": 3,
"description": "Period dimension: 1/3/5\n\nUsage: Period, one of 1 / 3 / 5, default 3, recommended to match the ranking query",
"example": 1,
"title": "Period Dimension",
"type": "integer"
},
"period_end_timestamp": {
"description": "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\n\nUsage: Period end timestamp in seconds, required\n - Generate this value from the target ranking date; it is not returned by another endpoint\n - Example: `1785024000`; do not pass `0`, which returns an empty result\n - For period_dimension 1, pass a Sunday 00:00 UTC timestamp; other dates return no data\n - For period_dimension 3 or 5, any past date works\n - If item_id comes from /tikhub/tiktok/ads/get_top_contents_list, reuse that ranking query's timestamp\n\nAPI references: `get_top_contents_list` = `POST /tikhub/tiktok/ads/get_top_contents_list` (operationId: `post_tikhub_tiktok_ads_get_top_contents_list`).",
"example": 1785024000,
"title": "Period End Timestamp",
"type": "integer"
}
},
"required": [
"item_id",
"period_end_timestamp"
],
"title": "Body_get_top_contents_item_detail_api_v1_tiktok_ads_get_top_contents_item_detail_post",
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Request pricing. Default request estimate: $0.001 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
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
Usage: Period end timestamp in seconds, required
- Generate this value from the target ranking date; it is not returned by another endpoint
- Example: 1785024000; do not pass 0, which returns an empty result
- For period_dimension 1, pass a Sunday 00:00 UTC timestamp; other dates return no data
- For period_dimension 3 or 5, any past date works
- If item_id comes from /tikhub/tiktok/ads/get_top_contents_list, reuse that ranking query's timestamp
API references: get_top_contents_list = POST /tikhub/tiktok/ads/get_top_contents_list (operationId: post_tikhub_tiktok_ads_get_top_contents_list).
1785024000
Response
Successful response. The outer object follows ResponseModel; the endpoint-specific payload is in data.
Return Description
entityInfo: Video detail (itemInfo / itemMetrics / itemAuthorInfo / itemAuthorMetrics / contentTags / commentInfos)
Endpoint-specific response payload. The official shared model does not declare a fixed type or field set. Use the operation's documented return fields or response example; an operation-specific schema, when present, describes the documented fields. Undocumented fields must be read from the actual response rather than assumed.