---
title: "Get Logs Stat"
method: GET
path: "/api/log/stat"
tags: ["Log"]
---

# Get Logs Stat

`GET /api/log/stat`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/log/stat`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Query parameters

- `type` integer
- `start_timestamp` integer
- `end_timestamp` integer
- `token_name` string
- `username` string
- `model_name` string
- `channel` integer
- `group` string

## Response `200`

OK

- ResponseDtoLogStatData: Response_dto.LogStatData schema
  - `data` LogStatData, required
    - `quota` integer, required
    - `rpm` integer, required
    - `tpm` integer, required
  - `message` string, required
  - `success` boolean, required

---

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