---
title: "获取 AI 助手调用方统计"
method: GET
path: "/v1/analytics/{projectId}/assistant/caller-stats"
tags: ["Analytics"]
language: "zh-Hans"
---

# 获取 AI 助手调用方统计

`GET /v1/analytics/{projectId}/assistant/caller-stats`

## Request

- Base URL: `https://api.mintlify.com`
- URL: `https://api.mintlify.com/v1/analytics/{projectId}/assistant/caller-stats`
- Auth: HTTP bearer

获取在指定日期范围内发起的助手会话按调用方类型（网页端、API 和其他）划分的数量明细。

使用管理员 API 密钥进行身份验证。

## Path parameters

- `projectId` string, required: 你的项目 ID，可在控制台的 [API keys](https://dashboard.mintlify.com/settings/organization/api-keys) 页面中复制。

## Query parameters

- `dateFrom` string: ISO 8601 或 YYYY-MM-DD 格式的日期
- `dateTo` string: ISO 8601 或 YYYY-MM-DD 格式的日期。`dateTo` 为不包含在内的上限。结果将包含早于该日期的记录，但不包含该日期当天的记录。

## Response `200`

按调用方类型划分的助手会话数

- AssistantCallerStatsResponse
  - `web` number, required: 从网页端（文档站点）发起的助手会话数。
  - `api` number, required: 从 API 调用发起的助手会话数。
  - `other` number, required: 从其他来源（例如集成、SDK）发起的助手会话数。
  - `total` number, required: 所有调用方类型的助手会话总数。

## Other responses

- `400`: 某个查询参数无效，例如日期格式错误或 `limit` 超出允许范围，或者项目 ID 格式错误。响应正文会说明具体错误。
- `401`: API 密钥缺失或无效，或者你的方案不包含 API 访问权限。
- `403`: 你的请求来自不在该 API 密钥允许列表中的 IP 地址。
- `404`: 该项目不存在或不属于你的组织。
- `429`: 你已超出分析端点的速率限制。
- `500`: 发生意外的服务器错误。请重试该请求。如果错误仍然存在，请联系支持团队。

## Changes

- **2026-10-30** `5cdecd920d06`: 4 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - added the non-success response with the status `429`
- **2026-04-01** `3b3d10df9286`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-analytics-export-api/zh/changes/v1/analytics/:projectId/assistant/caller-stats/get.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-analytics-export-api/zh.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-analytics-export-api/zh/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-analytics-export-api/zh/revisions/f0aae58f3af8?raw)
