Closed LiamJMajor closed 1 week ago
Rather than scraping the site, you can use our API directly to get the data in JSON format. This has no authentication requirements on it, and provided people use it sensibly it will stay that way.
The URLs you need are
Replace {uprn} with the UPRN of the property.
As with any API, this is provided on a best-endeavours basis, and please make sure you don't send too many requests in a short period of time or your request may be blocked.
Thanks Rob, that's incredibly helpful! I searched for a while but I couldn't find an open endpoint.
Leaving this open, the above has solved my problem, but the integration is still broken, so this should remain open.
Rather than scraping the site, you can use our API directly to get the data in JSON format. This has no authentication requirements on it, and provided people use it sensibly it will stay that way.
The URLs you need are
- https://geoapi.dorsetcouncil.gov.uk/v1/services/recyclingday/{uprn}
- https://geoapi.dorsetcouncil.gov.uk/v1/services/refuseday/{uprn}
- https://geoapi.dorsetcouncil.gov.uk/v1/services/foodwasteday/{uprn}
- https://geoapi.dorsetcouncil.gov.uk/v1/services/gardenwasteday/{uprn} (if the premise isn't subscribed to garden waste, an empty result will be returned)
Replace {uprn} with the UPRN of the property.
As with any API, this is provided on a best-endeavours basis, and please make sure you don't send too many requests in a short period of time or your request may be blocked.
Rather than scraping the site, you can use our API directly to get the data in JSON format. This has no authentication requirements on it, and provided people use it sensibly it will stay that way.
The URLs you need are
- https://geoapi.dorsetcouncil.gov.uk/v1/services/recyclingday/{uprn}
- https://geoapi.dorsetcouncil.gov.uk/v1/services/refuseday/{uprn}
- https://geoapi.dorsetcouncil.gov.uk/v1/services/foodwasteday/{uprn}
- https://geoapi.dorsetcouncil.gov.uk/v1/services/gardenwasteday/{uprn} (if the premise isn't subscribed to garden waste, an empty result will be returned)
Replace {uprn} with the UPRN of the property.
As with any API, this is provided on a best-endeavours basis, and please make sure you don't send too many requests in a short period of time or your request may be blocked.
You are my new favorite local government person
Thanks Rob, that's incredibly helpful! I searched for a while but I couldn't find an open endpoint.
Leaving this open, the above has solved my problem, but the integration is still broken, so this should remain open.
Its not advertised, and before the change that broke the scraper it didn't even use the API and did it all behind the scenes hidden away, but there's no reason not to make it available!
You are my new favorite local government person
I'm honoured!
Name of Council
Dorset Council
Issue Information
Dorset council has changed their website to load collection data using JS after page load, so the current scraping method is not operationals, as the data is no on-page at the time of scrape.
Issue occured on the 6th june. Link to Allure history
Verification