---
title: "Get Stats Api"
method: GET
path: "/api/events/stats"
---

# Get Stats Api

`GET /api/events/stats`

## Query parameters

- `event_type` string, nullable
- `host` string, nullable
- `method` string, nullable
- `status` integer, nullable
- `search` string, nullable
- `app` string, nullable
- `session` string, nullable

## Response `200`

Successful Response

- EventStatsResponse — Aggregate counts for a filter, so consumers need not download the rows.
  - `epoch` string, required
  - `max_seq` integer, required
  - `total` integer, required
  - `by_event_type` object, required
  - `by_test_status` object, required
  - `by_status_class` object, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-09** `469b056c3641` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smelloscope/apis/smello/changes/api/events/stats/get.md)

---

[API](https://skmtc.dev/smelloscope/apis/smello.md) · [All operations](https://skmtc.dev/smelloscope/apis/smello/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smelloscope/smello/revisions/469b056c3641/schema)
