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
/projects/{project_id}/analytics/aggregate
AuthorizationBearer <token>

Organization API Token (prefixed sk_) sent as Authorization: Bearer sk_.... Create one in Settings and grant it scopes. Server-side only.

In: header

Path Parameters

project_idstring

The project this request addresses. It must belong to the token's organization, or be the project of a project-scoped credential.

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/v1/projects/string/analytics/aggregate" \  -H "Content-Type: application/json" \  -d '{    "start_date": "string"  }'
Empty
Empty
Empty