Skip to main content
GET
/
reports
/
top-products
Get top products report
curl --request GET \
  --url https://api.sprucecollective.co.uk/reports/top-products \
  --header 'Authorization: <api-key>'
{}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Query Parameters

limit
integer

Number of products to return (default: 5, max: 50)

days
integer

Number of days to analyze (default: 30)

start
string

Start date (YYYY-MM-DD)

end
string

End date (YYYY-MM-DD)

site_id
string

Site ID for multi-tenant filtering

Response

200 - application/json

OK

The response is of type object.