search
Get Index Stats
Retrieves statistics and metrics for a specific search index
get/search/{id}/stats
Request
- Base URLhttps://api.upstash.com/v2
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The ID of the search index
Query parameters
period'1h' | '3h' | '12h' | '1d' | '3d' | '7d' | '30d'
Time period for statistics aggregation. Each period returns 60 datapoints with intervals adjusted to the period length.
Exceptionally for 30 days, it returns 240 datapoints with 3-hour intervals for increased granularity.
Response
Statistics for the specified search index retrieved successfully
Example response
{
"pending_index_count": 1,
"current_vector_count": 1000,
"daily_query_count": 100,
"daily_update_count": 10,
"monthly_query_count": 1000,
"monthly_update_count": 1000,
"monthly_bandwidth_usage": 7000,
"storage_usage": 7000,
"monthly_cost": 0.5,
"daily_update_requests": [
{
"x": "2025-10-19 18:33:05.244068975 +0000 UTC",
"y": 1
}
],
"daily_query_requests": [
{
"x": "2025-10-19 18:33:05.244068975 +0000 UTC",
"y": 7
}
],
"daily_bandwidths": [
{
"x": "2025-10-19 18:33:05.244068975 +0000 UTC",
"y": 7
}
],
"days": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday"
],
"query_throughput": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 7
}
],
"update_throughput": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 7
}
],
"query_latency_mean": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
],
"query_latency_99": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
],
"update_latency_mean": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
],
"update_latency_99": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
],
"embeds_latency_mean": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
],
"embeds_latency_99": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
],
"vector_count": [
{
"x": "2025-10-23 17:35:00.000 +0000 UTC",
"y": 2
}
],
"data_size": [
{
"x": "2025-10-23 17:35:00.000 +0000 UTC",
"y": 76
}
],
"monthly_rerank_count": 10,
"daily_rerank_requests": [
{
"x": "2025-10-19 18:33:05.244068975 +0000 UTC",
"y": 1
}
],
"rerank_latency_mean": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
],
"rerank_latency_99": [
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]
}Changes
No recorded changes to this operation across all 3 revisions of this API.