---
title: "Get top events by frequency"
method: GET
path: "/v0/top_events"
tags: ["Query"]
---

# Get top events by frequency

`GET /v0/top_events`

## Request

- Base URL: `https://api.formo.so`
- URL: `https://api.formo.so/v0/top_events`
- Auth: HTTP bearer

Most frequent events in the project. By default returns all event categories (page / track / identify / decoded_log / etc.). Pass `type=custom` to filter to custom track events only.

## Query parameters

- `date_from` string, date
- `date_to` string, date
- `filters` string
- `page_scope` 'page' | 'session'
- `limit` integer
- `offset` integer
- `type` 'custom'

## Response `200`

Top events

- AnalyticsResponse: Analytics endpoint response. The `data` array contains the rows; the exact row shape depends on the endpoint. `meta` carries column type information for rendering, `rows` is the row count, and `statistics` holds query timing metadata.
  - `data` object[]
  - `meta` object[]
    - `name` string
    - `type` string
  - `rows` integer
  - `rows_before_limit_at_least` integer
  - `statistics` object

## Other responses

- `401`: Invalid API key
- `403`: Insufficient permissions

---

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