Post

2 followers Follow
0
Avatar

Real Time Flood Monitoring API - Issue with Since Parameter

Since yesterday evening (21st April)  we've been having issues using the since parameter on the Real Time flood-monitoring API endpoints in our crawler, the error message states that the parameter is not accepted : 

Example endpoint:  https://environment.data.gov.uk/flood-monitoring/data/readings?stationReference=738345&since=2021-04-18&parameter=level&qualifier=Stage&_limit=10000 

We’ve checked the documentation , but this still indicates that we should be using the ‘since’ parameter in our crawler. Does anyone know why the parameter is no longer working ? Has a new version of API been deployed which uses a different parameter ?

If someone could advise on whether this is a fault or if a new parameter should be used that would be great. 

Isha Amin //

Official comment

Avatar

Hello Isha, 

There has been a change to the 'since' parameter for that endpoint, either of these two approaches should return the data you need:                https://environment.data.gov.uk/flood-monitoring/data/readings?stationReference=738345&startdate=2021-04-18&enddate=2021-04-22&parameter=level&qualifier=Stage&_limit=10000
or
https://environment.data.gov.uk/flood-monitoring/id/stations/738345/readings?since=2021-04-18&parameter=level&qualifier=Stage&_limit=10000

I hope this helps

Data Sharing and Access team

Ella Fotheringham //
Comment actions Permalink

Please sign in to leave a comment.

1 comment