API
Metrics
Retrieve metrics data for specified or all accessible stations and optional filters
AuthorizationBearer <token>
In: header
Query Parameters
station_ids?string
Comma-separated list of station IDs
to?string
Default
"2025-08-29T20:30:54.423Z"
Format
date-time
from?string
Default
"2025-08-28T20:30:54.423Z"
Format
date-time
names?array<string>
The names of the metrics to filter by
Default
[]
Response Body
curl -X GET "https://api.autumnlabs.io/metrics?station_ids=string&to=2025-08-29T20%3A30%3A54.423Z&from=2025-08-28T20%3A30%3A54.423Z&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": "string",
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"request_id": "string",
"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
}
}