Skip to main content
GET
Get page views

使用方法

使用此端点导出页面浏览量分析数据。结果包括全站总量和各页面明细,并按人工流量和 AI 流量分类。 使用基于偏移量的分页浏览结果。当 hasMoretrue 时,将 offset 递增 limit

筛选

使用 dateFromdateTo 参数按日期范围过滤浏览量数据。

速率限制

此端点允许每个组织每小时最多 100 次请求。所有分析端点共享此限制。

授权

Authorization
string
header
必填

The Authorization header expects a Bearer token. Use an admin API key. This is a server-side secret key. Generate one on the API keys page in your dashboard.

路径参数

projectId
string
必填

Your project ID. Can be copied from the API keys page in your dashboard.

查询参数

dateFrom
string

Date in ISO 8601 or YYYY-MM-DD format

示例:

"2024-01-01"

dateTo
string

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"

limit
integer
默认值:50

Max results per page (1-250, default 50). Increment offset by limit while hasMore is true to paginate.

必填范围: 1 <= x <= 250
offset
integer
默认值:0

Number of rows to skip. Use offset = (page - 1) * limit for page-based access.

必填范围: x >= 0

响应

Site-wide and per-path content view event counts

totals
object
必填

Site-wide view totals for the date range.

views
object[]
必填

Per-page view counts.

hasMore
boolean
必填

Whether additional results are available beyond this page.