DataPoint objects for the specified indicator. Supports date range filtering, sort order, pagination, and aggregation by time window.
Path parameters
The indicator’s unique identifier. Must be a valid MongoDB ObjectId (24-character hex string).
Query parameters
Number of data points to skip. Minimum:
0. Use with limit for pagination.Maximum number of data points to return. Minimum:
1, maximum: 10000.Sort order for the x-axis values. Accepted values:
asc, desc.Filter to data points at or after this datetime. ISO 8601 format (e.g.,
2024-01-01T00:00:00Z).Filter to data points at or before this datetime. ISO 8601 format (e.g.,
2024-12-31T23:59:59Z).Aggregation time window. Use
Any positive integer combined with a unit suffix is valid (e.g.,
"0" to return raw data with no aggregation.| Value | Window |
|---|---|
0 | No aggregation (raw points) |
1s | 1 second |
5m | 5 minutes |
1h | 1 hour |
1d | 1 day |
1w | 1 week |
1M | 1 month |
1y | 1 year |
15m, 6h, 3M).Aggregation method applied within each granularity window. Ignored when
granularity is "0".| Value | Description |
|---|---|
last | Last value in the window |
first | First value in the window |
sum | Sum of all values |
avg | Arithmetic mean |
median | Median value |
max | Maximum value |
min | Minimum value |
count | Number of data points in the window |
p{N} | Nth percentile, where N is 0–100 (e.g., p50, p95, p99) |
Percentile aggregation uses MongoDB’s approximate percentile algorithm. For exact median, use
median instead of p50.Response
Returns an array ofDataPoint objects.
The x-axis value. For time-series indicators this is an ISO 8601 datetime string. For numeric indicators this is a float.
The measured value at point
x.Response headers
| Header | Description |
|---|---|
X-Total-Count | Number of data points returned in this response. |
Error responses
| Status | Description |
|---|---|
400 Bad Request | indicator_id is not a valid ObjectId, or aggregator value is not recognized. |
Examples
Example response
200
400 Invalid aggregator
400 Invalid indicator ID