Analytics

Get unique visitors

Changed on

Retrieves 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.

get/v1/analytics/{projectId}/visitors

Request

  • Base URL
    https://api.mintlify.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

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

Query parameters

dateFromstring

Date in ISO 8601 or YYYY-MM-DD format

Example:2024-01-01
dateTostring

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.

Example:2024-01-01
limitinteger

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

offsetinteger

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

Response

Site-wide totals and per-path visitor counts

hasMoreboolean required

Whether additional results are available beyond this page.

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    1 more change in this revision