Get Datastream Historical Data
In order to use this API you must enable raw data saving for the datastream.
Get Device DataStream History
GET
https://{server_address}/api/v1/organization/device/datastream/history
Query Parameters
Name | Type | Description |
---|---|---|
deviceId* | 1 | Device identifier. Should be a valid integer. |
page | 0 | Page number starting from 0. First page by default. |
size | 20 | Page size. Should be from 1 to 100. 20 by default. |
pin* | v1 | Pin name. |
from | String | Filter device data stream history from the specified time. Should be a valid unix epoch time in milliseconds. |
to | String | Filter device data stream history up to the specified time. Should be a valid unix epoch time in milliseconds. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | Bearer {access_token} |
Request examples:
Last updated