---
title: "Get flag evaluation stats"
method: POST
path: "/flags/stats"
tags: ["Flags"]
---

# Get flag evaluation stats

`POST /flags/stats`

## Request

- Base URL: `https://api.databuddy.cc`
- URL: `https://api.databuddy.cc/flags/stats`
- Auth: API key in header `x-api-key`

Returns recent feature flag evaluation stats for a website. Requires scope read permission.

## Request body

- object
  - `websiteId` string, required
  - `days` integer

## Response `200`

OK

- object[]
  - `evaluatedUsers` number, required
  - `evaluationCount` number, required
  - `identifiedUsers` number, required
  - `key` string, required
  - `lastEvaluatedAt` string, date-time, nullable, required

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `409`: 409
- `429`: 429
- `500`: 500
- `503`: 503

---

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