Skip to main content
GET
/
search
/
stats
Get Search Stats
curl --request GET \
  --url https://api.upstash.com/v2/search/stats \
  --header 'Authorization: Basic <encoded-value>'
{
  "record_count": 10,
  "request": 10,
  "bandwidth": 750,
  "storage": 950,
  "billing": 0.001,
  "rerank_count": 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.

Response

200 - application/json

Statistics for the search indices retrieved successfully

record_count
integer

Total number of indexed records across all indexes

Example:

10

request
integer

Total API requests count across all indexes

Example:

10

bandwidth
integer

Total bandwidth usage in bytes across all indexes

Example:

750

storage
integer

Total storage usage in bytes across all indexes

Example:

950

billing
number

Current billing amount across all indexes

Example:

0.001

rerank_count
integer

Total reranking operations count across all indexes

Example:

0