# ZA Grid Connection Queue Tracker (NTCSA GCCA) (`codeclouds/za-grid-connection-queue-tracker`) Actor

South Africa's remaining grid connection capacity per substation from the official NTCSA GCCA 2025 data — available MW, binding constraint, committed generation and supply-area limits. Filter by region, status and capacity. From $0.002/connection point, PPE.

- **URL**: https://apify.com/codeclouds/za-grid-connection-queue-tracker.md
- **Developed by:** [Dennis](https://apify.com/codeclouds) (community)
- **Categories:** Other, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ZA Grid Connection Queue Tracker (NTCSA GCCA)

Track **South Africa's remaining electricity grid connection capacity** per substation, straight from the
official NTCSA *Generation Connection Capacity Assessment (GCCA) 2025*. Instead of parsing the raw Excel
workbook and working out the binding network constraint yourself, this actor returns one clean record per
connection point with the **effective available capacity (MW)**, the **binding constraint**, committed
generation and the four published level limits — plus change detection between runs.

South Africa's grid is one of the most congested in the world: in GCCA 2025 the **Northern Cape, Western
Cape, Eastern Cape and Hydra Central** supply areas are fully depleted (0 MW remaining), and only about
**19.94 GW** remains across the other six supply areas. The best wind and solar regions have **no** capacity
left, so developers must look elsewhere — this actor shows exactly where.

### What it returns

- **Effective available capacity (MW)** per substation — the lowest of the four GCCA levels (substation,
  substation area, local area, supply area), which is the actual number a developer cares about.
- **Binding constraint** — which of the four network levels is limiting the connection point.
- **Committed generation (MW)** already contracted at the point, split by technology (wind, PV, CSP,
  dispatchable).
- **All four level limits (MW)** so you can see the full picture and re-derive anything yourself.
- **Connection status** — `available` (≥ 100 MW), `limited` (1–99 MW), `full` (0 MW), `unknown`.
- Transformer capacity, connection voltages and how many source rows were merged.
- **Change flags** (`isNewSinceLastRun`, `isChangedSinceLastRun`, `capacityDeltaMW`) driven by a persistent
  snapshot, so scheduled runs surface only what actually moved.
- A free **run summary** with totals, a per-supply-area breakdown and the top substations by available capacity.

### Data source and method

- **Source:** NTCSA *Generation Connection Capacity Assessment (GCCA) 2025* results workbook
  ([official file](https://www.ntcsa.co.za/wp-content/uploads/2024/06/GCCA_2025_Results_Report.xlsx),
  [GCCA portal](https://www.ntcsa.co.za/gcca/)).
- The actor resolves the current results workbook link from the GCCA portal on every run (so it survives the
  annual filename change) and falls back to the known URL if the portal is unreachable. The resolved URL is
  echoed in every record's `sourceUrl`.
- The GCCA states capacity at four levels and notes that *"the stated generation connection capacity is
  limited by the lowest capacity at all the levels"*. This actor applies exactly that rule.
- One source substation code can span several transformer-bank rows; the actor merges them (substation-level
  limit summed over the banks, the three higher levels taken as the maximum) into one record per connection point.
- The actor does **not** forecast or invent numbers. It only restructures and classifies the official data.
- Data is published annually; the current file is the GCCA 2025 assessment (with a NERSA-approved curtailment
  update published in November 2025). Change detection therefore typically reports a batch of movements once a year.

Sanity check: the committed generation summed across all connection points is ~19,411 MW (≈ 19.4 GW), which
matches the total reported in the GCCA 2025 document.

### Input

| Field | Type | Description |
|---|---|---|
| `supplyAreas` | array (select) | Optional filter on one or more of the 10 official supply areas. |
| `localAreas` | array (select) | Optional filter on one or more of the 34 official local areas. |
| `connectionStatus` | array (select) | Optional filter on `available`, `limited`, `full`, `unknown`. |
| `minAvailableCapacityMW` | number | Only substations with at least this much effective available capacity (MW). |
| `maxAvailableCapacityMW` | number | Only substations with at most this much effective available capacity (MW). |
| `onlyChangedSinceLastRun` | boolean | Default `true`. Deliver only new/changed substations after the baseline. Set to `false` for the full filtered snapshot on every run. |

#### Example inputs

Find large connection opportunities in KwaZulu-Natal and Gauteng:

```json
{ "supplyAreas": ["KwaZulu-Natal", "Gauteng"], "minAvailableCapacityMW": 500, "onlyChangedSinceLastRun": false }
```

Find every depleted connection point (useful for supply-area risk analysis):

```json
{ "connectionStatus": ["full"], "onlyChangedSinceLastRun": false }
```

### Output

One dataset item per connection point:

```json
{
  "recordType": "substation",
  "key": "KwaZulu-Natal|ATHEN4",
  "supplyArea": "KwaZulu-Natal",
  "localArea": "Empangeni",
  "substation": "ATHEN4",
  "substationName": "ATHENE",
  "connectionStatus": "available",
  "bindingConstraint": "substation",
  "availableCapacityMW": 1425,
  "substationLimitMW": 1425,
  "substationAreaLimitMW": 4000,
  "localAreaLimitMW": 3810,
  "supplyAreaLimitMW": 5500,
  "committedGenerationMW": 0,
  "committedWindMW": 0,
  "committedPvMW": 0,
  "committedCspMW": 0,
  "committedDispatchableMW": 0,
  "transformerCount": 4,
  "installedTransformerMVA": 2000,
  "connectionVoltages": ["400/132"],
  "sourceRowCount": 1,
  "isNewSinceLastRun": false,
  "isChangedSinceLastRun": false,
  "previousAvailableCapacityMW": null,
  "capacityDeltaMW": null,
  "source": "NTCSA Generation Connection Capacity Assessment (GCCA) 2025",
  "sourceUrl": "https://www.ntcsa.co.za/wp-content/uploads/2024/06/GCCA_2025_Results_Report.xlsx",
  "scrapedAt": "2026-10-01T05:51:19.896Z"
}
```

A single `recordType: "summary"` item is added at the end of each run with totals, `supplyAreas[]`,
`countByConnectionStatus` and `topSubstationsByAvailableCapacityMW[]`.

Two capacity totals are reported, and the distinction matters:

- `totalRemainingGridCapacityMW` — the **distinct** remaining transmission capacity across all supply areas
  (the sum of each area's published `Supply_Area_Limit`; ≈ 19,940 MW in GCCA 2025). This is the figure to quote.
- `sumOfConnectionPointAvailabilityMW` — the sum of per-connection-point availability. Area-level limits are
  **shared** between substations, so this deliberately over-counts and is **not** a portfolio total; use it only
  as a relative indicator. Each `supplyAreas[]` entry carries both `remainingSupplyAreaCapacityMW` (distinct)
  and `sumOfConnectionPointAvailabilityMW`.

### Use cases

- **Renewable-energy developers** – find the substations with the most remaining headroom before committing to a site.
- **Grid connection consultants** – screen a region and understand *why* a point is constrained.
- **Battery / data-centre investors** – identify substations where new load or storage can still connect.
- **Energy analysts** – track how GCCA capacity reallocates between the depleted Cape areas and the Free State, North West, Limpopo and Mpumalanga.
- **Agentic workflows** – expose grid-capacity screening as a tool for an AI assistant via Apify MCP.

### Pricing

Pay per event:

| Event | Price | When |
|---|---|---|
| `substation-record` | $0.002 | Per connection-point record delivered (after the free baseline run). |
| `capacity-change` | $0.01 | Extra, per record that is new or changed since the previous run. |

The very first run seeds the persistent baseline and is **free** (nothing is charged). With the default
`onlyChangedSinceLastRun: true`, later runs deliver and charge only what changed.

### Legal

NTCSA is a public entity and the GCCA data is publicly published. This actor only restructures and aggregates
non-personal infrastructure data — no personal data, no GDPR concerns. Users remain responsible for complying
with the NTCSA website terms when redistributing the underlying data.

### FAQ

**Why do so many substations show 0 MW?**
Because the Northern Cape, Western Cape, Eastern Cape and Hydra Central supply areas are fully allocated in
GCCA 2025. Those connection points are real, but not available for new generation.

**Is this per address or postcode?**
No. The GCCA is regional: capacity is published per substation / supply area, not per address. This actor
reflects that granularity honestly.

**What does `bindingConstraint` mean?**
The four GCCA levels each state a remaining capacity; the connection point is limited by the lowest one. The
actor reports that level (e.g. `substation` means the substation's own transformation capacity is the bottleneck,
while `supply_area` means the whole supply area is the bottleneck).

**How often is the data updated?**
The GCCA is an annual publication. Between editions, a scheduled run mostly confirms "no change".

### Keywords

South Africa grid capacity, NTCSA GCCA, Eskom grid connection queue, grid congestion South Africa,
netcongestie, renewable energy South Africa, wind connection capacity, solar PV grid capacity,
battery storage grid connection, supply area capacity, curtailment, wheeling, substation capacity,
Gauteng grid capacity, KwaZulu-Natal grid capacity, Limpopo grid capacity, Western Cape depleted.

### Related Actors

- [UK Grid Capacity Tracker (NESO TEC register)](https://apify.com/codeclouds/uk-netcongestie-grid-capacity-tracker) — the UK equivalent, from the official NESO TEC register.
- [NL Netcongestie Monitor](https://apify.com/codeclouds/nl-netcongestie-monitor) — the Dutch per-address grid-capacity monitor that started this portfolio.

### When should an AI agent use this?

1. "Which South African substations still have at least 500 MW of grid connection capacity?"
2. "Is there grid capacity available for a wind project in KwaZulu-Natal or Limpopo?"
3. "Show me all depleted connection points in the Western Cape supply area."
4. "How much committed generation is connected at the Athene substation, and what limits its remaining capacity?"
5. "What changed in South African grid connection capacity since the last check?"
6. "Compare remaining grid capacity across all ten NTCSA supply areas."

### Changelog

- **v0.1** — Initial release: NTCSA GCCA 2025 per-connection-point capacity, effective available capacity with
  binding constraint, technology split, supply-area summary, persistent change detection.

# Actor input Schema

## `supplyAreas` (type: `array`):

Optional filter on the official NTCSA supply area. Leave empty for all 10 supply areas. Northern Cape, Western Cape, Eastern Cape and Hydra Central are fully depleted in GCCA 2025.

## `localAreas` (type: `array`):

Optional filter on the official NTCSA local area (the substation cluster within a supply area). Leave empty for all 34 local areas.

## `connectionStatus` (type: `array`):

Optional filter on the derived availability status. available = 100 MW or more remaining; limited = 1-99 MW remaining; full = 0 MW remaining (depleted); unknown = no stated limit. Leave empty for all.

## `minAvailableCapacityMW` (type: `number`):

Only return substations whose effective remaining connection capacity is at least this many MW. This is the lowest of the four GCCA levels (substation, substation area, local area, supply area).

## `maxAvailableCapacityMW` (type: `number`):

Only return substations whose effective remaining connection capacity is at most this many MW.

## `onlyChangedSinceLastRun` (type: `boolean`):

Default true. When true, only substations that are new or whose available capacity / committed generation changed since the previous run are delivered. The first run of a fresh store still delivers the full filtered snapshot for free to seed the baseline; later runs deliver only the differences. Set to false to receive the full filtered snapshot on every run, with the change flags still attached.

## Actor input object example

```json
{
  "onlyChangedSinceLastRun": true
}
```

# Actor output Schema

## `results` (type: `string`):

Results stored in the default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codeclouds/za-grid-connection-queue-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("codeclouds/za-grid-connection-queue-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call codeclouds/za-grid-connection-queue-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codeclouds/za-grid-connection-queue-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MHUFAeorBB7h7iFGj/builds/KmcwbMWvpnfKRd5PE/openapi.json
