curl --request GET \
--url https://api.upstash.com/v2/redis/stats/{id} \
--header 'Authorization: Basic <encoded-value>'
{
"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
}
]
}
]
}
This endpoint gets detailed stats of a database.
curl --request GET \
--url https://api.upstash.com/v2/redis/stats/{id} \
--header 'Authorization: Basic <encoded-value>'
{
"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
}
]
}
]
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The ID of the database
Database stats retrieved successfully
The response is of type object
.
Was this page helpful?