1. 类目销售走势
xiyou-openapi
  • 西柚洞察OPENAPI-V2接入指引
  • 西柚洞察OPENAPI接入指引(已归档)
  • Release Notes
  • 西柚洞察OPENAPI-V1接入指引(该接入已归档)
  • asins
    • asin流量得分
      POST
    • asin基础信息变动趋势(天)
      POST
    • asin流量得分趋势(天)
      POST
    • asin流量得分趋势(周)
      POST
    • asin流量得分趋势(月)
      POST
    • asin广告信息变动趋势(天)
      POST
    • asin BSR排名趋势(天)
      POST
    • asin订单量趋势(月)
      POST
    • asin商品信息趋势图(天)
      POST
    • asin反查关键词列表(最近天)
      POST
    • asin反查关键词列表(月)
      POST
    • asin商品信息
      POST
    • asin近30天订单量
      POST
    • 获取asin变体接口
      POST
  • asinSearchTerms
    • asin词流量趋势(天)
      POST
    • asin词排名趋势(天)
      POST
    • asin词排名趋势(小时)
      POST
  • searchTerms
    • 关键词ABA数据趋势(周)
      POST
    • 关键词信息(最近一周)
      POST
    • 关键词分析列表(最近天)
      POST
    • 关键词分析列表(月)
      POST
  • client
    • 获取client Id的余额
      POST
  • 市场洞察
    • 资源生成
      • 生成类目洞察资源
        POST
      • 查询市场资源状态
        POST
    • 市场榜单
      • 获取类目月度销量榜
        POST
      • 获取类目年度销量榜
        POST
      • 获取类目月度新秀榜
        POST
      • 获取类目年度新秀榜
        POST
      • 获取类目月度飙升榜
        POST
      • 获取类目年度飙升榜
        POST
    • 关键词洞察
      • 获取类目关键词分析
        POST
      • 获取类目关键词搜索量趋势
        POST
      • 获取类目关键词列表
        POST
    • 类目销售走势
      • 获取类目市场规模趋势
        POST
      • 获取类目季节性分析
        POST
    • 新品机会分析
      • 类目新老品销量及数量趋势
        POST
    • 价格段机会分析
      • 获取各价格段市场销量趋势
        POST
    • 竞争格局总览
      • 获取价格段 ASIN 列表
        POST
      • 获取类目各品牌市场规模
        POST
      • 批量获取品牌销量趋势
        POST
      • 获取价格段父 ASIN 列表
        POST
    • 评分分析
      • 获取类目评分分布
        POST
      • 获取类目评分数分布
        POST
    • 基于关键词和 ASIN 搜索类目
      POST
  • foundation
    • 获取市场洞察的可用日期
      GET
  1. 类目销售走势

获取类目市场规模趋势

POST
/v1/marketInsights/sales/trends/category
计费规则
本接口按查询时间范围计费。每处理 6 个月(向上取整)计为 5 Credits 消耗
○ 公式:Credit 消耗 = ⌈月数 ÷ 6⌉ × 5
○ 示例:请求包含 1 个类目,查询 24 个月的数据,将消耗 ⌈24 ÷ 6⌉ × 5 = 20 Credits
用于查询指定类目的月度市场规模趋势,包括销量与销售额。
使用说明:
○ resourceId、country、categoryId 与 startMonth 为必填参数;endMonth 为可选参数。
○ startMonth、endMonth 使用 YYYY-MM 格式;endMonth 不传或为空时默认查询至最新可用月份的数据。
○ 本接口仅提供月度趋势数据,不支持也不返回近 30 天数据。
可用日期: 调用 GET /v1/foundation/marketInsights/availableDates?country={country},传入与当前请求相同的国家;从 MarketInsightsAsinInfo 的 monthly 记录获取可查询月份范围,endMonth 为空时查询至最新可用月份。

请求参数

Header 参数

Body 参数application/json必填

示例
{
  "resourceId": "3cdd069d0jj1f754",
  "country": "US",
  "categoryId": "us_202605_87_akde91",
  "startMonth": "2025-07",
  "endMonth": "2025-07"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://openapi.xydc.com/v1/marketInsights/sales/trends/category' \
--header 'X-Auth-Version: 2.0' \
--header 'X-Api-Key: your_api_key' \
--header 'Content-Type: application/json' \
--data '{
  "resourceId": "3cdd069d0jj1f754",
  "country": "US",
  "categoryId": "us_202605_87_akde91",
  "startMonth": "2025-07",
  "endMonth": "2025-07"
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "trends": [
        {
            "date": "2025-06",
            "sales": {
                "value": 12800,
                "mom": {
                    "previous": 0,
                    "amount": 0,
                    "rate": "string"
                },
                "yoy": {
                    "previous": 0,
                    "amount": 0,
                    "rate": "string"
                }
            },
            "salesRevenue": {
                "value": "string",
                "mom": {
                    "previous": "string",
                    "amount": "string",
                    "rate": "string"
                },
                "yoy": {
                    "previous": "string",
                    "amount": "string",
                    "rate": "string"
                }
            }
        }
    ]
}
修改于 2026-07-28 09:28:58
上一页
类目销售走势
下一页
获取类目季节性分析
Built with