Skip to content

Shop Rankings - Sales Volume Rankings

Introduction

Retrieve TikTok shop sales volume rankings data, with the following features:

  • Supports filtering parameters
  • Supports custom result sorting

API Endpoint

bash
    POST /shop/v1/rank/topSales

Request Body

FieldTypeRequiredDescription
filterobjectNoFilter parameters
orderbyobjectNoSorting parameters
pageintegerNoPage number, default: 1
pagesizeintegerNoItems per page, default: 10

filter Optional Values

FieldTypeRequiredDescription
regionstringNoCountry/Region, e.g., ['US', 'GB', 'MX', 'ES', 'ID', 'VN', 'MY', 'TH', 'PH']
category_idintegerNoProduct category (Level 1)
date_infoobjectNoDate info, e.g., {'type': 'day', 'value': '2025-02-01'}

orderby Optional Values

FieldRequiredDescription
units_soldNoSales volume (descending)

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

  • Type: integer
  • Description: Total number of results

data.list

FieldTypeDescription
seller_idstringShop ID
namestringShop name
avatarstringShop logo URL
categoryarray[object]Main categories
regionstringCountry/Region
units_soldintegerSales volume
gmvintegerRevenue
product_countintegerProduct count
video_countintegerAssociated video count
creator_countintegerAssociated creator count

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,
                }
            ]
        }
}