Cale-Torino / Load_shedding_api

An API Endpoint documentation to help notify the public in South Africa of rolling blackout times (AKA loadshedding) since 2007
13 stars 3 forks source link

CoCT #2

Closed cnever closed 1 year ago

cnever commented 1 year ago

How do you get the same data for Capetown? Is there any information on this?

Thanks

Cale-Torino commented 1 year ago

You should be able to use:

https://loadshedding.eskom.co.za/LoadShedding/GetMunicipalities/?Id=9

And get started from the municipalities returned. Last time I checked the endpoints did work for Cape Town/somerset west but now there's a new recent issue... the https://loadshedding.eskom.co.za domain no longer works reliably and gives The requested URL was rejected. Please consult with your administrator. every once and a while... which is a pain...

image

An easier solution for the average person is to use the ESP API If you are not a business you can get a free token on a monthly plan and 50 requests per day.

However I will implore you to take into consideration that ESP also gets some data from the https://loadshedding.eskom.co.za so data may be inaccurate at times.