---
title: Analytics
description: Read the analytics events recorded for one project environment.
type: tutorial
product: analytics
summary: List events for a time range with an environment-scoped key.
updated: 2026-11-24
order: 0
---

List the events recorded for your project environment, newest first. You can
filter by event name or subject and page through up to 31 days at a time.

## List events

A project administrator first [enables Analytics](/docs/api/service_enablements/update)
for the project (`service_enablements/analytics`). Then use a server-side
[Sylphx secret key](/docs/platform/keys-and-scopes) with
`analytics:read` for the target environment. Keep the key out of browser code.
Replace the organization, project, environment, and UTC timestamps in this
example with your own:

```bash
curl --get 'https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/analytics_events' \
  --header "Authorization: Bearer $SYLPHX_API_KEY" \
  --data-urlencode 'start_time=2026-11-23T00:00:00Z' \
  --data-urlencode 'end_time=2026-11-24T00:00:00Z' \
  --data-urlencode 'page_size=100'
```

The response contains an `analytics_events` array. To get the next page, pass
`next_page_token` as `page_token` with the same time range and filters. An empty
token means you have reached the last page.

See the [List analytics events API reference](/docs/api/analytics_events/list)
for the full request and response fields.
