Get Historical Readings
get_readings_historyGet historical environmental readings near a location over a time range.
Use this for trend analysis, comparisons, and time-series queries.
Unlike get_latest_readings (which returns only the most recent value),
this returns multiple observations per station within the time window.
Args:
lat: Latitude in WGS84 (e.g. 51.92 for Rotterdam)
lon: Longitude in WGS84 (e.g. 4.47 for Rotterdam)
parameter: Parameter name or alias (required — e.g. "temperature",
"pm25", "no2"). Use get_parameters() for valid names.
start: Start of time range in ISO 8601 (e.g. "2026-11-01T00:00:00Z")
end: End of time range in ISO 8601 (default: now)
radius_km: Search radius in kilometers (default 10, max 50)
limit: Maximum readings per station (default 100, max 1000)
Returns stations grouped by location, each with a time-ordered array of
readings, plus parameter info and the actual time range covered.
Invalid coordinates, unrecognized parameters, or unparseable dates return
a structured error. Data source failures include cause and retry timing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat": "<lat>",
"lon": "<lon>",
"parameter": "<parameter>",
"start": "<start>"
},
"name": "get_readings_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| lat | Yes | ||
| lon | Yes | ||
| limit | No | ||
| start | Yes | ||
| parameter | Yes | ||
| radius_km | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stations | Yes | ||
| parameter | Yes | ||
| period_end | Yes | ||
| period_start | Yes | ||
| total_readings | Yes |