Search

Get Index Stats

Retrieves statistics and metrics for a specific search index

GET/v2/search/{id}/stats
cURL
curl --request GET \
  --url https://api.upstash.com/v2/search/{id}/stats \
  --header 'Authorization: Bearer <token>'
200Response
{
  "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
    }
  ],
  "daily_rerank_count": 0,
  "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
    }
  ]
}

Authorization

Authorizationheaderstringrequired

Bearer authentication header of the form Bearer <token>.

Path parameters

idpathstringrequired

The ID of the search index

Query parameters

periodqueryenum<string>default: "1h"

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.

Available options:1h3h12h1d3d7d30d

Response

200 — Statistics for the specified search index retrieved successfully

pending_index_countinteger

Number of pending index operations

current_vector_countinteger

Current number of vectors in the index

daily_query_countinteger

Total number of query operations executed today

daily_update_countinteger

Total number of update operations executed today

monthly_query_countinteger

Total query operations in current month

monthly_update_countinteger

Total update operations in current month

monthly_bandwidth_usageinteger

Total bandwidth used in current month (bytes)

storage_usageinteger

Current storage used (bytes)

monthly_costnumber

Total cost in current month

daily_update_requestsobject[]

Daily update requests over time

daily_query_requestsobject[]

Daily query requests over time

daily_bandwidthsobject[]

Daily bandwidth usage over time

daysstring[]

Days of the week for measurement

query_throughputobject[]

Query throughput over time

update_throughputobject[]

Update throughput over time

query_latency_meanobject[]

Average query latency over time

query_latency_99object[]

99th percentile query latency over time

update_latency_meanobject[]

Average update latency over time

update_latency_99object[]

99th percentile update latency over time

embeds_latency_meanobject[]

Average embedding latency over time

embeds_latency_99object[]

99th percentile embedding latency over time

vector_countobject[]

Vector count over time

data_sizeobject[]

Data size over time

daily_rerank_countinteger

Total number of rerank operations executed today

monthly_rerank_countinteger

Total rerank operations in current month

daily_rerank_requestsobject[]

Daily rerank requests over time

rerank_latency_meanobject[]

Average rerank latency over time

rerank_latency_99object[]

99th percentile rerank latency over time

Loading search…