Analytics

List search queries

Changed on

Lists documentation search terms for the date range, ordered by hit count descending, with pagination. Each row includes click-through rate, the most-clicked result path for that query (if any), and the last time the term was searched. totalSearches is the total number of search query events in the same date range (sum of all hits, not distinct queries).

Authenticate with an admin API key.

get/v1/analytics/{projectId}/searches

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
limitnumber

Max search terms per page (ordered by hit count descending)

cursorstring

Opaque pagination cursor from the previous response

Response

Search term aggregates with pagination

totalSearchesinteger required

Total count of search events in the requested date range (sum of all hits, not distinct queries).

nextCursorstring nullable required

Opaque pagination cursor for the next page. Null if no more results.

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