Skip to main content
GET
/
vector
/
index
/
{id}
/
stats
Get Index Stats
curl --request GET \
  --url https://api.upstash.com/v2/vector/index/{id}/stats \
  --header 'Authorization: Basic <encoded-value>'
{
  "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
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the vector index

Query Parameters

period
enum<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:
1h,
3h,
12h,
1d,
3d,
7d,
30d

Response

200 - application/json

Statistics for the specified vector index retrieved successfully

pending_index_count
integer

Number of pending index operations

Example:

1

current_vector_count
integer

Current number of vectors in the index

Example:

1000

daily_query_count
integer

Total number of query operations executed today

Example:

100

daily_update_count
integer

Total number of update operations executed today

Example:

10

monthly_query_count
integer

Total query operations in current month

Example:

1000

monthly_update_count
integer

Total update operations in current month

Example:

1000

monthly_bandwidth_usage
integer

Total bandwidth used in current month (bytes)

Example:

7000

storage_usage
integer

Current storage used (bytes)

Example:

7000

monthly_cost
number

Total cost in current month

Example:

0.5

daily_update_requests
object[]

Daily update requests over time

Example:
[
{
"x": "2025-10-19 18:33:05.244068975 +0000 UTC",
"y": 1
}
]
daily_query_requests
object[]

Daily query requests over time

Example:
[
{
"x": "2025-10-19 18:33:05.244068975 +0000 UTC",
"y": 7
}
]
daily_bandwidths
object[]

Daily bandwidth usage over time

Example:
[
{
"x": "2025-10-19 18:33:05.244068975 +0000 UTC",
"y": 7
}
]
days
string[]

Days of the week for measurement

Example:
[
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday"
]
query_throughput
object[]

Query throughput over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 7
}
]
update_throughput
object[]

Update throughput over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 7
}
]
query_latency_mean
object[]

Average query latency over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]
query_latency_99
object[]

99th percentile query latency over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]
update_latency_mean
object[]

Average update latency over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]
update_latency_99
object[]

99th percentile update latency over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]
embeds_latency_mean
object[]

Average embedding latency over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]
embeds_latency_99
object[]

99th percentile embedding latency over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]
vector_count
object[]

Vector count over time

Example:
[
{
"x": "2025-10-23 17:35:00.000 +0000 UTC",
"y": 2
}
]
data_size
object[]

Data size over time

Example:
[
{
"x": "2025-10-23 17:35:00.000 +0000 UTC",
"y": 76
}
]
daily_rerank_count
integer

Total number of rerank operations executed today

Example:

0

monthly_rerank_count
integer

Total rerank operations in current month

Example:

10

daily_rerank_requests
object[]

Daily rerank requests over time

Example:
[
{
"x": "2025-10-19 18:33:05.244068975 +0000 UTC",
"y": 1
}
]
rerank_latency_mean
object[]

Average rerank latency over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]
rerank_latency_99
object[]

99th percentile rerank latency over time

Example:
[
{
"x": "2025-10-23 17:34:00.000 +0000 UTC",
"y": 0
}
]