Get recommended ads
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_recommended_ads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"material_id": "<string>",
"industry": "25308000000",
"country_code": "US",
"cookie": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_recommended_ads"
payload = {
"material_id": "<string>",
"industry": "25308000000",
"country_code": "US",
"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>',
industry: '25308000000',
country_code: 'US',
cookie: '<string>'
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_recommended_ads', 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_recommended_ads",
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>',
'industry' => '25308000000',
'country_code' => 'US',
'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_recommended_ads"
payload := strings.NewReader("{\n \"material_id\": \"<string>\",\n \"industry\": \"25308000000\",\n \"country_code\": \"US\",\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_recommended_ads")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"material_id\": \"<string>\",\n \"industry\": \"25308000000\",\n \"country_code\": \"US\",\n \"cookie\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_recommended_ads")
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 \"industry\": \"25308000000\",\n \"country_code\": \"US\",\n \"cookie\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyCommercial
Get recommended ads
Get recommended ads
POST
/
tikhub
/
tiktok
/
ads
/
get_recommended_ads
Get recommended ads
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_recommended_ads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"material_id": "<string>",
"industry": "25308000000",
"country_code": "US",
"cookie": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_recommended_ads"
payload = {
"material_id": "<string>",
"industry": "25308000000",
"country_code": "US",
"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>',
industry: '25308000000',
country_code: 'US',
cookie: '<string>'
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_recommended_ads', 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_recommended_ads",
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>',
'industry' => '25308000000',
'country_code' => 'US',
'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_recommended_ads"
payload := strings.NewReader("{\n \"material_id\": \"<string>\",\n \"industry\": \"25308000000\",\n \"country_code\": \"US\",\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_recommended_ads")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"material_id\": \"<string>\",\n \"industry\": \"25308000000\",\n \"country_code\": \"US\",\n \"cookie\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/tiktok/ads/get_recommended_ads")
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 \"industry\": \"25308000000\",\n \"country_code\": \"US\",\n \"cookie\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyGet recommended ads
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_recommended_ads" \
-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
Response
200
Successful response. 以实际调用为准 / Response structure varies; refer to the actual API response.