Skip to main content

Endpoint

Query events with optional filters and pagination. Returns an array of event objects matching your criteria.

Parameters

Path Parameters

Request Body

Filter Object

Pagination Object

Response

Returns an array of event objects:

Event Object Fields

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