Events & Metrics
Count Events
Request
POST https://api.logspot.io/analytics/count-events
Params:
event_name
- allows you to search for events with provided nameuser_id
- allows you to search for events from specific userstart_date
- allows you to search for events with start time greater or equalstart_date
(inclusive - start of the day 00:00)end_date
- allows you to search for events with end time lower or equalend_date
(inclusive - end of the day 23:59)filter_groups
- event filtering conditions
Request body:
Response
Count Events Per Day
Request
POST https://api.logspot.io/analytics/count-events-per-day
Params:
event_name
- allows you to search for events with provided nameuser_id
- allows you to search for events from specific userstart_date
- allows you to search for events with start time greater or equalstart_date
(inclusive - start of the day 00:00)end_date
- allows you to search for events with end time lower or equalend_date
(inclusive - end of the day 23:59)filter_groups
- event filtering conditions
Request body:
Response
Count Unique Users
Request
POST https://api.logspot.io/analytics/count-unique-users
Params:
event_name
- allows you to search for events with provided namestart_date
- allows you to search for events with start time greater or equalstart_date
(inclusive - start of the day 00:00)end_date
- allows you to search for events with end time lower or equalend_date
(inclusive - end of the day 23:59)filter_groups
- event filtering conditions
Request body:
Response
Count Unique Users per Day
Request
POST https://api.logspot.io/analytics/count-unique-users-per-day
Params:
event_name
- allows you to search for events with provided namestart_date
- allows you to search for events with start time greater or equalstart_date
(inclusive - start of the day 00:00)end_date
- allows you to search for events with end time lower or equalend_date
(inclusive - end of the day 23:59)filter_groups
- event filtering conditions
Request body:
Response
Aggregate
Request
POST https://api.logspot.io/analytics/aggregate
Params:
event_name
- allows you to search for events with provided namemetadata_field
- aggregate and count events by metadata fieldfield
- aggregate and count events by Logspot fields. List of available fields:
start_date
- allows you to search for events with start time greater or equalstart_date
(inclusive - start of the day 00:00)end_date
- allows you to search for events with end time lower or equalend_date
(inclusive - end of the day 23:59)filter_groups
- event filtering conditions
Request body: