/v1/analytics/{projectId}/visitorsGet unique visitorsReturns per-path and site-wide approximate distinct visitors by traffic type. The total field is deduplicated across human and AI (union of distinct visitor IDs with any qualifying content view).
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 unique visitors from AI bot traffic.
humannumberrequiredSite-wide unique visitors from human traffic.
totalnumberrequiredSite-wide approximate distinct visitors with any qualifying view (deduplicated across human and AI).
visitorsarray of objectrequiredPer-page visitor counts.
Show child attributes
Show array items
ainumberrequiredUnique visitors from AI bot traffic.
humannumberrequiredUnique visitors from human traffic.
pathstringrequiredThe documentation page path.
totalnumberrequiredApproximate distinct visitors with any qualifying view on this path (deduplicated across human and AI).
{
"hasMore": true,
"totals": {
"ai": 0,
"human": 0,
"total": 0
},
"visitors": [
{
"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"
}