curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_delivery_effect_estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item_ids": "7677202522116819185",
"external_action": 44,
"target_id": 31,
"schema": 0,
"is_max_cv": true,
"pay_type": 1,
"cost_int": 30000,
"duration_seconds": 21600
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_delivery_effect_estimate"
payload = {
"item_ids": "7677202522116819185",
"external_action": 44,
"target_id": 31,
"schema": 0,
"is_max_cv": True,
"pay_type": 1,
"cost_int": 30000,
"duration_seconds": 21600
}
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_ids: '7677202522116819185',
external_action: 44,
target_id: 31,
schema: 0,
is_max_cv: true,
pay_type: 1,
cost_int: 30000,
duration_seconds: 21600
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_delivery_effect_estimate', 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_delivery_effect_estimate",
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_ids' => '7677202522116819185',
'external_action' => 44,
'target_id' => 31,
'schema' => 0,
'is_max_cv' => true,
'pay_type' => 1,
'cost_int' => 30000,
'duration_seconds' => 21600
]),
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_delivery_effect_estimate"
payload := strings.NewReader("{\n \"item_ids\": \"7677202522116819185\",\n \"external_action\": 44,\n \"target_id\": 31,\n \"schema\": 0,\n \"is_max_cv\": true,\n \"pay_type\": 1,\n \"cost_int\": 30000,\n \"duration_seconds\": 21600\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_delivery_effect_estimate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"item_ids\": \"7677202522116819185\",\n \"external_action\": 44,\n \"target_id\": 31,\n \"schema\": 0,\n \"is_max_cv\": true,\n \"pay_type\": 1,\n \"cost_int\": 30000,\n \"duration_seconds\": 21600\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_delivery_effect_estimate")
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_ids\": \"7677202522116819185\",\n \"external_action\": 44,\n \"target_id\": 31,\n \"schema\": 0,\n \"is_max_cv\": true,\n \"pay_type\": 1,\n \"cost_int\": 30000,\n \"duration_seconds\": 21600\n}"
response = http.request(request)
puts response.read_bodyGet DOU+ estimated delivery results
Get DOU+ estimated delivery results
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_delivery_effect_estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item_ids": "7677202522116819185",
"external_action": 44,
"target_id": 31,
"schema": 0,
"is_max_cv": true,
"pay_type": 1,
"cost_int": 30000,
"duration_seconds": 21600
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_delivery_effect_estimate"
payload = {
"item_ids": "7677202522116819185",
"external_action": 44,
"target_id": 31,
"schema": 0,
"is_max_cv": True,
"pay_type": 1,
"cost_int": 30000,
"duration_seconds": 21600
}
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_ids: '7677202522116819185',
external_action: 44,
target_id: 31,
schema: 0,
is_max_cv: true,
pay_type: 1,
cost_int: 30000,
duration_seconds: 21600
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_delivery_effect_estimate', 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_delivery_effect_estimate",
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_ids' => '7677202522116819185',
'external_action' => 44,
'target_id' => 31,
'schema' => 0,
'is_max_cv' => true,
'pay_type' => 1,
'cost_int' => 30000,
'duration_seconds' => 21600
]),
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_delivery_effect_estimate"
payload := strings.NewReader("{\n \"item_ids\": \"7677202522116819185\",\n \"external_action\": 44,\n \"target_id\": 31,\n \"schema\": 0,\n \"is_max_cv\": true,\n \"pay_type\": 1,\n \"cost_int\": 30000,\n \"duration_seconds\": 21600\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_delivery_effect_estimate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"item_ids\": \"7677202522116819185\",\n \"external_action\": 44,\n \"target_id\": 31,\n \"schema\": 0,\n \"is_max_cv\": true,\n \"pay_type\": 1,\n \"cost_int\": 30000,\n \"duration_seconds\": 21600\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/douyin/douplus/fetch_delivery_effect_estimate")
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_ids\": \"7677202522116819185\",\n \"external_action\": 44,\n \"target_id\": 31,\n \"schema\": 0,\n \"is_max_cv\": true,\n \"pay_type\": 1,\n \"cost_int\": 30000,\n \"duration_seconds\": 21600\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_delivery_effect_estimate" \
-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
DOU+ Delivery Effect Estimate Request Model
Item id(s), comma separated; normally use schema=0 for one item and schema=3 for multiple items
1"7677202522116819185"
Optimization action code; must match target_id, default 44 (NativeAction). Common values: 45=like, 46=follow, 47=comment, 51=link click, 102=multiple native actions, 181=homepage visit
44
Promotion target id, default 31 (likes and comments). Common values: 32=followers, 33=homepage visits, 37=video plays, 40=live popularity, 45=comment-link clicks, 63=show to followers, 78=natural promotion, 81=high interaction frequency
31
Delivery schema: 0=single-item Default, 3=multi-item BatchDelivery; the official client selects it from the item count
0
Whether to estimate in MaxCV (maximum-conversion-volume) mode; the official client derives it from target capability, item count, budget and manual-bid state, default true
true
Payment channel: 0=CashDesk, 1=IAP, 2=Caijing, 3=CgTradeCash; the official estimate request uses 1
0 <= x <= 31
1000), default 30000 (CNY 30
30000
Delivery duration in seconds, default 21600 (6 hours
21600
Response
Successful response. Response structure varies; refer to the actual API response.