curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cookie": "Your_Cookie_Here",
"query": {
"startTime": "1780934400",
"endTime": "1781625599",
"dimension": 1,
"analysisType": 1,
"authorSecIdList": [],
"statusList": [],
"SecondaryTargetIds": [],
"CollectWayIds": [],
"metrics": [
"stat_cost",
"total_play",
"total_like",
"dy_comment"
]
}
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph"
payload = {
"cookie": "Your_Cookie_Here",
"query": {
"startTime": "1780934400",
"endTime": "1781625599",
"dimension": 1,
"analysisType": 1,
"authorSecIdList": [],
"statusList": [],
"SecondaryTargetIds": [],
"CollectWayIds": [],
"metrics": ["stat_cost", "total_play", "total_like", "dy_comment"]
}
}
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({
cookie: 'Your_Cookie_Here',
query: {
startTime: '1780934400',
endTime: '1781625599',
dimension: 1,
analysisType: 1,
authorSecIdList: [],
statusList: [],
SecondaryTargetIds: [],
CollectWayIds: [],
metrics: ['stat_cost', 'total_play', 'total_like', 'dy_comment']
}
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph', 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/douyin/douplus/fetch_analyse_graph",
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([
'cookie' => 'Your_Cookie_Here',
'query' => [
'startTime' => '1780934400',
'endTime' => '1781625599',
'dimension' => 1,
'analysisType' => 1,
'authorSecIdList' => [
],
'statusList' => [
],
'SecondaryTargetIds' => [
],
'CollectWayIds' => [
],
'metrics' => [
'stat_cost',
'total_play',
'total_like',
'dy_comment'
]
]
]),
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/douyin/douplus/fetch_analyse_graph"
payload := strings.NewReader("{\n \"cookie\": \"Your_Cookie_Here\",\n \"query\": {\n \"startTime\": \"1780934400\",\n \"endTime\": \"1781625599\",\n \"dimension\": 1,\n \"analysisType\": 1,\n \"authorSecIdList\": [],\n \"statusList\": [],\n \"SecondaryTargetIds\": [],\n \"CollectWayIds\": [],\n \"metrics\": [\n \"stat_cost\",\n \"total_play\",\n \"total_like\",\n \"dy_comment\"\n ]\n }\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/douyin/douplus/fetch_analyse_graph")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cookie\": \"Your_Cookie_Here\",\n \"query\": {\n \"startTime\": \"1780934400\",\n \"endTime\": \"1781625599\",\n \"dimension\": 1,\n \"analysisType\": 1,\n \"authorSecIdList\": [],\n \"statusList\": [],\n \"SecondaryTargetIds\": [],\n \"CollectWayIds\": [],\n \"metrics\": [\n \"stat_cost\",\n \"total_play\",\n \"total_like\",\n \"dy_comment\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph")
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 \"cookie\": \"Your_Cookie_Here\",\n \"query\": {\n \"startTime\": \"1780934400\",\n \"endTime\": \"1781625599\",\n \"dimension\": 1,\n \"analysisType\": 1,\n \"authorSecIdList\": [],\n \"statusList\": [],\n \"SecondaryTargetIds\": [],\n \"CollectWayIds\": [],\n \"metrics\": [\n \"stat_cost\",\n \"total_play\",\n \"total_like\",\n \"dy_comment\"\n ]\n }\n}"
response = http.request(request)
puts response.read_bodyDelivery analysis trend graph
Delivery analysis trend graph
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cookie": "Your_Cookie_Here",
"query": {
"startTime": "1780934400",
"endTime": "1781625599",
"dimension": 1,
"analysisType": 1,
"authorSecIdList": [],
"statusList": [],
"SecondaryTargetIds": [],
"CollectWayIds": [],
"metrics": [
"stat_cost",
"total_play",
"total_like",
"dy_comment"
]
}
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph"
payload = {
"cookie": "Your_Cookie_Here",
"query": {
"startTime": "1780934400",
"endTime": "1781625599",
"dimension": 1,
"analysisType": 1,
"authorSecIdList": [],
"statusList": [],
"SecondaryTargetIds": [],
"CollectWayIds": [],
"metrics": ["stat_cost", "total_play", "total_like", "dy_comment"]
}
}
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({
cookie: 'Your_Cookie_Here',
query: {
startTime: '1780934400',
endTime: '1781625599',
dimension: 1,
analysisType: 1,
authorSecIdList: [],
statusList: [],
SecondaryTargetIds: [],
CollectWayIds: [],
metrics: ['stat_cost', 'total_play', 'total_like', 'dy_comment']
}
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph', 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/douyin/douplus/fetch_analyse_graph",
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([
'cookie' => 'Your_Cookie_Here',
'query' => [
'startTime' => '1780934400',
'endTime' => '1781625599',
'dimension' => 1,
'analysisType' => 1,
'authorSecIdList' => [
],
'statusList' => [
],
'SecondaryTargetIds' => [
],
'CollectWayIds' => [
],
'metrics' => [
'stat_cost',
'total_play',
'total_like',
'dy_comment'
]
]
]),
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/douyin/douplus/fetch_analyse_graph"
payload := strings.NewReader("{\n \"cookie\": \"Your_Cookie_Here\",\n \"query\": {\n \"startTime\": \"1780934400\",\n \"endTime\": \"1781625599\",\n \"dimension\": 1,\n \"analysisType\": 1,\n \"authorSecIdList\": [],\n \"statusList\": [],\n \"SecondaryTargetIds\": [],\n \"CollectWayIds\": [],\n \"metrics\": [\n \"stat_cost\",\n \"total_play\",\n \"total_like\",\n \"dy_comment\"\n ]\n }\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/douyin/douplus/fetch_analyse_graph")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cookie\": \"Your_Cookie_Here\",\n \"query\": {\n \"startTime\": \"1780934400\",\n \"endTime\": \"1781625599\",\n \"dimension\": 1,\n \"analysisType\": 1,\n \"authorSecIdList\": [],\n \"statusList\": [],\n \"SecondaryTargetIds\": [],\n \"CollectWayIds\": [],\n \"metrics\": [\n \"stat_cost\",\n \"total_play\",\n \"total_like\",\n \"dy_comment\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph")
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 \"cookie\": \"Your_Cookie_Here\",\n \"query\": {\n \"startTime\": \"1780934400\",\n \"endTime\": \"1781625599\",\n \"dimension\": 1,\n \"analysisType\": 1,\n \"authorSecIdList\": [],\n \"statusList\": [],\n \"SecondaryTargetIds\": [],\n \"CollectWayIds\": [],\n \"metrics\": [\n \"stat_cost\",\n \"total_play\",\n \"total_like\",\n \"dy_comment\"\n ]\n }\n}"
response = http.request(request)
puts response.read_bodycode is 200.
Example
curl -X POST "https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_analyse_graph" \
-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
投放数据分析请求模型(概览/趋势/明细通用,透传 query) Delivery Analysis Request Model (overview / graph / detail, query passthrough)
用户 www.douyin.com 网页版 Cookie/User www.douyin.com web Cookie
"Your_Cookie_Here"
分析查询对象/Analysis query object. 关键字段/key fields: startTime,endTime(秒级时间戳字符串/second timestamp string); analysisType(1=账号/account, 2=视频/video, 3=直播/live); authorSecIdList(账号 sec_uid 列表); statusList(投放状态过滤); metrics(指标列表,如 stat_cost,total_play,total_like,dy_comment,dy_share,dy_follow); SecondaryTargetIds; CollectWayIds. graph 额外/extra: dimension; detail 额外/extra: page,limit,orderByMetric,orderByType; 视频/直播分析额外/extra: liveRoomIdList
{
"CollectWayIds": [],
"SecondaryTargetIds": [],
"analysisType": 1,
"authorSecIdList": [],
"endTime": "1781625599",
"metrics": [
"stat_cost",
"total_play",
"play_duration_5s_rate",
"total_like",
"dy_comment",
"dy_share",
"dy_home_visited",
"dy_follow"
],
"startTime": "1780934400",
"statusList": []
}
Response
Successful response. 以实际调用为准 / Response structure varies; refer to the actual API response.