Docs/API reference / Observations
Query observations
Requires `developer_api.instrument_data.query` on the project-scoped Developer API connection. Use the API origin supplied for your deployment. Unknown query parameters and unexpected request bodies are rejected. Time ranges use an inclusive from and exclusive to. Query current raw/corrected observations or current calculated materializations; never treat nil readings as zero. Deployed limits are available from the public OpenAPI metadata endpoint.
The request panel saves credentials and API settings in this browser. Privacy details
Authorization
developerApiKey Project-scoped Developer API connection key. Grant only the required operation permissions.
In: header
Path Parameters
.*\S.*1 <= length <= 128.*\S.*1 <= length <= 128Query Parameters
Comma-separated variable identifiers.
1 <= items <= 200Start of the requested time range (inclusive). Must be earlier than to.
date-timeEnd of the requested time range (exclusive).
date-timeComma-separated quality values.
items <= 16Comma-separated value statuses.
items <= 16Include observations whose canonical value is nil.
falseInclude archived resources explicitly. Archived history still requires authorization.
falseObservation timestamp order.
"asc"Value in
- "asc"
- "desc"
Maximum entries to return. Defaults shown are repository defaults; deployed limits may differ.
1 <= value <= 50001000Opaque cursor from next_cursor. Keep all filters, resource scope, time range, order, and authorization context unchanged.
1 <= length <= 16384Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/dev-api/v1/p/string/instruments/string/observations?variable_ids=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"{
"request_id": "string",
"data": {
"variables": [
{
"instrument_id": "string",
"instrument_name": "string",
"instrument_lifecycle_state": "active",
"id": "string",
"name": "string",
"variable_lifecycle_state": "active",
"value_type": "decimal",
"unit": "cm"
}
],
"observations": [
{
"instrument_id": "string",
"variable_id": "string",
"instrument_timestamp": "2019-08-24T14:15:22Z",
"value_type": "decimal",
"decimal_value": 0,
"string_value": "string",
"quality": "pass",
"status": "raw",
"nil_reason": "string"
}
]
},
"next_cursor": "string"
}