GET
/
v2
/
redis
/
stats
/
{id}
curl --request GET \
  --url https://api.upstash.com/v2/redis/stats/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "connection_count": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 10:59:23.426 +0000 UTC",
        "y": 320
      }
    ]
  },
  "keyspace": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 10:59:23.426 +0000 UTC",
        "y": 344725564
      }
    ]
  },
  "throughput": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 181.88333333333333
      }
    ]
  },
  "produce_throughput": {
    "type": "array",
    "nullable": true,
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": null
  },
  "consume_throughput": {
    "type": "array",
    "nullable": true,
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": null
  },
  "diskusage": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 10:59:23.426 +0000 UTC",
        "y": 532362818323
      }
    ]
  },
  "latencymax": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 10:59:23.426 +0000 UTC",
        "y": 0.5
      }
    ]
  },
  "latencymin": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 10:59:23.426 +0000 UTC",
        "y": 0.1
      }
    ]
  },
  "read_latency_mean": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 0
      }
    ]
  },
  "read_latency_99": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 0
      }
    ]
  },
  "write_latency_mean": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 0
      }
    ]
  },
  "write_latency_99": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 0
      }
    ]
  },
  "hits": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 0
      }
    ]
  },
  "misses": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 0
      }
    ]
  },
  "read": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 82.53333333333333
      }
    ]
  },
  "write": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-22 11:00:23.426 +0000 UTC",
        "y": 99.35
      }
    ]
  },
  "dailyrequests": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-18 11:58:23.534505371 +0000 UTC",
        "y": 68844080
      }
    ]
  },
  "dailybandwidth": {
    "type": "integer",
    "example": 50444740913
  },
  "bandwidths": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-18 11:58:23.534505371 +0000 UTC",
        "y": 125391861729
      }
    ]
  },
  "days": {
    "type": "array",
    "items": {
      "type": "string"
    },
    "example": [
      "Thursday",
      "Friday",
      "Saturday",
      "Sunday",
      "Monday"
    ]
  },
  "dailybilling": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "x": {
          "type": "string",
          "description": "Timestamp indicating when the measurement was taken.",
          "example": "2023-05-22 10:59:23.426 +0000 UTC"
        },
        "y": {
          "type": "number",
          "description": "Value of the measurement",
          "example": 320
        }
      }
    },
    "example": [
      {
        "x": "2023-05-18 11:58:23.534505371 +0000 UTC",
        "y": 145.72694911244588
      }
    ]
  },
  "dailyproduce": {
    "type": "integer",
    "nullable": true,
    "example": null
  },
  "dailyconsume": {
    "type": "integer",
    "nullable": true,
    "example": null
  },
  "total_monthly_requests": {
    "type": "integer",
    "example": 1283856937
  },
  "total_monthly_read_requests": {
    "type": "integer",
    "example": 1034567002
  },
  "total_monthly_write_requests": {
    "type": "integer",
    "example": 249289935
  },
  "total_monthly_storage": {
    "type": "integer",
    "example": 445942383672
  },
  "total_monthly_billing": {
    "type": "number",
    "example": 222.33902763855485
  },
  "total_monthly_produce": {
    "type": "integer",
    "example": 0
  },
  "total_monthly_consume": {
    "type": "integer",
    "example": 0
  }
}

Authorizations

Authorization
string
header
required

Basic authentication using email and API key

Path Parameters

id
string
required

The ID of the database

Response

200 - application/json

Database stats retrieved successfully

The response is of type object.