REST API
Parameters
https://api.iwqis.iowawis.org/v1/params
https://api.iwqis.iowawis.org/v1/params/discharge (for a specific parameter, discharge here)
Sites
https://api.iwqis.iowawis.org/v1/sites
https://api.iwqis.iowawis.org/v1/sites/WQS0020 (for a specific site, WQS0020 here)
Latest value
- Latest value by a site and by a parameter
- Latest value of all parameters by a site
[{
"measure_uid": 86164,
"editor_uid": "iihr",
"param_uid": "discharge",
"method_uid": null,
"site_uid": "WQS0020",
"datetime": "2017-04-19T14:45:00.000Z",
"value": 121356,
"private": false
}, {
"measure_uid": 86168,
"editor_uid": "iihr",
"param_uid": "yield",
"method_uid": null,
"site_uid": "WQS0020",
"datetime": "2017-04-19T14:45:00.000Z",
"value": 0.03471,
"private": false
}, {
"measure_uid": 85798,
"editor_uid": "iihr",
"param_uid": "nitrate_con",
"method_uid": "nitratax",
"site_uid": "WQS0020",
"datetime": "2017-04-19T15:30:00.000Z",
"value": 3.39,
"private": false
}, {
"measure_uid": 86165,
"editor_uid": "iihr",
"param_uid": "load",
"method_uid": null,
"site_uid": "WQS0020",
"datetime": "2017-04-19T14:45:00.000Z",
"value": 2205890,
"private": false
}]
Get Values with Time range
We have two others endpoints that give hourly and daily aggregates. Since we are dealing with dense time series (with a fixed timestep), I use a compact storage for the time serie data. An hourly resource represent one day of hourly data as an array of 24 values. A daily resource represent one year of daily data as an array of 365/366 values.
https://api.iwqis.iowawis.org/v1/hourly?site_uid=WQS0020&begin=2017-04-01&end=2017-04-20
where "begin" and "end" dates are in YYYY-MM-DD format.
https://api.iwqis.iowawis.org/v1/daily?site_uid=WQS0020¶m_uid=discharge&begin=2016&end=2017
where "begin" and "end" are YYYY.
Emails
Hi Sam,
Thanks very much for the detailed email – very helpful! Looks to me like it is very user friendly.
...