Skip to content

小店榜单-销量榜

简介

获取 TikTok 小店销量榜单数据,支持以下功能:

  • 支持设置过滤参数
  • 支持自定义结果排序方式

接口

bash
    POST /shop/v1/rank/topSales

request body

字段类型必选描述
filterobject过滤参数
orderbyobject排序参数
pageinteger页码,默认值:1
pagesizeinteger每页条数,默认值:10

filter可选值

字段类型必选描述
regionstring国家/地区 ['US','GB','MX','ES','ID','VN','MY','TH','PH']
category_idinteger商品分类(一级)
date_infoobject日期信息:{"type":"day","value":"2025-02-01"}

orderby可选值

字段必选描述
units_sold销量(desc)

request example

bash
curl 'https://openapi.test.fastmoss.com/shop/v1/rank/topSales?client_id=XXX&timestamp=XXX&access_token=XXX&sign=XXX' \
--header 'Content-Type: application/json' \
{
    "filter": {
        "region": "US",
        "category_id": 1,
        "date_info": {
            "type": "day",
            "value": "2023-02-01"
        },
        # "date_info": {
        #     "type": "week",
        #     "value": "2023-18"
        # },
        # "date_info": {
        #     "type": "month",
        #     "value": "2023-02"
        # }
    },
    "orderby": [
      {
        "field": "units_sold",
        "order": "desc",
      }],
    "page": 1,
    "pagesize": 10
}

response body

data.total

结果总条数

data.list

字段类型描述
seller_idstring店铺 ID
namestring店铺名称
avatarstring店铺 Logo URL
categoryarray[object]主营分类
regionstring国家/地区
units_soldinteger销量
gmvinteger销售额
product_countinteger商品数
video_countinteger关联视频数
creator_countinteger关联达人数

response example

json
{
    "code":0,
    "msg":"success", 
    "data":{
        "total":500,
        "list":[
                {
                    "rank":1,
                    "seller_id":"123",
                    "name":"helo",
                    "avatar":"xxx",
                    "category":[{"id":1,"name":"test"}],
                    "region":"US",
                    "units_sold":123,
                    "gmv":100,
                    "product_count":12,
                    "video_count":12,
                    "creator_count":10,
                }
            ]
        }
}