Skip to content

Amazon 产品排名概览(实时) ​

POST /v3/dataforseo_labs/amazon/product_rank_overview/live

本接口使用 POST 方法,路径为:

/v3/dataforseo_labs/amazon/product_rank_overview/live

用于查询指定 Amazon 产品在自然搜索结果和付费搜索结果中的排名概览。接口返回请求中 asins 指定产品的排名数据。

数据每周更新一次,最新更新时间可通过 /v3/dataforseo_labs/status/ 查询。

计费说明 ​

每次请求都会产生计费。扣费以响应头 X-SeerMarTech-Charge-CNY 为准。

请求说明 ​

  • 请求体使用 UTF-8 编码的 JSON 格式。
  • 请求体是 JSON 数组:[{ ... }]。
  • 每个实时接口请求最多 1 个任务。 平台限流以认证说明中的 30/60/120 次/分钟规则为准。
  • 同时提交的请求数量最多为 30 个。
  • 单个任务最多可指定 1000 个 ASIN。

请求参数 ​

参数类型填说明
asinsarray是需要查询排名数据的 Amazon 产品 ASIN 列表。最多支持 1000 个 ASIN。ASIN 可通过 /v3/merchant/amazon/products/task_post/ 获取。ASIN 中的字母使用大写,例如 B01LW2SL7R。
location_namestring条件填地理位置完整名称。当未指定 location_code 时填。可通过 /v3/dataforseo_labs/locations_and_languages 获取可用位置列表。当前支持美国、埃及、沙特阿拉伯和阿联。示例:United States。
location_codeinteger条件填地理位置代码。当未指定 location_name 时填。可通过 /v3/dataforseo_labs/locations_and_languages 获取可用位置代码。当前支持美国、埃及、沙特阿拉伯和阿联。示例:2840。
language_namestring条件填语言完整名称。当未指定 language_code 时填。可通过 /v3/dataforseo_labs/locations_and_languages 获取可用语言列表。示例:English。
language_codestring条件填语言代码。当未指定 language_name 时填。可通过 /v3/dataforseo_labs/locations_and_languages 获取可用语言代码。示例:en。
tagstring否用户自定义任务标识,最长 255 个字符。可用于识别任务并将请求与结果。提交的值会原样返回在响应的 data 对象中。

location_name 与 location_code 二选一;language_name 与 language_code 二选一。

请求示例 ​

cURL ​

bash
curl --location --request POST \
  "https://api.seermartech.cn/v3/dataforseo_labs/amazon/product_rank_overview/live" \
  --header "Authorization: Bearer smt_live_YOUR_KEY" \
  --header "Content-Type: application/json" \
  --data-raw '[
    {
      "asins": [
        "B001TJ3HUG",
        "B01LW2SL7R"
      ],
      "location_code": 2840,
      "language_name": "English"
    }
  ]'

PHP ​

php
<?php

$postData = [
    [
        "asins" => [
            "B001TJ3HUG",
            "B01LW2SL7R"
        ],
        "location_name" => "United States",
        "language_name" => "English"
    ]
];

$ch = curl_init("https://api.seermartech.cn/v3/dataforseo_labs/amazon/product_rank_overview/live");

curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer smt_live_YOUR_KEY",
        "Content-Type: application/json"
    ],
    CURLOPT_POSTFIELDS => json_encode($postData, JSON_UNESCAPED_UNICODE)
]);

$response = curl_exec($ch);
curl_close($ch);

$result = json_decode($response, true);
print_r($result);

TypeScript ​

typescript
import axios from "axios";

const postData = [
  {
    asins: ["B001TJ3HUG", "B01LW2SL7R"],
    location_code: 2840,
    language_name: "English"
  }
];

axios.post(
  "https://api.seermartech.cn/v3/dataforseo_labs/amazon/product_rank_overview/live",
  postData,
  {
    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

url = "https://api.seermartech.cn/v3/dataforseo_labs/amazon/product_rank_overview/live"

post_data = [
    {
        "asins": ["B001TJ3HUG", "B01LW2SL7R"],
        "location_name": "United States",
        "language_name": "English"
    }
]

headers = {
    "Authorization": "Bearer smt_live_YOUR_KEY",
    "Content-Type": "application/json"
}

response = requests.post(url, json=post_data, headers=headers)
result = response.json()

if result.get("status_code") == 20000:
    print(result)
else:
    print(
        "请求失败。错误码:%s,错误信息:%s"
        % (result.get("status_code"), result.get("status_message"))
    )

C# ​

csharp
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace SeerMarTechDemos
{
    public static class Demos
    {
        public static async Task ProductRankOverviewLive()
        {
            using var httpClient = new HttpClient();

            httpClient.DefaultRequestHeaders.Authorization =
                new AuthenticationHeaderValue("Bearer", "smt_live_YOUR_KEY");

            var postData = new List<object>
            {
                new
                {
                    asins = new[]
                    {
                        "B001TJ3HUG",
                        "B01LW2SL7R"
                    },
                    location_name = "United States",
                    language_name = "English"
                }
            };

            var content = new StringContent(
                JsonConvert.SerializeObject(postData),
                Encoding.UTF8,
                "application/json"
            );

            var response = await httpClient.PostAsync(
                "https://api.seermartech.cn/v3/dataforseo_labs/amazon/product_rank_overview/live",
                content
            );

            var resultText = await response.Content.ReadAsStringAsync();
            Console.WriteLine(resultText);
        }
    }
}

响应结构 ​

接口返回 JSON 数据,顶层 tasks 数组。响应码的完整列表请参考错误码文档。

顶层响应字段 ​

字段类型说明
versionstring当前 API 版本。
status_codeinteger请求级通用状态码。
status_messagestring请求级提示信息。
timestring请求执行耗时,单位为秒。
costfloat平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。
tasks_countintegertasks 数组中的任务总数。
tasks_errorintegertasks 数组中返回错误的任务数量。
tasksarray任务结果数组。

tasks 任务字段 ​

字段类型说明
idstring任务唯一标识,UUID 格式。
status_codeinteger任务状态码,通常在 10000 至 60000 范围。
status_messagestring任务状态说明。
timestring任务执行耗时,单位为秒。
costfloat平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。
result_countintegerresult 数组中的数量。
patharray请求 URL 路径。
dataobject请求中提交的任务参数。
resultarray任务结果数组。

result 字段 ​

字段类型说明
se_typestring搜索引擎类型。此接口返回 amazon。
location_codeinteger请求中使用的地理位置代码。无数据时为 null。
language_codestring请求中使用的语言代码。无数据时为 null。
total_countinteger数据库中与当前请求的结果总数。
items_countintegeritems 数组中返回的结果数量。
itemsarray检测到的 Amazon 产品及排名数据。

items 产品字段 ​

字段类型说明
se_typestring搜索引擎类型。
asinstring产品 ASIN,Amazon 产品的唯一标识。
metricsobject产品的平均排名指标。
amazon_serpobjectAmazon 自然搜索结果中的排名数据。
amazon_paidobjectAmazon 付费搜索结果中的排名数据。

amazon_serp 自然排名字段 ​

字段类型说明
pos_1integer产品排名第 1 的自然搜索结果数量。
pos_2_3integer产品排名第 2 至第 3 的自然搜索结果数量。
pos_4_10integer产品排名第 4 至第 10 的自然搜索结果数量。
pos_11_100integer产品排名第 11 至第 100 的自然搜索结果数量。
countinteger含该产品的 Amazon 自然搜索结果总数。
search_volumeinteger该产品在自然搜索结果中获得排名的总搜索量。

amazon_paid 付费排名字段 ​

字段类型说明
pos_1integer产品排名第 1 的付费搜索结果数量。
pos_2_3integer产品排名第 2 至第 3 的付费搜索结果数量。
pos_4_10integer产品排名第 4 至第 10 的付费搜索结果数量。
pos_11_100integer产品排名第 11 至第 100 的付费搜索结果数量。
countinteger含该产品的 Amazon 付费搜索结果总数。
search_volumeinteger该产品在付费搜索结果中获得排名的总搜索量。

响应示例 ​

json
{
  "version": "0.1.20220216",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "0.1460 sec.",
  "cost": 0.0102,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "01234567-89ab-cdef-0123-456789abcdef",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.1200 sec.",
      "cost": 0.0102,
      "result_count": 1,
      "path": [
        "v3",
        "dataforseo_labs",
        "amazon",
        "product_rank_overview",
        "live"
      ],
      "data": {
        "api": "dataforseo_labs",
        "function": "product_rank_overview",
        "se_type": "amazon",
        "language_name": "English",
        "location_code": 2840,
        "asins": [
          "B001TJ3HUG",
          "B01LW2SL7R"
        ]
      },
      "result": [
        {
          "se_type": "amazon",
          "location_code": 2840,
          "language_code": "en",
          "total_count": 2,
          "items_count": 2,
          "items": [
            {
              "se_type": "amazon",
              "asin": "B001TJ3HUG",
              "metrics": {},
              "amazon_serp": {
                "pos_1": 12,
                "pos_2_3": 25,
                "pos_4_10": 48,
                "pos_11_100": 73,
                "count": 158,
                "search_volume": 125430
              },
              "amazon_paid": {
                "pos_1": 5,
                "pos_2_3": 11,
                "pos_4_10": 19,
                "pos_11_100": 27,
                "count": 62,
                "search_volume": 48300
              }
            }
          ]
        }
      ]
    }
  ]
}

状态码与错误处理 ​

  • status_code 为 20000 表示请求或任务处理成功。
  • 应根据 status_code 和 status_message 判断请求是否成功。
  • 即使顶层请求成功,也应检查 tasks_error 以及每个任务的 status_code。
  • 建议在业务系统中实现时、网络异常、参数错误和任务级错误的处理机制。

实用场景 ​

  • 比较多个 Amazon 产品的自然排名覆盖,识别排名数量和排名区间差异,竞品定位与产品优化。
  • 评估产品在付费搜索结果中的表现,结合各排名区间和搜索量,优化 Amazon 广告投放策略。
  • 筛选自然排名潜力产品,根据 amazon_serp 的排名分布和搜索量,确定重点优化的 ASIN。
  • 对比自然流量与付费流量贡献,分别分析 amazon_serp 和 amazon_paid 数据,为预算分和增长预测提供依据。
  • 按国家和语言监测产品排名,针对美国、埃及、沙特阿拉伯和阿联等市场建立区域化 Amazon SEO 监控报表。

统一入口:官网 · LLM API · 控制台