Market NinjaMarket Ninja
使用场景

品牌

列出品牌,并通过 brand 筛选参数获取某个品牌的完整商品目录。

查找品牌

GET /brands 返回去重后的品牌名称列表,并附带每个品牌对应的商品数量。与 GET /categories 不同,marketplace 是可选的——品牌名称在不同市场平台之间不会改变,因此跨平台的全量列表同样有意义。

GET /brandsGET /categories 不计入每日数据配额——只受每分钟请求频率限制约束。它们是用于导航的查询类接口,不属于数据导出,因此可以放心调用,无需担心配额消耗。
curl -G -H "Authorization: Bearer mn_live_..." \
  "https://data.marketninja.ru/v1/brands"
{
  "data": [
    { "brand": "Nike", "product_count": 892 },
    { "brand": "Adidas", "product_count": 654 }
  ]
}

如需限定在某一个市场平台内,添加 marketplace

curl -G -H "Authorization: Bearer mn_live_..." \
  "https://data.marketninja.ru/v1/brands" \
  --data-urlencode "marketplace=wildberries"

获取品牌的完整商品目录

知道确切的品牌名称后,将其作为 GET /productsbrand 筛选参数,即可获取该品牌当前的 全部商品。匹配方式是精确匹配、不区分大小写——与 q 不同,这不是子字符串搜索。

curl -G -H "Authorization: Bearer mn_live_..." \
  "https://data.marketninja.ru/v1/products" \
  --data-urlencode "brand=Nike" \
  --data-urlencode "page_size=100"

如需限定在某一个市场平台内,添加 marketplace

curl -G -H "Authorization: Bearer mn_live_..." \
  "https://data.marketninja.ru/v1/products" \
  --data-urlencode "brand=Nike" \
  --data-urlencode "marketplace=wildberries" \
  --data-urlencode "page_size=100"
brand 是一个独立参数,与 seller_code(参阅查找商品)不同:seller_code 用于查找您某个具体货号在所有转售渠道中的记录,而 brand 则查找数据集中您品牌的全部商品,与货号无关。

Last updated on

On this page