Skip to main content
GET
https://www.blxa.de
/
api
/
metrics
/
history
Metrics History
curl --request GET \
  --url https://www.blxa.de/api/metrics/history
{
  "data": {
    "service-one": {
      "name": "Service One",
      "points": [
        { "t": 1703750400000, "v": 1250 },
        { "t": 1703754000000, "v": 1380 }
      ]
    }
  }
}

Metrics History

Retrieve historical online count data points for all services over the last 24 hours.

Response

data
object
Object with service slugs as keys

Example Request

curl -X GET "https://www.blxa.de/api/metrics/history"

Example Response

{
  "data": {
    "service-one": {
      "name": "Service One",
      "points": [
        { "t": 1703750400000, "v": 1250 },
        { "t": 1703754000000, "v": 1380 },
        { "t": 1703757600000, "v": 1520 }
      ]
    },
    "service-two": {
      "name": "Service Two",
      "points": [
        { "t": 1703750400000, "v": 850 },
        { "t": 1703754000000, "v": 920 }
      ]
    }
  }
}
Use this endpoint to build charts and graphs showing online count trends over time.
This endpoint returns data for the last 24 hours only. Older data is automatically pruned.
{
  "data": {
    "service-one": {
      "name": "Service One",
      "points": [
        { "t": 1703750400000, "v": 1250 },
        { "t": 1703754000000, "v": 1380 }
      ]
    }
  }
}