Get Database Stats
This endpoint gets detailed stats of a database.
curl --request GET \
--url https://api.upstash.com/v2/redis/stats/{id} \
--header 'Authorization: Bearer <token>'{
"monitor_count": {
"x": "2023-05-22 10:59:23.426 +0000 UTC",
"y": 320
},
"daily_net_commands": 7,
"daily_read_requests": 7,
"daily_write_requests": 0,
"connection_count": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"keyspace": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"throughput": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"diskusage": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"latencymean": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"latency_99": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"read_latency_mean": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"read_latency_99": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"write_latency_mean": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"write_latency_99": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"hits": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"misses": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"read": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"write": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
],
"dailyrequests": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
},
{
"x": "2025-09-04 15:12:52.76649148 +0000 UTC",
"y": 7
}
],
"days": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday"
],
"dailybilling": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
},
{
"x": "2025-09-04 15:12:52.76649148 +0000 UTC",
"y": 1.333
}
],
"dailybandwidth": 50444740913,
"bandwidths": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
},
{
"x": "2025-09-04 15:12:52.76649148 +0000 UTC",
"y": 7
}
],
"total_monthly_bandwidth": 7,
"total_monthly_requests": 7,
"total_monthly_read_requests": 7,
"total_monthly_write_requests": 0,
"total_monthly_script_requests": 0,
"queue_optimized": false,
"total_monthly_storage": 0,
"current_storage": 0,
"total_monthly_billing": 222.33902763855485,
"command_counts": [
{
"metric_identifier": "EXISTS",
"data_points": [
{
"x": "2025-08-31 15:12:52.799480932 +0000 UTC",
"y": 0
}
]
}
]
}Authorization
Bearer authentication header of the form Bearer <token>.
Path parameters
The ID of the database
Response
200 — Database stats retrieved successfully
Total number of commands executed today
Total number of read requests executed today
Total number of write requests executed today
Connection count over time
Total number of keys in the database over time
Throughput on database connections over time
Disk usage over time
Average latency over time
99th percentile latency over time
Average read latency over time
99th percentile read latency over time
Average write latency over time
99th percentile write latency over time
Cache hits over time
Cache misses over time
Read requests over time
Write requests over time
Daily requests over time
Days of the week for measurement
Daily billing amounts over time
Total daily bandwidth usage in bytes
Bandwidth usage over time
Total bandwidth used in current month (bytes)
Total requests in current month
Total read requests in current month
Total write requests in current month
Total script requests in current month
Whether queue optimization is enabled for the database
Total storage used in current month (bytes)
Current storage used (bytes)
Total cost in current month
Command-specific counts over time