Analytics API
Lightweight read-only statistics about index size and shape. Useful for dashboards and health checks. None of these endpoints accept query filters; they always report against the current full index state.
| Method | Path | Summary | Key params | Response |
|---|---|---|---|---|
| GET | /index-stats | Aggregate index statistics (corpus, per-collection, per-libro) | — | IndexStatsResponse |
| GET | /query-stats | Query analytics and statistics | q (query:string) | QueryStatsResponse |
| GET | /stats | Search cache hit/miss counters | — | CacheStatsResponse |
Examples
Section titled “Examples”Corpus-wide index statistics
curl -H "X-API-Key: $API_KEY" "$ARCHAIC/index-stats"