---
title: "Get Event Time Series"
method: GET
path: "/api/sites/{site}/events/time-series"
tags: ["Events"]
---

# Get Event Time Series

`GET /api/sites/{site}/events/time-series`

## Request

- Base URL: `https://app.onyxmetric.com`
- URL: `https://app.onyxmetric.com/api/sites/{site}/events/time-series`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `api_key`
  - API key in cookie `better-auth.session_token`

Returns time-bucketed counts for the top custom events.

## Path parameters

- `site` union, required
  - integer
  - string

## Query parameters

- `start_date` string, date
- `end_date` string, date
- `time_zone` string
- `start_datetime` string
- `end_datetime` string
- `past_minutes_start` integer
- `past_minutes_end` integer
- `filters` string
- `segment_id` integer

## Response `200`

Successful response. Refer to the linked endpoint documentation for the response fields.

- unknown

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Insufficient permission
- `404`: Resource not found
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

[API](https://skmtc.dev/onyxmetric/apis/onyxmetric-api.md) · [All operations](https://skmtc.dev/onyxmetric/apis/onyxmetric-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onyxmetric/apis/onyxmetric-api/revisions/c99014014805?raw)
