/v1/analytics/{projectId}/viewsGet page viewsReturns per-path and site-wide content view event counts, split by human and AI traffic.
Authenticate with an admin API key.
Parameters
projectIdstringpathrequiredYour project ID. Can be copied from the [API keys](https://app.mintlify.com/settings/organization/api-keys) page in your dashboard.
dateFromstringqueryDate in ISO 8601 or YYYY-MM-DD format
dateTostringqueryDate in ISO 8601 or YYYY-MM-DD format. `dateTo` is an exclusive upper limit. Results include dates before, but not on, the specified date.
limitintegerqueryMax results per page (1-250, default 50). Increment offset by limit while hasMore is true to paginate.
offsetintegerqueryNumber of rows to skip. Use offset = (page - 1) * limit for page-based access.
Responses
hasMorebooleanrequiredWhether additional results are available beyond this page.
totalsobjectrequiredShow child attributes
ainumberrequiredSite-wide content view events from AI bot traffic.
humannumberrequiredSite-wide content view events from human traffic.
totalnumberrequiredSite-wide content view events.
viewsarray of objectrequiredPer-page view counts.
Show child attributes
Show array items
ainumberrequiredContent view events on this path from AI bot traffic.
humannumberrequiredContent view events on this path from human traffic.
pathstringrequiredThe documentation page path.
totalnumberrequiredTotal content view events on this path.
{
"hasMore": true,
"totals": {
"ai": 0,
"human": 0,
"total": 0
},
"views": [
{
"ai": 0,
"human": 0,
"path": "string",
"total": 0
}
]
}detailsarray of objectAdditional details about the error.
Show child attributes
Show array items
messagestringrequiredDescription of a specific validation or processing error.
errorstringrequiredError message describing what went wrong.
{
"details": [
{
"message": "string"
}
],
"error": "string"
}detailsarray of objectAdditional details about the error.
Show child attributes
Show array items
messagestringrequiredDescription of a specific validation or processing error.
errorstringrequiredError message describing what went wrong.
{
"details": [
{
"message": "string"
}
],
"error": "string"
}