设置实时“点击流全球搜索量”任务
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"keywords": [
"<string>"
],
"tag": "<string>"
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live"
payload = [
{
"keywords": ["<string>"],
"tag": "<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([{keywords: ['<string>'], tag: '<string>'}])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live', 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/dataforseo/keywords_data/clickstream_data/global_search_volume/live",
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([
[
'keywords' => [
'<string>'
],
'tag' => '<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/dataforseo/keywords_data/clickstream_data/global_search_volume/live"
payload := strings.NewReader("[\n {\n \"keywords\": [\n \"<string>\"\n ],\n \"tag\": \"<string>\"\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/dataforseo/keywords_data/clickstream_data/global_search_volume/live")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"keywords\": [\n \"<string>\"\n ],\n \"tag\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live")
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 {\n \"keywords\": [\n \"<string>\"\n ],\n \"tag\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"version": "<string>",
"status_code": 123,
"status_message": "<string>",
"time": "<string>",
"cost": 123,
"tasks_count": 123,
"tasks_error": 123,
"tasks": [
"<string>"
],
"tasks.id": "<string>",
"tasks.status_code": 123,
"tasks.status_message": "<string>",
"tasks.time": "<string>",
"tasks.cost": 123,
"tasks.result_count": 123,
"tasks.path": [
"<string>"
],
"tasks.data": {},
"tasks.result": [
"<string>"
],
"tasks.result.items_count": 123,
"tasks.result.items": [
"<string>"
],
"tasks.result.items.keyword": "<string>",
"tasks.result.items.search_volume": 123,
"tasks.result.items.country_distribution": [
"<string>"
],
"tasks.result.items.country_distribution.country_iso_code": "<string>",
"tasks.result.items.country_distribution.search_volume": 123,
"tasks.result.items.country_distribution.percentage": 123
}点击流数据
设置实时“点击流全球搜索量”任务
keywords 的全球点击流搜索量,完全不带地区参数——给全球总量和分国家拆分。
POST
https://api.aisa.one/apis/v1
/
dataforseo
/
keywords_data
/
clickstream_data
/
global_search_volume
/
live
设置实时“点击流全球搜索量”任务
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"keywords": [
"<string>"
],
"tag": "<string>"
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live"
payload = [
{
"keywords": ["<string>"],
"tag": "<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([{keywords: ['<string>'], tag: '<string>'}])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live', 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/dataforseo/keywords_data/clickstream_data/global_search_volume/live",
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([
[
'keywords' => [
'<string>'
],
'tag' => '<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/dataforseo/keywords_data/clickstream_data/global_search_volume/live"
payload := strings.NewReader("[\n {\n \"keywords\": [\n \"<string>\"\n ],\n \"tag\": \"<string>\"\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/dataforseo/keywords_data/clickstream_data/global_search_volume/live")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"keywords\": [\n \"<string>\"\n ],\n \"tag\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live")
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 {\n \"keywords\": [\n \"<string>\"\n ],\n \"tag\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"version": "<string>",
"status_code": 123,
"status_message": "<string>",
"time": "<string>",
"cost": 123,
"tasks_count": 123,
"tasks_error": 123,
"tasks": [
"<string>"
],
"tasks.id": "<string>",
"tasks.status_code": 123,
"tasks.status_message": "<string>",
"tasks.time": "<string>",
"tasks.cost": 123,
"tasks.result_count": 123,
"tasks.path": [
"<string>"
],
"tasks.data": {},
"tasks.result": [
"<string>"
],
"tasks.result.items_count": 123,
"tasks.result.items": [
"<string>"
],
"tasks.result.items.keyword": "<string>",
"tasks.result.items.search_volume": 123,
"tasks.result.items.country_distribution": [
"<string>"
],
"tasks.result.items.country_distribution.country_iso_code": "<string>",
"tasks.result.items.country_distribution.search_volume": 123,
"tasks.result.items.country_distribution.percentage": 123
}keywords 的全球点击流搜索量,完全不带地区参数——给全球总量和分国家拆分。实测 1.9 KB。🔴 **实测上游 0.18,我们收0.012——十五倍,本 provider 里差距最大的一档。**一次调用喂多个关键词,绝不要一个词调一次。 响应包在信封里:数据在 tasks[0].result,成败在 tasks[0].status_code——请求被拒时 HTTP 仍是 200。 用它决定哪些市场值得再花一次按地区的调用;按地区的版本是 post_dataforseo_keywords_clickstream_search_volume_live。
示例
curl -X POST "https://api.aisa.one/apis/v1/dataforseo/keywords_data/clickstream_data/global_search_volume/live" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '[{"keywords": "...", "tag": "..."}]'
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
响应
成功响应
API 的当前版本
通用状态码;您可以在此处查看完整的响应码列表。注意:我们强烈建议设计必要的系统来处理相关异常或错误情况
常规信息消息;可在此处查看常规信息消息的完整列表
执行时间(秒)
任务总成本(美元)
tasks 数组中的任务数量
返回错误的 tasks 数组中的任务数量
任务数组
任务标识符,系统中采用 UUID 格式的唯一任务标识符
DataForSEO 生成的任务状态码;范围为:10000-60000;完整响应代码列表可在此处查看
任务的信息性消息,你可以在此处查看通用信息性消息的完整列表
执行时间(秒)
任务成本(美元)
结果数组中的元素数量
URL 路径
包含您在 POST 请求中指定的相同参数
结果数组
items 数组中返回的结果数量
包含关键词及相关数据
关键词,返回时会解码 %##(加号“+”将被解码为空格字符)
基于点击流的平均每月搜索量,表示根据点击流估算的给定关键词建议的搜索次数。可以在这篇帮助中心文章中进一步了解点击流搜索量
按国家/地区划分的点击流分布,表示可用国家/地区中基于点击流的搜索量及其占全球搜索量的相应百分比
国家/地区 ISO 代码
指定国家/地区的搜索量
全球搜索量占比