跳到正文

ButterIX v1 已发布:多版本、多语言、Ask AI 与站点 MCP 服务器全部内置。 →

打开控制台

访问统计

GEThttps://api.butterix.com/v1/sites/:site/analytics

按 User-Agent 把访问分为人类、AI(训练爬虫与 AI 助手)与其他爬虫。.md 请求、索引与规范文件的请求和 MCP 调用单独计数。

认证

AuthorizationBearer

组织 API Key,在控制台「组织设置 → API Keys」创建,格式 biti_ 开头。以 editor 角色行事,不能执行需要 admin 的操作。

biti_sessionstring

登录后设置的 HttpOnly 会话 Cookie。修改类请求必须同源(校验 Origin 头),以防 CSRF。

路径参数

sitestring必填

站点 slug 或 id

查询参数

daysinteger可选1-365默认值 30

响应

统计数据
totalsobject可选
viewsinteger可选

页面与 .md 访问总数

humanViewsinteger可选
visitorsinteger可选

访客数,按天去重后累计,真人、AI 与爬虫都算

aiViewsinteger可选

AI 爬虫与 AI 助手

botViewsinteger可选

搜索引擎与其他爬虫

markdownRequestsinteger可选
agentFileRequestsinteger可选

索引(llms.txt、llms-full.txt)与 API 规范文件的请求,不计入以上各项

mcpCallsinteger可选
searchesinteger可选
questionsinteger可选
feedbackUpinteger可选
feedbackDowninteger可选
dailylist of objects可选
datedate可选
humaninteger可选
aiinteger可选
botinteger可选
visitorsobject可选

当天按类型去重的访客

humaninteger可选
aiinteger可选
botinteger可选
topPageslist of objects可选
pathstring可选
viewsinteger可选
aiAgentslist of objects可选
namestring可选
countinteger可选
referrerslist of objects可选
hoststring可选
countinteger可选
countrieslist of objects可选
codestring可选
countinteger可选
notFoundlist of objects可选
pathstring可选
countinteger可选
agentFileslist of objects可选

请求最多的索引与规范文件

pathstring可选
typeenum可选
可选值:
agentsinteger可选
humansinteger可选
countinteger可选
topSearcheslist of objects可选
qstring可选
countinteger可选