Endpoint
Parameters
Path Parameters
| Parameter | Type | Description |
|---|---|---|
tenantId | string | Your tenant identifier (use the alias shown on your dashboard) |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
event | string | No | Filter by specific event name |
after | string | No | Start date (YYYY-MM-DD format) |
before | string | No | End date (YYYY-MM-DD format) |
filterSet | array | No | Array of filter objects |
pagination | object | No | Pagination settings |
Filter Object
| Field | Type | Required | Description |
|---|---|---|---|
property | string | Yes | Property path to filter on |
comparison | string | Yes | Comparison operator |
value | any | Yes | Value to compare against |
Pagination Object
| Field | Type | Required | Description |
|---|---|---|---|
offset | number | No | Number of records to skip (default: 0) |
size | number | No | Maximum records to return (default: 100, max: 1000) |
Response
Returns an array of event objects:Event Object Fields
| Field | Type | Description |
|---|---|---|
eventName | string | The type of event |
userId | string | User who performed the action |
eventTs | string | ISO 8601 timestamp |
properties | object | Custom event properties |
eventDate | string | Date portion (YYYY-MM-DD) |
insertId | string | Unique event identifier |
Examples
Basic Query
Get recent page view events:Filtered Query
Get high-value purchases:Complex Filters
Get events from specific users on mobile devices:Date Range Query
Get all events from last week:Code Examples
JavaScript/TypeScript
Python
Node.js
Pagination
For large datasets, use pagination to fetch data in chunks:Property Paths
You can filter on various event properties:Event Properties
Access custom properties you included when tracking events:Event Metadata
Filter on built-in event fields:Nested Properties
Access nested object properties:Performance Tips
1. Use Date Ranges
Always include date ranges to limit the data scanned:2. Limit Result Size
Use pagination to avoid fetching too much data at once:3. Use Specific Filters
Be specific with your filters to reduce the dataset:4. Consider Using Count Endpoint
For aggregations, use the count endpoint instead:Error Handling
Handle common error scenarios:Next Steps
Count Events
Get event counts for aggregations
Filter Reference
Complete guide to all filter operators
Custom Dashboard
Build a custom analytics dashboard
Data Export
Export data for analysis