---
title: "GET /v1/console/usage/logs/count"
method: GET
path: "/v1/console/usage/logs/count"
tags: ["UsageService"]
---

# GET /v1/console/usage/logs/count

`GET /v1/console/usage/logs/count`

CountLogs 返回与 ListLogs 相同筛选条件的精确总数。
 该查询独立加载；聚合完整性无法证明时返回 USAGE_LOG_COUNT_UNAVAILABLE，
 不影响日志列表、详情和游标翻页。

## Query parameters

- `search` string
- `status` string
- `modelId` string
- `channelId` string
- `startTime` string, date-time
- `endTime` string, date-time
- `apiKeyId` string
- `modelName` string
- `apiKeyName` string

## Response `200`

OK

- UsageV1CountLogsReply
  - `total` string — 精确快照总数；proto JSON 以十进制字符串序列化 int64。

---

[API](https://skmtc.dev/apiqik/apis/apiqik-api.md) · [All operations](https://skmtc.dev/apiqik/apis/apiqik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apiqik/apiqik-api/revisions/e06b96127408/schema)
