主题
根据任务 ID 获取 Amazon 卖家结果(高级)
本接口使用 GET 方法,通过任务 ID 获取指定 Amazon 商品的卖家列表及商品状态、价格、优惠券、评分和信息。
请求方法与路径:
http
GET https://api.seermartech.cn/v3/merchant/amazon/sellers/task_get/advanced/$id接口说明
本接口返回指定商品在 Amazon 卖家结果页中的卖家信息。每个卖家结果可能:
- 卖家名称及卖家页面链接
- 商品成色
- 当前价格和原价
- 折扣及适用优惠券
- 卖家评分和评价数量
- 发货方 -送日期和费用
任务提交成功后,可在 30 天通过任务 ID获取结果。
计费说明
本接口本身不重复收取结果获取费用,费用在提交任务时产生。
扣费以响应头 X-SeerMarTech-Charge-CNY 为准。
请求参数
参数通过 URL 路径传递,无请求体。
| 参数 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,使用 UUID 格式。任务提交后可在 30 天使用该 ID 获取结果。 |
认证方式
请求头中使用 Bearer Token:
http
Authorization: Bearer smt_live_YOUR_KEY
Content-Type: application/json请求示例
cURL
bash
TASK_ID="04171157-0696-0183-0000-4f63affdd40a"
curl --location --request GET \
"https://api.seermartech.cn/v3/merchant/amazon/sellers/task_get/advanced/${TASK_ID}" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json"TypeScript
typescript
import axios from "axios";
const taskId = "02231453-2604-0066-2000-64d39c6677d4";
axios
.get(
`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.response?.data || error.message);
});Python
python
import requests
task_id = "04171157-0696-0183-0000-4f63affdd40a"
url = (
"https://api.seermartech.cn/v3/merchant/amazon/sellers/"
f"task_get/advanced/{task_id}"
)
response = requests.get(
url,
headers={
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json",
},
)
if response.ok:
print(response.json())
else:
print(f"HTTP 错误:{response.status_code}")
print(response.text)响应结构
服务端返回 JSON 数据,顶层 tasks 数组。
顶层响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
version | string | 当前 API 版本。 |
status_code | integer | 响应状态码。完整状态码列表请参考错误码文档。建议客户端针对异常和错误状态进行统一处理。 |
status_message | string | 响应状态说明。 |
time | string | 请求执行耗时,例如 0.0779 sec.。 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
tasks_count | integer | tasks 数组中的任务数量。 |
tasks_error | integer | tasks 数组中返回错误的任务数量。 |
tasks | array | 任务结果数组。 |
tasks 数组字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,UUID 格式。 |
status_code | integer | 当前任务的状态码,通常位于 10000 至 60000 范围。 |
status_message | string | 当前任务的状态说明。 |
time | string | 任务执行耗时。 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
result_count | integer | result 数组中的数量。 |
path | array | 请求 URL 路径信息。 |
data | object | 创建任务时提交的参数。 |
result | array | Amazon 卖家结果数组。 |
data 字段
data 中通常创建任务时提交的参数,例如:
| 字段 | 类型 | 说明 |
|---|---|---|
se_type | string | 搜索结果类型,本接口为 sellers。 |
se | string | 搜索引擎类型,本接口为 amazon。 |
api | string | API 分类,本接口为 merchant。 |
function | string | 功能名称,本接口为 sellers。 |
language_code | string | 语言代码,例如 en_US。 |
location_code | integer | 地区代码。 |
asin | string | Amazon 标准识别号(ASIN)。 |
device | string | 设备类型,例如 desktop。 |
os | string | 操作系统,例如 windows。 |
result 字段
| 字段 | 类型 | 说明 |
|---|---|---|
asin | string | 创建任务时提交的 ASIN。 |
type | string | 搜索结果类型,固定为 sellers。 |
se_domain | string | 创建任务时提交的 Amazon 域名。 |
location_code | integer | 创建任务时提交的地区代码。 |
language_code | string | 创建任务时提交的语言代码。 |
check_url | string | Amazon 结果页的直接 URL,可用于核验结果准确性。 |
datetime | string | 获取结果的时间,UTC 格式,例如 2019-11-15 12:57:46 +00:00。 |
title | string | 与 ASIN 对应的商品标题。 |
image | string | 与 ASIN 对应的商品图片 URL。 |
item_types | array | 当前结果页的结果类型。可能 amazon_seller_main_item、amazon_seller_item。 |
items_count | integer | items 数组中的结果数量。 |
items | array | 卖家结果列表。 |
items 数组字段
items 中的类型为 amazon_seller_main_item 或 amazon_seller_item,两种相同的卖家字段。
| 字段 | 类型 | 说明 |
|---|---|---|
type | string | 结果项类型:amazon_seller_main_item 或 amazon_seller_item。 |
rank_group | integer | 在相同 type 结果项中的分组排名。不同类型不会计该排名。 |
rank_absolute | integer | 在整个 Amazon 卖家结果页中的绝对排名。 |
position | string | 素在结果页中的位置,可能为 left 或 right。 |
xpath | string | 结果在页面中的 XPath。 |
seller_name | string | 卖家名称。 |
seller_url | string | 指向 Amazon 卖家页面的 URL。 |
ships_from | string | 发货方或发货名称。 |
price | object | null | 商品价格信息。没有价格时为 null。 |
percentage_discount | float | null | 商品折扣百分比。 |
applicable_vouchers | array | null | 适用优惠券列表。 |
rating | object | null | 卖家评分信息。 |
condition | string | 商品成色,例如 New。 |
condition_description | string | null | 商品成色的详细说明。 |
delivery_info | object | null | 送信息。 |
delivery_price | object | null | 送费用。若提供,则为 null。 |
price 对象
| 字段 | 类型 | 说明 |
|---|---|---|
current | float | 折扣后的当前商品价格。 |
regular | float | null | 未折扣的商品原价。 |
max_value | float | null | 页面显示的最高价格。 |
currency | string | ISO 4217 货币代码,例如 USD。 |
is_price_range | boolean | 商品价格是否以区间形式展示。 |
displayed_price | string | Amazon 页面原样展示的价格文本。 |
applicable_vouchers 数组字段
| 字段 | 类型 | 说明 |
|---|---|---|
type | string | 优惠券结果项类型,可能为 amazon_applicable_vouchers_item。 |
text | string | 优惠券展示文本。 |
fixed_discount | float | null | 固定金额优惠。 |
fixed_discount_currency | string | null | 固定金额优惠使用的 ISO 4217 货币代码。 |
percentage_discount | float | null | 百分比优惠。若优惠为固定金额,则该字段为 null。 |
important_details | string | null | 优惠券适用条件及重要说明。 |
rating 对象
| 字段 | 类型 | 说明 |
|---|---|---|
type | string | 评分类型,固定为 rating_element。 |
rating_type | string | 评分类型,目前为 Max5。 |
value | float | 卖家评分值。 |
votes_count | integer | 评价或反馈数量。 |
rating_max | integer | 当前评分类型的最高分值。 |
delivery_info 对象
| 字段 | 类型 | 说明 |
|---|---|---|
delivery_date_from | string | 最早日期,UTC 时间格式,例如 2019-11-15 12:57:46 +00:00。 |
delivery_date_to | string | null | 最晚日期,UTC 时间格式。 |
fastest_delivery_date_from | string | 快速选项下的最早日期,UTC 时间格式。 |
fastest_delivery_date_to | string | null | 快速选项下的最晚日期,UTC 时间格式。 |
delivery_message | string | 卖家展示的说明文本。 |
delivery_price | object | null | 送费用对象。时为 null。 |
delivery_price 对象
| 字段 | 类型 | 说明 |
|---|---|---|
current | float | 当前费用。 |
regular | float | null | 未折扣的费用。 |
max_value | float | null | 页面显示的最高费用。 |
currency | string | ISO 4217 货币代码。 |
is_price_range | boolean | 送费用是否以区间形式展示。 |
displayed_price | string | Amazon 页面原样展示的费用文本。 |
响应示例
json
{
"version": "0.1.20250812",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0779 sec.",
"cost": 0,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "04171157-0696-0183-0000-4f63affdd40a",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.05 sec.",
"cost": 0,
"result_count": 1,
"path": [
"v3",
"merchant",
"amazon",
"sellers",
"task_get",
"advanced"
],
"data": {
"se_type": "sellers",
"se": "amazon",
"api": "merchant",
"function": "sellers",
"language_code": "en_US",
"location_code": 9004056,
"asin": "B07D528W98",
"device": "desktop",
"os": "windows"
},
"result": [
{
"asin": "B07D528W98",
"type": "sellers",
"se_domain": "amazon.com",
"location_code": 9004056,
"language_code": "en_US",
"check_url": "https://www.amazon.com/",
"datetime": "2025-08-28 12:00:00 +00:00",
"title": "示例商品标题",
"image": "https://images.amazon.com/example.jpg",
"item_types": [
"amazon_seller_main_item",
"amazon_seller_item"
],
"items_count": 2,
"items": [
{
"type": "amazon_seller_main_item",
"rank_group": 1,
"rank_absolute": 1,
"position": "left",
"xpath": "/html/body/div/div",
"seller_name": "MASOU",
"seller_url": "https://www.amazon.com/gp/aag/main",
"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",
"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",
"delivery_price": null
}
}
]
}
]
}
]
}状态码与异常处理
20000:请求成功。tasks_error大于0:表示一个或多个任务返回错误。tasks[].status_code:用于判断任务是否成功。tasks[].status_message:用于获取任务级别的错误或状态说明。
建议客户端同时检查以下字段:
- HTTP 状态码;
- 顶层
status_code; tasks[].status_code;tasks[].result是否存在;tasks_error是否大于0。
实用场景
- 比较同一 ASIN 的不同卖家价格,识别最低价和价格区间,为竞品定价及促销策略提供依据。
- 监控卖家评分与评价数量,筛选高信誉卖家,品牌方进行渠道和经销商管理。
- 跟踪商品成色和承诺,分析新品、二手商品及时效差异,优化购买决策和商品展示。
- 识别优惠券与折扣变化,评估竞品成交价格,支持促销监测和价格预警。
- 按地区采集费用与日期,比较不同市场的履约成本和交付速度,为区域化运营提供数据支持。