Skip to content

Product Rankings - Sales Volume Rankings

Introduction

Retrieve product sales volume rankings data, with the following features:

  • Supports filtering parameters
  • Supports custom result sorting

API Endpoint

bash
    POST /product/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
date_infoobjectNoDate info, e.g., {'type': 'day', 'value': '2025-02-01'}

orderby Optional Values

FieldRequiredDescription
units_soldNoSales volume (descending)
gmvNoRevenue (descending)
total_units_soldNoTotal sales volume (descending)
total_gmvNoTotal revenue (descending)
growth_rateNoGrowth rate (descending)

Request Example

bash
curl 'https://openapi.test.fastmoss.com/product/v1/rank/topSales?client_id=XXX&timestamp=XXX&access_token=XXX&sign=XXX' \
--header 'Content-Type: application/json' \
{
    "filter": {
        "region": "US",
        "product_category": 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": "gmv",
        "order": "desc",
      }
    ],
    "page": 1,
    "pagesize": 10
}

Response Body

data.total

  • Type: integer
  • Description: Total number of results

data.list

FieldTypeDescription
product_idstringProduct ID
titlestringProduct title
regionstringCountry/Region
coverstringProduct cover URL
categoryobjectProduct category
commission_rateintegerCommission rate
pricestringProduct price
units_soldintegerSales volume
gmvintegerRevenue
total_units_soldintegerTotal sales volume
total_gmvintegerTotal revenue
growth_rateintegerSales growth rate
shopobjectShop information

data.list.shop

FieldTypeDescription
seller_idstringShop ID
namestringShop name
avatarstringShop cover URL
total_units_soldintegerShop total sales volume

Response Example

json
{
  "code": 0,
  "msg": "success",
  "data": {
    "total": 500,
    "list": [
      {
        "product_id": "1729537665891078575",
        "title": "33.81oz Glass Water Cup, Large Glass Cup with Lid & Straw, Drinking Cup for Home Office Use, Drinkware Gift Ideas, Kitchen Accessories",
        "cover": "https://s.500fd.com/tt_product/16e26aec1fb94e3784665b5b2ecfe0e0~tplv-dx0w9n1ysr-resize-jpeg:800:800.jpeg",
        "price": "$10.94",
        "region": "US",
        "commission_rate": 1234,
        "category": {
          "l1":{"id":123,"name":"test"}, 
          },

          "units_sold":123,
          "gmv":123,
          "total_units_sold":123,
          "total_gmv":123,
          "growth_rate":123,

          "shop":{
            "seller_id":123,
            "name":"test",
            "avatar":"xxx",  
            "total_units_sold":123,
          }
      }
    ]
  }
}