GET /api/v1/metrics/checks/query/
Returns time-series datapoints with time bucketing and aggregation for one check.
data_type and metrics are optional — same defaults as the raw endpoint. granularity defaults to auto; aggregation defaults to avg.
Accepts both GET and POST with identical semantics.
Request
- Base URLhttps://uptime.com (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The check to query.
MDB data type (e.g. http, pagespeed, float). When omitted, resolved from the check's check type.
Metric names to return. Pass as repeated query params in GET (metrics=a&metrics=b) or as a JSON array in POST. When omitted, only the first metric defined for the data type is returned. Always specify the metrics you actually need. The default selection is not part of the API contract and may change.
Range start (ISO 8601, UTC). Defaults to 24 hours ago.
Range end (ISO 8601, UTC). Defaults to now.
Time bucketing (default: auto).
Aggregation function (default: avg).
Dimension filters (POST only). Object with dimension names as keys and arrays of values: {"location": ["us-east-1"]}. In GET, pass dimensions as direct query params instead (location=us-east-1&location=eu-west-1).
Dimensions to group by. Pass as repeated query params in GET (group_by=location&group_by=step_number) or as a JSON array in POST.
Max total datapoints across all series (default: 5000, max: 50000).
Response
Changes
No recorded changes to this operation across all 1 revision of this API.