curl --request GET \
--url https://api.mintlify.com/v1/analytics/{projectId}/views \
--header 'Authorization: Bearer <token>'{
"totals": {
"human": 123,
"ai": 123,
"total": 123
},
"views": [
{
"path": "<string>",
"human": 123,
"ai": 123,
"total": 123
}
],
"hasMore": true
}获取按页面和全站的内容浏览事件计数,按人类和 AI 流量分类。
curl --request GET \
--url https://api.mintlify.com/v1/analytics/{projectId}/views \
--header 'Authorization: Bearer <token>'{
"totals": {
"human": 123,
"ai": 123,
"total": 123
},
"views": [
{
"path": "<string>",
"human": 123,
"ai": 123,
"total": 123
}
],
"hasMore": true
}hasMore 为 true 时,将 offset 增加 limit 的值。
dateFrom 和 dateTo 参数按日期范围过滤浏览数据。
totals 对象(全站聚合数据)和一个 views 数组(按页面的数据)。每个条目包含:
The Authorization header expects a Bearer token. Use an admin API key (prefixed with mint_). This is a server-side secret key. Generate one on the API keys page in your dashboard.
Date in ISO 8601 or YYYY-MM-DD format
"2024-01-01"
Date in ISO 8601 or YYYY-MM-DD format. dateTo is an exclusive upper limit. Results include dates before, but not on, the specified date.
"2024-01-01"
Max results per page (1-250, default 50). Increment offset by limit while hasMore is true to paginate.
1 <= x <= 250Number of rows to skip. Use offset = (page - 1) * limit for page-based access.
x >= 0此页面对您有帮助吗?