# Obtain Sensor Data Provides sensor data for the specified timeframe, if available. Endpoint: GET /sensors/network/{network_id}/history/{sensor} Security: ApiKey ## Path parameters: - `network_id` (integer, required) Motion Network ID (returned as 'id' by Find API calls) - `sensor` (string, required) The ID of the Sensor. Also accepts the string all, which will return all sensors data for the corresponding network. ## Query parameters: - `from` (number) The starting time for the query in epoch format. Defaults current time minus 1 hour (current epoch time minus 3600). - `to` (number) The ending time for the query in epoch format. Defaults to the current time. ## Response 200 fields (application/json): - `network_id` (integer) The network ID of the WiFi Motion network. - `from` (string) The starting time of the query. - `to` (string) The ending time of the query. - `data` (array) The list of sensors that are associated with the WiFi Motion network. This includes hubs, vibration, humidity, and temperature sensors. - `data.thingName` (string) The ID of the sensor. - `data.friendlyName` (string) A user friendly description that is assigned to the sensor. - `data.locationName` (string,null) The name of the location where the sensor is located. - `data.deviceType` (string) Identifies the type of sensor. - SensorThLite - Humidity and Temperature - SensorVibration: Vibration - HUB - Sensor hub - `data.purpose` (string) Identifies the purpose of the sensor. - `data.action` (string) A description of the event that had taken place. Examples include: - SensorValueChanged - SensorDetected - `data.date` (string) The date and time that the action had been recorded. - `data.payload` (object) - `data.payload.unit` (string) The measurement type of the payload. - `data.payload.temperature` (number) The temperature reading. - `data.payload.humidity` (number) The humidity reading. ## Response 404 fields