curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"gid": "<string>",
"location_name": "<string>",
"language_name": "<string>",
"product_id": "<string>",
"data_docid": "<string>",
"priority": 123,
"location_code": 123,
"location_coordinate": "<string>",
"language_code": "<string>",
"se_domain": "<string>",
"depth": 123,
"tag": "<string>",
"postback_url": "<string>",
"postback_data": "<string>",
"pingback_url": "<string>"
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post"
payload = [
{
"gid": "<string>",
"location_name": "<string>",
"language_name": "<string>",
"product_id": "<string>",
"data_docid": "<string>",
"priority": 123,
"location_code": 123,
"location_coordinate": "<string>",
"language_code": "<string>",
"se_domain": "<string>",
"depth": 123,
"tag": "<string>",
"postback_url": "<string>",
"postback_data": "<string>",
"pingback_url": "<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([
{
gid: '<string>',
location_name: '<string>',
language_name: '<string>',
product_id: '<string>',
data_docid: '<string>',
priority: 123,
location_code: 123,
location_coordinate: '<string>',
language_code: '<string>',
se_domain: '<string>',
depth: 123,
tag: '<string>',
postback_url: '<string>',
postback_data: '<string>',
pingback_url: '<string>'
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post', 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/merchant/google/reviews/task_post",
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([
[
'gid' => '<string>',
'location_name' => '<string>',
'language_name' => '<string>',
'product_id' => '<string>',
'data_docid' => '<string>',
'priority' => 123,
'location_code' => 123,
'location_coordinate' => '<string>',
'language_code' => '<string>',
'se_domain' => '<string>',
'depth' => 123,
'tag' => '<string>',
'postback_url' => '<string>',
'postback_data' => '<string>',
'pingback_url' => '<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/merchant/google/reviews/task_post"
payload := strings.NewReader("[\n {\n \"gid\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"product_id\": \"<string>\",\n \"data_docid\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"se_domain\": \"<string>\",\n \"depth\": 123,\n \"tag\": \"<string>\",\n \"postback_url\": \"<string>\",\n \"postback_data\": \"<string>\",\n \"pingback_url\": \"<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/merchant/google/reviews/task_post")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"gid\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"product_id\": \"<string>\",\n \"data_docid\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"se_domain\": \"<string>\",\n \"depth\": 123,\n \"tag\": \"<string>\",\n \"postback_url\": \"<string>\",\n \"postback_data\": \"<string>\",\n \"pingback_url\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post")
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 \"gid\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"product_id\": \"<string>\",\n \"data_docid\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"se_domain\": \"<string>\",\n \"depth\": 123,\n \"tag\": \"<string>\",\n \"postback_url\": \"<string>\",\n \"postback_data\": \"<string>\",\n \"pingback_url\": \"<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>"
]
}设置 Google Shopping Reviews 任务
排队获取某个 Google Shopping 商品的评价,返回任务 id。
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"gid": "<string>",
"location_name": "<string>",
"language_name": "<string>",
"product_id": "<string>",
"data_docid": "<string>",
"priority": 123,
"location_code": 123,
"location_coordinate": "<string>",
"language_code": "<string>",
"se_domain": "<string>",
"depth": 123,
"tag": "<string>",
"postback_url": "<string>",
"postback_data": "<string>",
"pingback_url": "<string>"
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post"
payload = [
{
"gid": "<string>",
"location_name": "<string>",
"language_name": "<string>",
"product_id": "<string>",
"data_docid": "<string>",
"priority": 123,
"location_code": 123,
"location_coordinate": "<string>",
"language_code": "<string>",
"se_domain": "<string>",
"depth": 123,
"tag": "<string>",
"postback_url": "<string>",
"postback_data": "<string>",
"pingback_url": "<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([
{
gid: '<string>',
location_name: '<string>',
language_name: '<string>',
product_id: '<string>',
data_docid: '<string>',
priority: 123,
location_code: 123,
location_coordinate: '<string>',
language_code: '<string>',
se_domain: '<string>',
depth: 123,
tag: '<string>',
postback_url: '<string>',
postback_data: '<string>',
pingback_url: '<string>'
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post', 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/merchant/google/reviews/task_post",
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([
[
'gid' => '<string>',
'location_name' => '<string>',
'language_name' => '<string>',
'product_id' => '<string>',
'data_docid' => '<string>',
'priority' => 123,
'location_code' => 123,
'location_coordinate' => '<string>',
'language_code' => '<string>',
'se_domain' => '<string>',
'depth' => 123,
'tag' => '<string>',
'postback_url' => '<string>',
'postback_data' => '<string>',
'pingback_url' => '<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/merchant/google/reviews/task_post"
payload := strings.NewReader("[\n {\n \"gid\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"product_id\": \"<string>\",\n \"data_docid\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"se_domain\": \"<string>\",\n \"depth\": 123,\n \"tag\": \"<string>\",\n \"postback_url\": \"<string>\",\n \"postback_data\": \"<string>\",\n \"pingback_url\": \"<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/merchant/google/reviews/task_post")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"gid\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"product_id\": \"<string>\",\n \"data_docid\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"se_domain\": \"<string>\",\n \"depth\": 123,\n \"tag\": \"<string>\",\n \"postback_url\": \"<string>\",\n \"postback_data\": \"<string>\",\n \"pingback_url\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post")
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 \"gid\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"product_id\": \"<string>\",\n \"data_docid\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"se_domain\": \"<string>\",\n \"depth\": 123,\n \"tag\": \"<string>\",\n \"postback_url\": \"<string>\",\n \"postback_data\": \"<string>\",\n \"pingback_url\": \"<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>"
]
}id。用 product_id 加 gid 或 data_docid 定位商品。本家族全程异步:submit 在 tasks[0].id 返回任务 id,结果就绪后由 fetch 取回。💰 费用发生在 submit,fetch 免费,重复 fetch 也不再收费。 用 get_dataforseo_merchant_google_reviews_fetch 取结果。
示例
curl -X POST "https://api.aisa.one/apis/v1/dataforseo/merchant/google/reviews/task_post" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '[{"gid": "...", "product_id": "...", "data_docid": "..."}]'
// 把整段复制给 Claude Code、Codex、Cursor 或任意 coding agent。
// 连接、授权、跑通这个例子需要的东西都在里面 ——
// 不用粘贴任何 key,浏览器里点一次 Allow 就好。
{
"operation_id": "post_dataforseo_merchant_google_reviews_submit",
"arguments": {},
"max_price_usd": 0.05
}
// ── for the agent ─────────────────────────────────────────────────────────
// Register the AIsa MCP server, then call its `use` tool with the JSON above.
// name aisa
// endpoint https://mcp.aisa.one/mcp
// transport streamable-http
// auth OAuth. The server publishes RFC 9728 metadata, so open a
// browser and the user clicks Allow once — nothing to paste.
// If AISA_API_KEY is set, send it as a bearer header instead.
// Use your own MCP mechanism, not a hand-edited config file:
// Codex codex mcp add aisa --url https://mcp.aisa.one/mcp
// Claude Code claude mcp add --transport http -s user aisa https://mcp.aisa.one/mcp
// Cursor / VS Code a "url" entry for https://mcp.aisa.one/mcp in the MCP config
// The server lists five tools over https://mcp.aisa.one/servers worth of APIs:
// search, get_details, use, batch_use, list_categories. search and
// get_details are free; use is billed per call and max_price_usd refuses
// anything above the cap before spending. This operation's full contract —
// every argument, the response shape, the price and the pitfalls — is at
// https://aisa.one/docs/zh/api-reference/dataforseo/post_dataforseo-merchant-google-reviews-task-post.md
// Then run the call and show me the result.
https://mcp.aisa.one/mcp —— Claude Code、
Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次
Allow,不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见
aisa.one/zh-cn/mcp。授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Google Shopping 上的全局产品标识符,必填字段。为获得最佳结果,建议将 gid 与 data_docid 和 product_id 一同指定;可以通过向 Google Shopping Products 端点单独发起请求,获取特定产品的此值。示例:4702526954592161872。有关此参数的更多信息,请参阅此帮助中心指南
搜索引擎位置的完整名称。如果未指定 location_code 或 location_coordinate,则为必填字段。如果使用此字段,则无需指定 location_code 或 location_coordinate。您可以通过单独请求 https://api.dataforseo.com/v3/merchant/google/locations,获取带有 location_name 参数的可用位置列表。示例:HA1,England,United Kingdom
搜索引擎语言的完整名称。如果未指定 language_code,则为必填字段;如果使用此字段,则无需指定 language_code。您可以通过向 https://api.dataforseo.com/v3/merchant/google/languages 单独发出请求,获取包含 language_name 参数的可用语言列表。示例:English (United Kingdom)
Google Shopping 上的唯一产品标识符,可选字段。为获得最佳结果,建议同时指定 product_id、data_docid 和 gid;您可以通过向 Google Shopping Products 端点单独发送请求,获取特定产品的此值。示例:4485466949985702538。有关此参数的更多信息,请参阅此帮助中心指南
SERP 数据元素的唯一标识符;可选字段。为获得最佳结果,建议将 data_docid 与 product_id 和 gid 一起指定;可以通过向 Google Shopping Products 端点单独发起请求,获取特定元素的此值。示例:13071766526042404278
task priority optional field can take the following values: 1 – normal execution priority (set by default) 2 – high execution priority You will be additionally charged for the tasks with high execution priority. the cost can be calculated on the Pricing page.
搜索引擎位置代码;如果未指定 location_name 或 location_coordinate,则为必填字段。如果使用此字段,则无需指定 location_name 或 location_coordinate。您可以向 https://api.dataforseo.com/v3/merchant/google/locations 单独发出请求,以获取可用位置及其 location_code 参数列表;示例:9045969
位置的 GPS 坐标。如果未指定 location_name 或 location_code,则此字段为必填字段。如果使用此字段,则无需指定 location_name 或 location_code。location_coordinate 参数应采用“latitude,longitude,radius”格式。“latitude”和“longitude”的最大小数位数:7;“radius”的最小值:199.9。示例:53.476225,-2.243572,200
搜索引擎语言代码;如果未指定 language_name,则为必填字段;如果使用此字段,则无需指定 language_name;您可以通过向 https://api.dataforseo.com/v3/merchant/google/languages 单独发送请求,获取可用语言及其 language_code 参数列表;示例:en_GB
搜索引擎域名 可选字段 我们会根据你指定的位置和语言自动选择相关搜索引擎域名;但你也可以在此字段中设置自定义搜索引擎域名,例如:google.co.uk、google.com.au、google.de 等
parsing depth optional field number of reviews in SERP; we strongly recommend setting the parsing depth in the multiples of ten, because our system processes ten reviews in a row; maximum value: 8000 default value: 10 Your account will be billed per each SERP containing up to 10 results; Setting depth above 10 may result in additional charges if the search engine returns more than 10 results; The cost can be calculated on the Pricing page.
用户定义的任务标识符。可选字段。字符数限制为 255。您可以使用此参数标识任务并将其与结果匹配;您将在响应的 data 对象中找到指定的 tag 值
用于发送任务结果的 URL,可选字段;任务完成后,我们会向指定的 postback_url 发送 POST 请求,其结果采用 gzip 格式压缩;可以使用字符串 ‘$id’ 作为 $id 变量,并使用 ‘$tag’ 作为经过 URL 编码的 $tag 变量。我们会在发送请求前设置必要的值。示例:http://your-server.com/postbackscript?id=$id http://your-server.com/postbackscript?id=$id&tag=$tag 注意:postback_url 中的特殊字符将经过 URL 编码;例如,# 字符将被编码为 %23;有关更多信息,请参阅我们的帮助中心
postback_url 数据类型,可选字段;对应将发送到您服务器的数据类型。可选值:advanced
已完成任务的通知 URL。可选字段。任务完成后,我们将通过向您指定的 URL 发送 GET 请求来通知您。您可以使用字符串 ‘$id’ 作为 $id 变量,并使用 ‘$tag’ 作为经过 urlencoded 编码的 $tag 变量。我们会在发送请求前设置必要的值。示例:http://your-server.com/pingscript?id=$id http://your-server.com/pingscript?id=$id&tag=$tag 注意:pingback_url 中的特殊字符将经过 urlencoded 编码;例如,# 字符将被编码为 %23。请在我们的帮助中心了解更多信息
响应
成功响应
API 的当前版本
通用状态码;您可以在此处查看完整的响应码列表。注意:我们强烈建议设计必要的系统来处理相关异常或错误情况
常规信息消息;可在此处查看常规信息消息的完整列表
执行时间(秒)
任务总成本(美元)
tasksarray 中的任务数量
返回错误的 tasks 数组中的任务数量
任务数组
系统中采用通用唯一标识符(UUID)格式的唯一任务标识符
DataForSEO 生成的任务状态码;范围可以是 10000-60000
任务的信息性消息
执行时间(秒)
任务成本(美元)
结果数组中的元素数量
URL 路径
包含您在 POST 请求中指定的相同参数
结果数组;在此情况下,该值将为 null