Productranglijsten – Best verkocht
Inleiding
Haal de best verkochte producten op, met deze mogelijkheden:
- Ondersteunt filterparameters
- Ondersteunt aangepaste sortering van resultaten
API-eindpunt
bash
POST /product/v1/rank/topSellingAanvraagbody
| Veld | Type | Verplicht | Beschrijving |
|---|---|---|---|
filter | object | Nee | Filterparameters |
orderby | object | Nee | Sorteerparameters |
page | integer | Nee | Paginanummer, standaard: 1 |
pagesize | integer | Nee | Items per pagina, standaard: 10 |
page*pagesize<= 500
Bereik van
pagesize[1, 100]
Optionele waarden van filter
| Veld | Type | Verplicht | Beschrijving |
|---|---|---|---|
region | string | Nee | Land/regio |
category_id | integer | Nee | Productcategorie |
date_info | object | Ja | Datumgegevens, bijv. {'type': 'day', 'value': '2026-02-01'} |
Beschikbare regio's:
['US', 'ID', 'GB', 'VN', 'TH', 'MY', 'PH', 'SG', 'ES', 'MX', 'DE', 'FR', 'PT', 'NL', 'BE', 'AT', 'PL', 'IT', 'BR', 'JP']
Optionele waarden van orderby
| Veld | Verplicht | Beschrijving |
|---|---|---|
units_sold | Nee | Verkoopvolume (aflopend) |
gmv | Nee | Omzet (aflopend) |
total_units_sold | Nee | Totaal verkoopvolume (aflopend) |
total_gmv | Nee | Totale omzet (aflopend) |
growth_rate | Nee | Groeipercentage (aflopend) |
Voorbeeld van een aanvraag
bash
curl 'https://openapi.fastmoss.com/product/v1/rank/topSelling' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxxxxxx' \
--data '{
"filter": {
"region": "US",
"category_id": 2,
"date_info": {
"type": "day",
"value": "2026-02-01"
}
# "date_info": {
# "type": "week",
# "value": "2026-18"
# },
# "date_info": {
# "type": "month",
# "value": "2026-02"
# }
},
"orderby": [
{
"field": "gmv",
"order": "desc"
}
],
"page": 1,
"pagesize": 10
}'Antwoordbody
data.total
- Type: integer
- Beschrijving: totaal aantal resultaten
data.list
| Veld | Type | Beschrijving |
|---|---|---|
product_id | string | Product-ID |
title | string | Producttitel |
region | string | Land/regio |
cover | string | Productcover-URL |
category | object | Productcategorie |
commission_rate | integer | Commissiepercentage |
real_price | string | Productprijs |
units_sold | integer | Verkoopvolume |
gmv | integer | Omzet |
total_units_sold | integer | Totaal verkoopvolume |
total_gmv | integer | Totale omzet |
growth_rate | integer | Verkoopgroeipercentage |
shop | object | Shopgegevens |
data.list.shop
| Veld | Type | Beschrijving |
|---|---|---|
seller_id | string | Shop-ID |
name | string | Shopnaam |
avatar | string | Shopcover-URL |
total_units_sold | integer | Totaal verkoopvolume van de shop |
Voorbeeld van een antwoord
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",
"real_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
}
}
]
}
}