/v1/analytics/{projectId}/searchesGet search queriesReturns paginated documentation search terms for the date range, ordered by hit count descending. 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.
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.
limitnumberqueryMax search terms per page (ordered by hit count descending)
cursorstringqueryOpaque pagination cursor from the previous response
Responses
nextCursornull | stringrequiredOpaque pagination cursor for the next page. Null if no more results.
searchesarray of objectrequiredSearch terms ordered by hit count descending.
Show child attributes
Show array items
ctrnumberrequiredPercentage of searches for this term that resulted in a click on a specific search result (clicks ÷ hits × 100). A click includes selecting a result with the pointer or pressing Enter when a result is highlighted. Submitting a query by itself does not count as a click. Clicking the AI assistant in the search bar, or pressing Enter to use it, counts as a search with no click and is not tracked separately in this field.
hitsnumberrequiredNumber of times this term was searched.
lastSearchedAtstringrequiredTimestamp of the last time this term was searched.
searchQuerystringrequiredThe search term entered by users.
topClickedPagenull | stringrequiredThe most-clicked result path for this query, if any.
totalSearchesintegerrequiredTotal count of search events in the requested date range (sum of all hits, not distinct queries).
{
"nextCursor": "string",
"searches": [
{
"ctr": 0,
"hits": 0,
"lastSearchedAt": "string",
"searchQuery": "string",
"topClickedPage": "string"
}
],
"totalSearches": 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"
}