请求网关
对外API的请求网关为:https://api.sellersprite.com/
DEMO地址
对外API的访问DEMO码云地址:https://gitee.com/cdyunya/sellersprite-api-demo
公共头说明
目前卖家精灵对外开放了选产品和查产品等20+接口,访问接口需申请访问秘钥。获取到访问秘钥之后需要将秘钥放入到 header 头中传递到后台,请求接口的参数类型和返回参数类型均为 json。请求头示例:
访问接口公共返回参数
code 码说明
选市场列表
1.请求 URL:/v1/market/research,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/research' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "size":20,\n "page":1\n}' \
--compressed
类目统计
请求 URL:/v1/market/statistics,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/statistics' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
商品集中度
请求 URL:/v1/market/goods,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/goods' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
品牌集中度
请求 URL:/v1/market/brand,请求方式 POST
请求参数
响应参数
请求示例
curl 'https://api.sellersprite.com/v1/market/brand' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
卖家集中度
请求 URL:/v1/market/seller,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/seller' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
卖家类型分布
请求 URL:/v1/market/seller/type,请求方式 POST
请求参数
响应参数
请求示例
curl 'https://api.sellersprite.com/v1/market/seller/type' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
卖家所属地分布
请求 URL:/v1/market/seller/location,请求方式 POST
请求参数
响应参数
请求示例
curl 'https://api.sellersprite.com/v1/market/seller/location' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
商品需求趋势
请求 URL:/v1/market/performance,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/performance' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
上架时间分布
请求 URL:/v1/market/shelf/time,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/shelf/time' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
上架趋势分布
请求 URL:/v1/market/shelf/trend,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/shelf/trend' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
评分数分布
请求 URL:/v1/market/ratings,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/ratings' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
评分值分布
请求 URL:/v1/market/rating,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/rating' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
价格分布
请求 URL:/v1/market/price,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/price' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
A+视频分布
请求 URL:/v1/market/ebc,请求方式 POST
请求参数
返回参数
请求示例
curl 'https://api.sellersprite.com/v1/market/ebc' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'secret-key: 你的密钥' \
--data-raw $'{\n "marketplace":"US",\n "nodeIdPath":"1064954:1069242:1069784:1069820:1069838:1069828"\n}' \
--compressed
附录
表 1.1 查询日期
表 1.2 市场
表 1.3 卖家所属地
其他国家二字码见链接: http://www.mamicode.com/info-detail-1583748.html
表 1.4 选产品和查竞品排序字段