---
title: "Get Item usage statistics for a date range"
method: GET
path: "/api/stats"
tags: ["Account"]
---

# Get Item usage statistics for a date range

`GET /api/stats`

## Request

- Base URL: `https://keep.md`
- URL: `https://keep.md/api/stats`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `keep.session_token`

Get Item usage statistics for a date range.

## Query parameters

- `since` union
  - integer
  - string, date-time
- `until` union
  - integer
  - string, date-time

## Headers

- `Keep-API-Version` string

## Response `200`

Usage statistics

- Stats
  - `total` integer, required
  - `byStatus` object, required
  - `content` object, required
    - `errors` integer
    - `missing` integer
  - `range` object, required
    - `since` integer
    - `until` integer
    - `count` integer, required

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: The credential lacks access or the plan does not include the feature

---

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