Shops
Get shop sales history
Returns the daily readings of the sales tracker for a shop: estimated revenue and units sold, each over the 30 days before the reading. Estimates, in USD. Costs 4 credits per call.
get/v1/shops/{shopId}/sales/history
Request
- Base URL: https://api.trendtrack.io (the document declares no server; this is the origin it was published from)
- URL: https://api.trendtrack.io/v1/shops/{shopId}/sales/history
- Auth: HTTP bearer
Path parameters
shopIdstring required
Example:3f8aa146-6f96-46e8-9781-64db5166f9a8
Stable public shop identifier.
Query parameters
period'day' | 'week' | 'month'
One reading per day, week or month. Week and month keep the last daily reading of each bucket; readings are never summed, since each one already covers the 30 days before it.
daysinteger
Rolling lookback window, in days, ending at the latest reading.
Response
Example response
{
"requestId": "req_01JN3C9Q2K5X9Y6V7W8Z1A2B3C",
"data": {
"currency": "USD",
"history": [
{
"date": "2026-09-29",
"estMonthlySales": 222540,
"estMonthlySalesMin": 170450,
"estMonthlySalesMax": 274103,
"unitsSold": 1823
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.