Skip to main content
GET
/
api
/
v1
/
analytics
/
products
/
top
Top Products
curl --request GET \
  --url https://api.launchmystore.io/api/v1/analytics/products/top \
  --header 'Authorization: Bearer <token>'
{
  "status": 200,
  "state": "success",
  "message": null,
  "data": {
    "topProductsByUnitSold": [],
    "productViewCount": 0,
    "totalProductViews": 0,
    "totalProductViewcount": 0,
    "productViewAverage": 0,
    "productCountsByDay": {},
    "topRatedProductName": "",
    "categoryViewCount": 0,
    "totalcategoryview": 0,
    "categoryViewAverage": 0,
    "topRatedCategoryName": ""
  },
  "pagination": null
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Top-selling products by units sold plus aggregate product/category view metrics for the requested date range. Required scope: read_analytics

Query Parameters

range
string
default:"last_7_days"
Predefined range (same options as /summary).
start
string
Custom range start (ISO 8601).
end
string
Custom range end (ISO 8601).
limit
number
default:"10"
Page size (1–100).
page
number
default:"1"
Page number.

Response

data
object
{
  "status": 200,
  "state": "success",
  "message": null,
  "data": {
    "topProductsByUnitSold": [],
    "productViewCount": 0,
    "totalProductViews": 0,
    "totalProductViewcount": 0,
    "productViewAverage": 0,
    "productCountsByDay": {},
    "topRatedProductName": "",
    "categoryViewCount": 0,
    "totalcategoryview": 0,
    "categoryViewAverage": 0,
    "topRatedCategoryName": ""
  },
  "pagination": null
}