Get status of loadshedding [Check if there is any loadshedding]
| Parameter | Mode | Description | example values |
|---|---|---|---|
NULL |
NULL | NULL | NULL |
https://loadshedding.eskom.co.za/LoadShedding/GetStatus
| Parameter | Mode | Description | example values |
|---|---|---|---|
integer |
int | Https | 1 |
//1 means no loadshedding
1
Get Municipalities [get the municipalities using the API]
| Parameter | Mode | Description | example values |
|---|---|---|---|
Id= |
int | municipalitie id | 9 |
https://loadshedding.eskom.co.za/LoadShedding/GetMunicipalities/?Id=4
| Parameter | Mode | Description | example values |
|---|---|---|---|
Selected |
boolean | is selected | false |
Text |
String | name | Beaufort West |
Value |
String | value | 336 |
[
{
"Selected":false,
"Text":"Beaufort West",
"Value":"336"
}
]
Get The Surburb Data [get the surburb data using the API]
| Parameter | Mode | Description | example values |
|---|---|---|---|
pageSize |
int | size of the page | 100 |
pageNum |
int | number of pages | 1 |
id |
int | id | 336 |
http://loadshedding.eskom.co.za/LoadShedding/GetSurburbData/?pageSize=100&pageNum=1&id=340
| Parameter | Mode | Description | example values |
|---|---|---|---|
id |
String | id | 63591 |
text |
String | name | Alexandra |
Tot |
int | total | 271 |
//JSON
{
"Total":187,
"Results":[
{
"id":"63591",
"text":"Alexandra",
"Tot":271
}
]
}
Get The ScheduleM Data [get the ScheduleM data using the API]
| Parameter | Mode | Description | example values |
|---|---|---|---|
suburb_id |
int | suburbs id | 63591 |
stage |
int | stage of loadshedding | 2 |
province_id |
int | provinces id | 9 |
municipality_total |
int | municipalitys total | 271 |
https://loadshedding.eskom.co.za/LoadShedding/GetScheduleM/63591/2/9/271
| Parameter | Mode | Description | example values |
|---|---|---|---|
day |
String | day | Wed, 09 Sep |
time |
String | time | 06:00 - 08:30 |
//html to parse
Wed, 09 Sep
06:00 - 08:30
14:00 - 16:30
Thu, 10 Sep
14:00 - 16:30
22:00 - 00:30
Fri, 11 Sep
22:00 - 00:30
Sat, 12 Sep
06:00 - 08:30
Sun, 13 Sep
04:00 - 06:30
12:00 - 14:30
Mon, 14 Sep
12:00 - 14:30
20:00 - 22:30
Tue, 15 Sep
20:00 - 22:30
Wed, 16 Sep
04:00 - 06:30
Thu, 17 Sep
02:00 - 04:30
10:00 - 12:30
Fri, 18 Sep
10:00 - 12:30
18:00 - 20:30
Sat, 19 Sep
18:00 - 20:30
Sun, 20 Sep
02:00 - 04:30
Mon, 21 Sep
00:00 - 02:30
08:00 - 10:30
Tue, 22 Sep
08:00 - 10:30
16:00 - 18:30
Wed, 23 Sep
16:00 - 18:30
Thu, 24 Sep
00:00 - 02:30
Fri, 25 Sep
06:00 - 08:30
Sat, 26 Sep
06:00 - 08:30
14:00 - 16:30
Sun, 27 Sep
14:00 - 16:30
22:00 - 00:30
Mon, 28 Sep
22:00 - 00:30
Tue, 29 Sep
04:00 - 06:30
Wed, 30 Sep
04:00 - 06:30
12:00 - 14:30
Thu, 01 Oct
10:00 - 12:30
18:00 - 20:30
Fri, 02 Oct
18:00 - 20:30
Sat, 03 Oct
02:00 - 04:30
Sun, 04 Oct
02:00 - 04:30
10:00 - 12:30
Mon, 05 Oct
08:00 - 10:30
16:00 - 18:30
Tue, 06 Oct
16:00 - 18:30
Wed, 07 Oct
00:00 - 02:30
Find Print schedule