亚马逊研究
curl --request POST \
--url https://api.glasser.ai/v1/solutions/gtm/amazon_research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"country": "<string>",
"max_charge_usd": "<string>",
"review_pages": 5,
"review_rating": 3,
"verified_only": true,
"review_keyword": "<string>",
"url": "<string>",
"query": "<string>",
"keywords": [
"<string>"
],
"asin": "<string>",
"page": 10,
"limit": 50,
"offset": 5000,
"language": "<string>",
"days": 2,
"task_id": "<string>",
"metadata": {}
}
'import requests
url = "https://api.glasser.ai/v1/solutions/gtm/amazon_research"
payload = {
"country": "<string>",
"max_charge_usd": "<string>",
"review_pages": 5,
"review_rating": 3,
"verified_only": True,
"review_keyword": "<string>",
"url": "<string>",
"query": "<string>",
"keywords": ["<string>"],
"asin": "<string>",
"page": 10,
"limit": 50,
"offset": 5000,
"language": "<string>",
"days": 2,
"task_id": "<string>",
"metadata": {}
}
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
country: '<string>',
max_charge_usd: '<string>',
review_pages: 5,
review_rating: 3,
verified_only: true,
review_keyword: '<string>',
url: '<string>',
query: '<string>',
keywords: ['<string>'],
asin: '<string>',
page: 10,
limit: 50,
offset: 5000,
language: '<string>',
days: 2,
task_id: '<string>',
metadata: {}
})
};
fetch('https://api.glasser.ai/v1/solutions/gtm/amazon_research', 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.glasser.ai/v1/solutions/gtm/amazon_research",
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([
'country' => '<string>',
'max_charge_usd' => '<string>',
'review_pages' => 5,
'review_rating' => 3,
'verified_only' => true,
'review_keyword' => '<string>',
'url' => '<string>',
'query' => '<string>',
'keywords' => [
'<string>'
],
'asin' => '<string>',
'page' => 10,
'limit' => 50,
'offset' => 5000,
'language' => '<string>',
'days' => 2,
'task_id' => '<string>',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"idempotency-key: <idempotency-key>"
],
]);
$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.glasser.ai/v1/solutions/gtm/amazon_research"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"max_charge_usd\": \"<string>\",\n \"review_pages\": 5,\n \"review_rating\": 3,\n \"verified_only\": true,\n \"review_keyword\": \"<string>\",\n \"url\": \"<string>\",\n \"query\": \"<string>\",\n \"keywords\": [\n \"<string>\"\n ],\n \"asin\": \"<string>\",\n \"page\": 10,\n \"limit\": 50,\n \"offset\": 5000,\n \"language\": \"<string>\",\n \"days\": 2,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("idempotency-key", "<idempotency-key>")
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.glasser.ai/v1/solutions/gtm/amazon_research")
.header("idempotency-key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"<string>\",\n \"max_charge_usd\": \"<string>\",\n \"review_pages\": 5,\n \"review_rating\": 3,\n \"verified_only\": true,\n \"review_keyword\": \"<string>\",\n \"url\": \"<string>\",\n \"query\": \"<string>\",\n \"keywords\": [\n \"<string>\"\n ],\n \"asin\": \"<string>\",\n \"page\": 10,\n \"limit\": 50,\n \"offset\": 5000,\n \"language\": \"<string>\",\n \"days\": 2,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/v1/solutions/gtm/amazon_research")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["idempotency-key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"<string>\",\n \"max_charge_usd\": \"<string>\",\n \"review_pages\": 5,\n \"review_rating\": 3,\n \"verified_only\": true,\n \"review_keyword\": \"<string>\",\n \"url\": \"<string>\",\n \"query\": \"<string>\",\n \"keywords\": [\n \"<string>\"\n ],\n \"asin\": \"<string>\",\n \"page\": 10,\n \"limit\": 50,\n \"offset\": 5000,\n \"language\": \"<string>\",\n \"days\": 2,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {},
"output": {
"items": [
{
"asin": "<string>",
"title": "<string>",
"url": "<string>",
"brand": "<string>",
"image_url": "<string>",
"price": 123,
"price_text": "<string>",
"currency": "<string>",
"rating": 123,
"reviews": 123,
"position": 123,
"sponsored": true,
"bought_past_month_text": "<string>",
"stock_text": "<string>",
"condition_text": "<string>",
"price_basis": "displayed_listing_price",
"variants": [
{
"asin": "<string>",
"label": "<string>",
"selected": true
}
],
"attributes": [
{
"name": "<string>",
"value": "<string>"
}
]
}
],
"amazon_domain": "<string>",
"total_matches": 123,
"next_page": 123
},
"provider_response": {
"http_status": 349,
"error": null
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"action": "search",
"result_status": "success",
"error": {
"code": "<string>",
"message": "<string>"
},
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
}
}
],
"result_url": "<string>",
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
},
"review_invitation": {
"run_id": "<string>",
"ratings": [
"exceeds_expectations"
],
"instruction": "<string>"
},
"request_charge": {
"charge_usd": "<string>",
"created_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"replayed_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"unknown_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {},
"output": {
"items": [
{
"asin": "<string>",
"title": "<string>",
"url": "<string>",
"brand": "<string>",
"image_url": "<string>",
"price": 123,
"price_text": "<string>",
"currency": "<string>",
"rating": 123,
"reviews": 123,
"position": 123,
"sponsored": true,
"bought_past_month_text": "<string>",
"stock_text": "<string>",
"condition_text": "<string>",
"price_basis": "displayed_listing_price",
"variants": [
{
"asin": "<string>",
"label": "<string>",
"selected": true
}
],
"attributes": [
{
"name": "<string>",
"value": "<string>"
}
]
}
],
"amazon_domain": "<string>",
"total_matches": 123,
"next_page": 123
},
"provider_response": {
"http_status": 349,
"error": null
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"action": "search",
"result_status": "success",
"error": {
"code": "<string>",
"message": "<string>"
},
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
}
}
],
"result_url": "<string>",
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
},
"review_invitation": {
"run_id": "<string>",
"ratings": [
"exceeds_expectations"
],
"instruction": "<string>"
},
"request_charge": {
"charge_usd": "<string>",
"created_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"replayed_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"unknown_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}{
"error": {
"code": "validation_failed",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "insufficient_balance",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "endpoint_not_permitted",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "idempotency_conflict",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "service_unavailable",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}Solutions
亚马逊研究
搜索商品、读取精确 ASIN、关键词量、筛选评论、历史价格与卖家报价,支持可选跨商家搜索和网页读取。
POST
/
v1
/
solutions
/
gtm
/
amazon_research
亚马逊研究
curl --request POST \
--url https://api.glasser.ai/v1/solutions/gtm/amazon_research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"country": "<string>",
"max_charge_usd": "<string>",
"review_pages": 5,
"review_rating": 3,
"verified_only": true,
"review_keyword": "<string>",
"url": "<string>",
"query": "<string>",
"keywords": [
"<string>"
],
"asin": "<string>",
"page": 10,
"limit": 50,
"offset": 5000,
"language": "<string>",
"days": 2,
"task_id": "<string>",
"metadata": {}
}
'import requests
url = "https://api.glasser.ai/v1/solutions/gtm/amazon_research"
payload = {
"country": "<string>",
"max_charge_usd": "<string>",
"review_pages": 5,
"review_rating": 3,
"verified_only": True,
"review_keyword": "<string>",
"url": "<string>",
"query": "<string>",
"keywords": ["<string>"],
"asin": "<string>",
"page": 10,
"limit": 50,
"offset": 5000,
"language": "<string>",
"days": 2,
"task_id": "<string>",
"metadata": {}
}
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
country: '<string>',
max_charge_usd: '<string>',
review_pages: 5,
review_rating: 3,
verified_only: true,
review_keyword: '<string>',
url: '<string>',
query: '<string>',
keywords: ['<string>'],
asin: '<string>',
page: 10,
limit: 50,
offset: 5000,
language: '<string>',
days: 2,
task_id: '<string>',
metadata: {}
})
};
fetch('https://api.glasser.ai/v1/solutions/gtm/amazon_research', 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.glasser.ai/v1/solutions/gtm/amazon_research",
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([
'country' => '<string>',
'max_charge_usd' => '<string>',
'review_pages' => 5,
'review_rating' => 3,
'verified_only' => true,
'review_keyword' => '<string>',
'url' => '<string>',
'query' => '<string>',
'keywords' => [
'<string>'
],
'asin' => '<string>',
'page' => 10,
'limit' => 50,
'offset' => 5000,
'language' => '<string>',
'days' => 2,
'task_id' => '<string>',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"idempotency-key: <idempotency-key>"
],
]);
$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.glasser.ai/v1/solutions/gtm/amazon_research"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"max_charge_usd\": \"<string>\",\n \"review_pages\": 5,\n \"review_rating\": 3,\n \"verified_only\": true,\n \"review_keyword\": \"<string>\",\n \"url\": \"<string>\",\n \"query\": \"<string>\",\n \"keywords\": [\n \"<string>\"\n ],\n \"asin\": \"<string>\",\n \"page\": 10,\n \"limit\": 50,\n \"offset\": 5000,\n \"language\": \"<string>\",\n \"days\": 2,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("idempotency-key", "<idempotency-key>")
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.glasser.ai/v1/solutions/gtm/amazon_research")
.header("idempotency-key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"<string>\",\n \"max_charge_usd\": \"<string>\",\n \"review_pages\": 5,\n \"review_rating\": 3,\n \"verified_only\": true,\n \"review_keyword\": \"<string>\",\n \"url\": \"<string>\",\n \"query\": \"<string>\",\n \"keywords\": [\n \"<string>\"\n ],\n \"asin\": \"<string>\",\n \"page\": 10,\n \"limit\": 50,\n \"offset\": 5000,\n \"language\": \"<string>\",\n \"days\": 2,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/v1/solutions/gtm/amazon_research")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["idempotency-key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"<string>\",\n \"max_charge_usd\": \"<string>\",\n \"review_pages\": 5,\n \"review_rating\": 3,\n \"verified_only\": true,\n \"review_keyword\": \"<string>\",\n \"url\": \"<string>\",\n \"query\": \"<string>\",\n \"keywords\": [\n \"<string>\"\n ],\n \"asin\": \"<string>\",\n \"page\": 10,\n \"limit\": 50,\n \"offset\": 5000,\n \"language\": \"<string>\",\n \"days\": 2,\n \"task_id\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {},
"output": {
"items": [
{
"asin": "<string>",
"title": "<string>",
"url": "<string>",
"brand": "<string>",
"image_url": "<string>",
"price": 123,
"price_text": "<string>",
"currency": "<string>",
"rating": 123,
"reviews": 123,
"position": 123,
"sponsored": true,
"bought_past_month_text": "<string>",
"stock_text": "<string>",
"condition_text": "<string>",
"price_basis": "displayed_listing_price",
"variants": [
{
"asin": "<string>",
"label": "<string>",
"selected": true
}
],
"attributes": [
{
"name": "<string>",
"value": "<string>"
}
]
}
],
"amazon_domain": "<string>",
"total_matches": 123,
"next_page": 123
},
"provider_response": {
"http_status": 349,
"error": null
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"action": "search",
"result_status": "success",
"error": {
"code": "<string>",
"message": "<string>"
},
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
}
}
],
"result_url": "<string>",
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
},
"review_invitation": {
"run_id": "<string>",
"ratings": [
"exceeds_expectations"
],
"instruction": "<string>"
},
"request_charge": {
"charge_usd": "<string>",
"created_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"replayed_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"unknown_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {},
"output": {
"items": [
{
"asin": "<string>",
"title": "<string>",
"url": "<string>",
"brand": "<string>",
"image_url": "<string>",
"price": 123,
"price_text": "<string>",
"currency": "<string>",
"rating": 123,
"reviews": 123,
"position": 123,
"sponsored": true,
"bought_past_month_text": "<string>",
"stock_text": "<string>",
"condition_text": "<string>",
"price_basis": "displayed_listing_price",
"variants": [
{
"asin": "<string>",
"label": "<string>",
"selected": true
}
],
"attributes": [
{
"name": "<string>",
"value": "<string>"
}
]
}
],
"amazon_domain": "<string>",
"total_matches": 123,
"next_page": 123
},
"provider_response": {
"http_status": 349,
"error": null
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"action": "search",
"result_status": "success",
"error": {
"code": "<string>",
"message": "<string>"
},
"runs": [
{
"id": "<string>",
"run_url": "<string>",
"provider": "<string>",
"endpoint": "<string>",
"endpoint_version": 123,
"status": "QUEUED",
"failure": {
"kind": "TIMED_OUT",
"message": "<string>"
},
"input": {
"omitted": true
},
"output": {
"omitted": true
},
"provider_response": {
"http_status": 349
},
"charge_usd": "<string>",
"charge_basis": {
"clause": "rule",
"quantity": 1
},
"stoppable": true,
"stop_requested_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"task_id": "<string>",
"metadata": {},
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
}
}
],
"result_url": "<string>",
"response_file": {
"body_field": "output",
"state": "available",
"download_url": "<string>",
"link_expires_at": "2023-11-07T05:31:56Z",
"file_expires_at": "2023-11-07T05:31:56Z",
"bytes": 1,
"sha256": "<string>",
"content_type": "application/json"
},
"review_invitation": {
"run_id": "<string>",
"ratings": [
"exceeds_expectations"
],
"instruction": "<string>"
},
"request_charge": {
"charge_usd": "<string>",
"created_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"replayed_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"unknown_run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}{
"error": {
"code": "validation_failed",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "insufficient_balance",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "endpoint_not_permitted",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "idempotency_conflict",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "service_unavailable",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}必须指定市场。action 为 search、product、keywords、keyword_volume、reviews、price_history、offers、merchant_search、merchant_page。先报价;超过 max_charge_usd 的请求在创建 Run 前拒绝。未知为 null。明确实际评论页及筛选条件,不能声称总体占比。保留价格序列、币种和观察时间;缓存报价不是核验后的结账价格。pending 使用原 result_url 免费重读,原始证据保留在 Run。
请求头
请求体
application/json
merchant_search:query、可选 language;merchant_page:公开 url。search:query、可选 page;product/reviews/offers:精确 asin。reviews 支持 review_pages、review_rating、review_sort、verified_only、review_keyword。keywords:query 与可选 language/limit/offset,仅 us/en。keyword_volume:keywords 与 language。max_charge_usd 在 Run 前限制最高费用。price_history:asin 与可选 days,默认 180。不支持的字段在收费前拒绝。不修改商品、不估算费用、不创建自动监控。
响应
成功
以 JSON 文件完整交付较大的 Provider 正文。Glasser 对接收的正文和序列化文件应用 32 MiB 的运行时资源保护。body_field 指明被替代的字段;output 为 null,或省略 provider_response.error。下载链接最多一小时后过期。在文件的 7 天可用期内,通过已认证的 Get Run 刷新链接。读取和下载不会再次执行 Run 或重复收费。state 为 link_pending 时,读取同一 Run 即可准备链接,不会再次执行或重复收费。链接授予临时读取权限,请仅与预期接收者分享。
Show child attributes
Show child attributes