Welcome to Water Restrictions, your go-to source for up-to-date information on water restrictions in your area.Water Restrictions LogoWater Restrictions
EndpointsMonitoring sites

Get Monitoring Site Readings

Gets a page of one monitoring site's readings, newest observed first, optionally narrowed to a span. A reading older than its source's maximum age is reported as stale with no value, so a suppressed reading is distinguishable from one the provider did not state.

GET
/v1/monitoring-sites/{monitoringSiteId}/readings

Gets a page of one monitoring site's readings, newest observed first, optionally narrowed to a span. A reading older than its source's maximum age is reported as stale with no value, so a suppressed reading is distinguishable from one the provider did not state.

Path Parameters

monitoringSiteId*string
Formatuuid

Query Parameters

from?string
Formatdate-time
to?string
Formatdate-time
pageNumber?|
Match^-?(?:0|[1-9]\d*)$
Formatint32
Default1
pageSize?|
Match^-?(?:0|[1-9]\d*)$
Formatint32
Default10

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/monitoring-sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/readings"
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "observationType": "flow",      "value": null,      "unit": "string",      "observedAt": "2019-08-24T14:15:22Z",      "qualityCode": "string",      "freshness": "current",      "freshnessReasons": null    }  ],  "pageNumber": 0,  "pageSize": 0,  "totalCount": 0,  "totalPages": 0,  "hasPreviousPage": true,  "hasNextPage": true}