Skip to main content
Mintlify
current

Search documentation

Type to search this documentation.

Get page views

GET/v1/analytics/{projectId}/viewsGet page views

Returns per-path and site-wide content view event counts, split by human and AI traffic.

Authenticate with an admin API key.

Parameters

projectIdstringpathrequired

Your project ID. Can be copied from the [API keys](https://app.mintlify.com/settings/organization/api-keys) page in your dashboard.

dateFromstringquery

Date in ISO 8601 or YYYY-MM-DD format

dateTostringquery

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.

limitintegerquery

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

default 50 · maximum 250 · minimum 1

offsetintegerquery

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

default 0 · minimum 0

Responses

200Site-wide and per-path content view event countsapplication/json
objectViewsByPageResponse
hasMorebooleanrequired

Whether additional results are available beyond this page.

totalsobjectrequired
Show child attributes
ainumberrequired

Site-wide content view events from AI bot traffic.

humannumberrequired

Site-wide content view events from human traffic.

totalnumberrequired

Site-wide content view events.

viewsarray of objectrequired

Per-page view counts.

Show child attributes
Show array items
ainumberrequired

Content view events on this path from AI bot traffic.

humannumberrequired

Content view events on this path from human traffic.

pathstringrequired

The documentation page path.

totalnumberrequired

Total content view events on this path.

Example response
{
  "hasMore": true,
  "totals": {
    "ai": 0,
    "human": 0,
    "total": 0
  },
  "views": [
    {
      "ai": 0,
      "human": 0,
      "path": "string",
      "total": 0
    }
  ]
}
400Invalid query parametersapplication/json
objectAnalyticsErrorResponse
detailsarray of object

Additional details about the error.

Show child attributes
Show array items
messagestringrequired

Description of a specific validation or processing error.

errorstringrequired

Error message describing what went wrong.

Example response
{
  "details": [
    {
      "message": "string"
    }
  ],
  "error": "string"
}
500Server errorapplication/json
objectAnalyticsErrorResponse
detailsarray of object

Additional details about the error.

Show child attributes
Show array items
messagestringrequired

Description of a specific validation or processing error.

errorstringrequired

Error message describing what went wrong.

Example response
{
  "details": [
    {
      "message": "string"
    }
  ],
  "error": "string"
}
Documentation menu