API ReferenceAnalytics

Aggregate events by property

Group events by a built-in field (e.g. browser, location_country) or a custom metadata_field. start_date is required.

POST
/analytics/aggregate
x-logspot-sk<token>

Project secret key (prefixed sk_). Server-side only — never expose it client-side.

In: header

event_name?string|null
metadata_field?string|null
field?string|null
Value in"location_country" | "location_city" | "location_region" | "device" | "os" | "browser" | "screen" | "language" | "referrer" | "url" | "entry_url" | "hostname" | "user_id" | "acquisition_channel"
start_datestring
end_date?string|null
filter_groups?|null

Response Body

curl -X POST "https://api.logspot.io/analytics/aggregate" \  -H "Content-Type: application/json" \  -d '{    "start_date": "string"  }'
Empty
Empty
Empty