Sensor Data
Get validated sensor data
Orion Data API v1.2 · Deprecated
const url = 'https://api.oriondata.io/api/validatedSensorData?startDate=2024-09-09&endDate=2024-09-16&offset=0&sensorIds=54321&softSensorIds=65432&version=1.2';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.oriondata.io/api/validatedSensorData?startDate=2024-09-09&endDate=2024-09-16&offset=0&sensorIds=54321&softSensorIds=65432&version=1.2' \ --header 'Authorization: Bearer <token>'Behaves like /sensorData but returns additional data-quality properties alongside each reading. Unless your integration specifically needs the data-quality fields, prefer /sensorData. At least one of sensorIds or softSensorIds must be supplied.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The start of the period. Date (yyyy-MM-dd). DateTime values are supported from version 1.3.
Example
2024-09-09The end of the period. Date (yyyy-MM-dd). DateTime values are supported from version 1.3.
Example
2024-09-16The page of results to return, starting at 0. Each page contains up to 100 records.
Example
0Comma-separated list of raw Sensor IDs. At least one of sensorIds or softSensorIds must be supplied.
Example
?sensorIds=54321Comma-separated list of Soft Sensor IDs. At least one of sensorIds or softSensorIds must be supplied.
Example
?softSensorIds=65432API version to target. Pin this to 1.2 for this version of the API; requests without it default to the lowest available version.
Example
1.2Responses
Section titled “Responses”An array of ValidatedSensorData objects.
object
The Sensor ID the data point belongs to.
The Soft Sensor ID the data point belongs to. Null if the data point belongs to a raw sensor.
The reading timestamp in the Device’s local standard time. Devices do not observe daylight saving.
The reading value.
The data point’s quality approval level.
The data point’s quality code level.
The auditor’s comment about the data point.
Example
[ { "sensorId": 54321, "softSensorId": null, "readingDate": "2024-09-15T00:00:00", "sensorValue": 1025, "dataQualityApprovalLevelNameLong": "900 Raw - yet to review", "dataQualityCodeLevelNameLong": "200 No Quality or Non Verified", "comment": null }]The server could not understand the request.
No valid token was provided.
Rate limit exceeded.