Skip to content
Mintlify
Analytics

Get search queries

GET/v1/analytics/{projectId}/searches

Returns 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).

Usage

Use this endpoint to export documentation search analytics. Results are ordered by hit count descending, showing which terms your users search for most.

Paginate through results using the nextCursor parameter returned in the response. Continue fetching while nextCursor is not null.

Filtering

Filter search data by date range using dateFrom and dateTo parameters.

Rate limits

This endpoint allows 100 requests per organization per hour. All analytics endpoints share this limit.

Ctrl+I