Autumn Labs
DocsBlogCareers
API

Metrics

Retrieve metrics data for specified or all accessible stations and optional filters

GET
/metrics
AuthorizationBearer <token>

In: header

Query Parameters

station_ids?string

Comma-separated list of station IDs

to?string
Default"2025-06-27T23:46:42.268Z"
Formatdate-time
from?string
Default"2025-06-26T23:46:42.268Z"
Formatdate-time
names?array<string>

The names of the metrics to filter by

Default[]

Response Body

curl -X GET "http://localhost:3000/metrics?station_ids=507f1f77bcf86cd799439011%2C507f1f77bcf86cd799439012&to=2025-06-27T23%3A46%3A42.268Z&from=2025-06-26T23%3A46%3A42.268Z&names=temperature%2Chumidity"
{
  "data": [
    {
      "station_id": "string",
      "slot": "string",
      "unit_serial": "string",
      "time_created": "string",
      "tz": "string",
      "mode": "string",
      "tags": [
        "string"
      ],
      "name": "string",
      "value": "string",
      "unit": "string",
      "type": "string",
      "limit_upper": "string",
      "limit_lower": "string"
    }
  ],
  "message": "Success",
  "meta": {
    "timestamp": "2019-08-24T14:15:22Z",
    "request_id": "c2ed3e07-8c5f-4be9-b7ec-86bddcedd154",
    "query_duration_ms": 0
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  }
}