Hinterlands API
NOTE: To use API you need an access token
[GET] /livestock/json
Returns readings for all sensors
Optional filters:
- device - Allows specifications of device(s), default returns all
- fixStatus - Filter on whether GPS fix was successful based on FixFailed field (Boolean), default False (meaning successful fix)
- startDate and endDate - Filter on date of reading based on local time (YYYY-MM-DDTHH:MM:SS), default "2020-07-14T12:00:00" to current time
Example call: /livestock/json?device=livestock-04&device=livestock-10&startDate=2020-08-05T08:00:00
[GET] /livestock/csv
Returns readings for all sensors
Optional filters:
- device - Allows specifications of device(s), default returns all
- fixStatus - Filter on whether GPS fix was successful based on FixFailed field (Boolean), default False (meaning successful fix)
- startDate and endDate - Filter on date of reading based on local time (YYYY-MM-DDTHH:MM:SS), default "2020-07-14T12:00:00" to current time
Example call: /livestock/csv?device=livestock-04&device=livestock-10&startDate=2020-08-05T08:00:00
[GET] /livestock/json/id
Returns readings for single sensors
Optional filters:
- fixStatus - Filter on whether GPS fix was successful based on FixFailed field (Boolean), default False (meaning successful fix)
- startDate and endDate - Filter on date of reading based on local time (YYYY-MM-DDTHH:MM:SS), default "2020-07-14T12:00:00" to current time
Example call: /livestock/json/livestock-04?startDate=2020-08-05T08:00:00
[GET] /livestock/csv/id
Returns readings for single sensors
Optional filters:
- fixStatus - Filter on whether GPS fix was successful based on FixFailed field (Boolean), default False (meaning successful fix)
- startDate and endDate - Filter on date of reading based on local time (YYYY-MM-DDTHH:MM:SS), default "2020-07-14T12:00:00" to current time
Example call: /livestock/csv/livestock-04?startDate=2020-08-05T08:00:00
[GET] /stats/json
Returns all readings for all sensors
Optional filters:
- device - Allows specifications of device(s), default returns all
- startDate and endDate - Filter on date of reading based on local time (YYYY-MM-DDTHH:MM:SS), default "2020-07-14T12:00:00" to current time
Example call: /stats/json?device=livestock-04&device=livestock-10&startDate=2020-08-05T08:00:00
[GET] /stats/csv
Returns all readings for all sensors
Optional filters:
- device - Allows specifications of device(s), default returns all
- startDate and endDate - Filter on date of reading based on local time (YYYY-MM-DDTHH:MM:SS), default "2020-07-14T12:00:00" to current time
Example call: /stats/csv?device=livestock-04&device=livestock-10&startDate=2020-08-05T08:00:00
[GET] /stats/json/id
Returns readings for single sensors
Optional filters:
- startDate and endDate - Filter on date of reading based on local time (YYYY-MM-DDTHH:MM:SS), default "2020-07-14T12:00:00" to current time
Example call: /stats/json/livestock-04?startDate=2020-08-05T08:00:00
[GET] /stats/csv/id
Returns readings for single sensors
Optional filters:
- startDate and endDate - Filter on date of reading based on local time (YYYY-MM-DDTHH:MM:SS), default "2020-07-14T12:00:00" to current time
Example call: /stats/csv/livestock-04?startDate=2020-08-05T08:00:00