主题
获取 Amazon Sellers 高级结果(按任务 ID)
本接口用于根据任务 ID 获取 Amazon 商品卖家列表结果。返回的数据每个卖家的商品状态、价格、信息、评分等。
接口说明
- 请求方式:
GET - 接口地址:
https://api.seermartech.cn/v3/merchant/amazon/sellers/task_get/advanced/$id
计费说明
该类任务在创建任务时扣费,任务结果在后续 30 天可反复获取。
由于本接口为取回已完成任务结果接口,通常本次请求返回中的 cost 可能为 0。 扣费以响应头 X-SeerMarTech-Charge-CNY 为准。
路径参数
| 字段名 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,UUID 格式。在任务创建后,可在 30 天随时通过该 ID 获取结果。 |
沙箱调试
你可以通过以下沙箱地址查看该接口可返回的完整字段结构,返回为模拟数据,不会扣费:
https://api.seermartech.cn/v3/merchant/amazon/sellers/task_get/advanced/00000000-0000-0000-0000-000000000000
返回结构
接口返回 JSON 数据,顶层 tasks 数组。
顶层字段
| 字段名 | 类型 | 说明 |
|---|---|---|
version | string | 当前 API 版本。 |
status_code | integer | 通用状态码。建议接时做好异常和错误处理。 |
status_message | string | 通用状态说明。 |
time | string | 执行耗时,单位秒。 |
cost | float | 本次请求总成本,单位 USD。 |
tasks_count | integer | tasks 数组中的任务数量。 |
tasks_error | integer | tasks 数组中返回错误的任务数量。 |
tasks | array | 任务结果数组。 |
tasks[] 字段
| 字段名 | 类型 | 说明 |
|---|---|---|
id | string | 任务 ID,UUID 格式。 |
status_code | integer | 任务状态码,范围通常为 10000-60000。 |
status_message | string | 任务状态信息。 |
time | string | 任务执行耗时,单位秒。 |
cost | float | 当前任务成本,单位 USD。 |
result_count | integer | result 数组中的结果数量。 |
path | array | 请求路径。 |
data | object | 与创建任务时传参数一致的数据对象。 |
result | array | 结果数组。 |
tasks[].result[] 字段
| 字段名 | 类型 | 说明 |
|---|---|---|
asin | string | POST 创建任务时传的 asin。 |
type | string | 搜索类型,固定为 sellers_list。 |
se_domain | string | 创建任务时指定的搜索引擎域名。 |
location_code | integer | 创建任务时指定的位置编码。 |
language_code | string | 创建任务时指定的语言编码。 |
check_url | string | Amazon 结果直达链接,可用于人工校验结果。 |
datetime | string | 结果抓取时间,UTC 格式:yyyy-mm-dd hh-mm-ss +00:00。 |
title | string | 对应 asin 的商品标题。 |
image | string | 对应商品图片 URL。 |
item_types | array | 当前结果页中出现的卖家结果类型列表。 |
items_count | integer | items 数组中的结果数量。 |
items | array | 卖家列表明细。 |
item_types 可选值
amazon_seller_main_itemamazon_seller_item
items[] 字段说明
items[] 中的可能为以下两类:
amazon_seller_main_itemamazon_seller_item
两类字段结构基本一致,含义如下。
| 字段名 | 类型 | 说明 |
|---|---|---|
type | string | 素类型,可能为 amazon_seller_main_item 或 amazon_seller_item。 |
rank_group | integer | 在相同 type素组的位置。不同类型之间不用该排序。 |
rank_absolute | integer | 在整个卖家结果页中的绝对位置。 |
position | string | 素在页面中的位置,可选值:left、right。 |
xpath | string | 当前在页面中的 XPath。 |
seller_name | string | 卖家名称。 |
seller_url | string | 跳转到 Amazon 卖家页的链接。 |
ships_from | string | 发货方名称。 |
price | object | 商品价格信息;若无则为 null。 |
rating | object | 卖家评分信息。 |
condition | string | 商品状态,如 New。 |
condition_description | string | 商品状态补说明。 |
delivery_info | object | 送信息。 |
price 字段
| 字段名 | 类型 | 说明 |
|---|---|---|
current | float | 当前成交价/折后价。 |
regular | float | 原价/未折扣价格。 |
max_value | float | 展示价格中的最大值。 |
currency | string | 货币代码,ISO 4217 格式,如 USD。 |
is_price_range | boolean | 是否以价格区间形式展示。 |
displayed_price | string | 页面展示的原始价格文本。 |
percentage_discount | float | 百分比折扣值。 |
applicable_vouchers | array | 可用优惠券信息数组。 |
applicable_vouchers[] 字段
| 字段名 | 类型 | 说明 |
|---|---|---|
type | string | 素类型,固定为 amazon_applicable_vouchers_item。 |
text | string | 优惠券文案。 |
fixed_discount | float | 固定金额优惠值。 |
fixed_discount_currency | string | 固定优惠金额对应币种。 |
percentage_discount | float | 百分比优惠值;若为固定金额优惠则可能为 null。 |
important_details | string | 优惠券适用条件等重要说明。 |
rating 字段
| 字段名 | 类型 | 说明 |
|---|---|---|
type | string | 素类型,固定为 rating_element。 |
rating_type | string | 评分类型,目前可见值如 Max5。 |
value | string | 当前评分值。 |
votes_count | integer | 评价/反馈数量。 |
rating_max | integer | 当前评分体系下的满分值。 |
delivery_info 字段
| 字段名 | 类型 | 说明 |
|---|---|---|
delivery_date_from | string | 最早送达日期。 |
delivery_date_to | string | 最晚送达日期。 |
fastest_delivery_date_from | string | 最快方式下的最早送达日期。 |
fastest_delivery_date_to | string | 最快方式下的最晚送达日期。 |
delivery_message | string | 页面展示的说明文本。 |
delivery_price | object | 送费用;若支持运费则通常为 null。 |
delivery_price 字段
| 字段名 | 类型 | 说明 |
|---|---|---|
current | float | 当前价格。 |
regular | float | 原始价格。 |
max_value | float | 最高价格。 |
currency | string | 货币代码,ISO 4217 格式。 |
is_price_range | boolean | 是否为价格区间。 |
displayed_price | string | 页面展示的价格文本。 |
请求示例
cURL
bash
id="04171157-0696-0183-0000-4f63affdd40a"
curl --location --request GET "https://api.seermartech.cn/v3/merchant/amazon/sellers/task_get/advanced/${id}" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json" \
--data-raw ""Python
python
import requests
task_id = "04171157-0696-0183-0000-4f63affdd40a"
url = f"https://api.seermartech.cn/v3/merchant/amazon/sellers/task_get/advanced/{task_id}"
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json)TypeScript
typescript
import axios from "axios";
const taskId = "02231453-2604-0066-2000-64d39c6677d4";
axios({
method: "get",
url: `https://api.seermartech.cn/v3/merchant/amazon/sellers/task_get/advanced/${taskId}`,
headers: {
Authorization: "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
}
})
.then((response) => {
// 返回结果
console.log(response.data);
})
.catch((error) => {
console.error(error);
});获取已完成任务后再获取结果
通常建议调用已完成任务列表接口,再根据返回的任务 ID 或结果地址拉取:
GET /v3/merchant/amazon/sellers/tasks_readyGET /v3/merchant/amazon/sellers/task_get/advanced/$id
Python 示例:取 ready 任务,再取结果
python
import requests
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
}
# 1. 获取已完成任务
ready_resp = requests.get(
"https://api.seermartech.cn/v3/merchant/amazon/sellers/tasks_ready",
headers=headers
)
ready_data = ready_resp.json
results = []
if ready_data.get("status_code") == 20000:
for task in ready_data.get("tasks", []):
for item in task.get("result", []) if task.get("result") else []:
endpoint = item.get("endpoint_advanced")
task_id = item.get("id")
# 2. 方式一:直接请求返回的 endpoint_advanced
if endpoint:
detail_resp = requests.get(
f"https://api.seermartech.cn{endpoint}" if endpoint.startswith("/v3/") else endpoint,
headers=headers
)
results.append(detail_resp.json)
# 3. 方式二:按任务 ID 拼接查询地址
# if task_id:
# detail_resp = requests.get(
# f"https://api.seermartech.cn/v3/merchant/amazon/sellers/task_get/advanced/{task_id}",
# headers=headers
# )
# results.append(detail_resp.json)
print(results)响应示例
json
{
"version": "0.1.20250812",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0779 sec.",
"cost": 0,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"data": {
"se_type": "sellers",
"se": "amazon",
"api": "merchant",
"function": "sellers",
"language_code": "en_US",
"location_code": 9004056,
"asin": "B07D528W98",
"device": "desktop",
"os": "windows"
},
"result": [
{
"items_count": 2,
"items": [
{
"seller_name": "MASOU",
"seller_url": "http://amazon.com/gp/aag/main?ie=UTF8&seller=A2XS9KO5PUQHMV&isAmazonFulfilled=1&asin=B07D528W98&ref_=olp_merch_name_1",
"ships_from": "Amazon.com",
"price": {
"current": 399.99,
"regular": null,
"max_value": null,
"currency": "USD",
"is_price_range": false,
"displayed_price": "$399.99"
},
"percentage_discount": null,
"applicable_vouchers": null,
"rating": {
"type": "rating_element",
"position": "left",
"rating_type": "Max5",
"value": 5,
"votes_count": 3619,
"rating_max": 5
},
"condition": "New",
"condition_description": null,
"delivery_info": {
"delivery_date_from": "2025-09-01T00:00:00+00:00",
"delivery_date_to": null,
"fastest_delivery_date_from": "2025-08-29T00:00:00+00:00",
"fastest_delivery_date_to": null,
"delivery_message": "FREE delivery Monday, September 1 Or Prime members get FREE delivery Friday, August 29. Order within 14 hrs 51 mins. Join Prime",
"delivery_price": null
}
}
]
}
]
}
]
}状态码与错误处理
- 顶层
status_code表示本次 API 请求总体状态。 tasks[].status_code表示任务状态。- 建议同时校验:
- HTTP 状态码
- 顶层
status_code tasks[].status_coderesult是否为空
当 tasks[].status_code 大于等于 40000,或 result 为空时,通常应按失败任务处理并记录错误信息。
使用说明
- 通过对应的 POST 接口提交 Amazon sellers 采集任务。
- 通过
GET /v3/merchant/amazon/sellers/tasks_ready查询已完成任务。 - 使用本接口按任务 ID 获取高级结果。
- 在任务创建后的 30 天,可重复获取结果且通常不会重复扣费。
实用场景
- 监控卖家竞争格局:按 ASIN 拉取当前卖家列表,识别主卖家、跟卖商家和发货方变化,帮助运营及时发现竞争加剧或 Buy Box 外围卖家增加。
- 分析价格与优惠策略:提取卖家价格、折扣、优惠券信息,评估不同卖家的定价方式,为调价、促销和利润控制提供依据。
- 评估时效表现:抓取最早送达时间、最快时间和运费信息,对比不同卖家的履约能力,优化仓与区域供给策略。
- 筛选高质量卖家样本:结合评分、评价数、商品成色和承诺,建立卖家质量画像,用于招商、渠道监控或竞品研究。
- 校验商品页销售环境:通过
check_url和卖家明细回溯指定 ASIN 的销售页面状态,便于质检、异常排查和数据复核。