Get grid system state
curl --request GET \
--url https://api.powersignals.co.za/api/v1/grid/system-state \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.powersignals.co.za/api/v1/grid/system-state"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.powersignals.co.za/api/v1/grid/system-state', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.powersignals.co.za/api/v1/grid/system-state",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.powersignals.co.za/api/v1/grid/system-state"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.powersignals.co.za/api/v1/grid/system-state")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.powersignals.co.za/api/v1/grid/system-state")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"interval": "1h",
"derived": true,
"start": "<string>",
"end": "<string>",
"dataset": "grid.system_state",
"timezone": "UTC",
"schema_version": "1.0"
},
"data": [
{}
]
}{
"error": "<string>",
"detail": "<string>"
}Grid
System State
Returns South African grid system state data for the given time range. Supports hourly (1h) and daily (1d) intervals. Requires API key authentication.
GET
/
api
/
v1
/
grid
/
system-state
Get grid system state
curl --request GET \
--url https://api.powersignals.co.za/api/v1/grid/system-state \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.powersignals.co.za/api/v1/grid/system-state"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.powersignals.co.za/api/v1/grid/system-state', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.powersignals.co.za/api/v1/grid/system-state",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.powersignals.co.za/api/v1/grid/system-state"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.powersignals.co.za/api/v1/grid/system-state")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.powersignals.co.za/api/v1/grid/system-state")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"interval": "1h",
"derived": true,
"start": "<string>",
"end": "<string>",
"dataset": "grid.system_state",
"timezone": "UTC",
"schema_version": "1.0"
},
"data": [
{}
]
}{
"error": "<string>",
"detail": "<string>"
}Overview
Returns South African grid system state data for a given time range. This covers residual demand, imports/exports, total renewable generation, and derived grid metrics (renewable share, OCGT ramp, forecast error). For the per-fuel-type generation breakdown, see Generation Mix.Use Cases
- Monitor the current state of the South African power grid
- Track renewable energy penetration over time
- Detect OCGT ramp events (indicators of grid stress)
- Build energy forecasting models with historical data
Intervals
| Interval | Description |
|---|---|
1h | Raw hourly readings from Eskom |
1d | Daily aggregation (averages, max ramp events) |
Data Fields (Hourly)
Each record in thedata array contains:
| Field | Unit | Description |
|---|---|---|
ts | ISO-8601 | Timestamp (UTC) |
residual_demand_mw | MW | System demand minus RE generation |
residual_forecast_mw | MW | Forecasted residual demand |
total_re_mw | MW | Total renewable generation |
imports_mw | MW | Power imports |
exports_mw | MW | Power exports |
net_import_mw | MW | Imports minus exports |
renewable_share_pct | % | Renewable % of total generation |
ocgt_ramp_mw | MW | Hour-over-hour OCGT change |
forecast_error_mw | MW | Actual minus forecast residual demand |
Authorizations
API key obtained from the Power Signals dashboard.
Query Parameters
End datetime in ISO-8601 format (e.g. 2026-01-02T00:00:00Z).
Data resolution. Defaults to 1h.
Available options:
1d, 1h Start datetime in ISO-8601 format (e.g. 2026-01-01T00:00:00Z).

