# Brazil Wind & Solar Curtailment (ONS) - Lost MWh by Plant (`kman-br/brazil-wind-solar-curtailment-ons`) Actor

Curtailment (constrained-off) of every wind & solar plant dispatched by ONS in Brazil: generated vs. possible MWh, curtailed MWh and %, hours under restriction by reason (reliability, external unavailability, oversupply) and systemic vs. local origin. Per plant, day, state or subsystem.

- **URL**: https://apify.com/kman-br/brazil-wind-solar-curtailment-ons.md
- **Developed by:** [Kman](https://apify.com/kman-br) (community)
- **Categories:** Business, Developer tools
- **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

## Brazil Wind & Solar Curtailment (ONS) - Lost MWh by Plant

**EN** · [PT-BR abaixo](#pt-br)

Curtailment is now the biggest risk for wind and solar in Brazil: in late 2026 roughly one in five possible MWh was cut by the grid operator. ONS publishes every half hour of every plant as raw CSV files of 40+ MB per month. This Actor reads them for you and returns clean, aggregated numbers:

- **Per plant**: generated MWh, possible MWh (generated + curtailed), **curtailed MWh and %**, hours under restriction, average availability (MW), connection point and operating company.
- **Reason**: reliability (REL), external unavailability (CNF, e.g. transmission) and energy oversupply (ENE).
- **Origin**: systemic vs. local restriction.
- **Granularity**: plant x month, plant x day, state x month, subsystem x month.
- Filters: wind/solar, months, states, subsystems, plant name or ONS id, operator, minimum curtailed MWh.

Built for renewable developers and asset owners, energy traders, lenders and insurers, consultancies, PPA buyers, equipment makers and energy journalists.

### Input

```json
{ "fontes": ["eolica", "solar"], "meses": ["2026-10"], "granularidade": "usina_mes", "estados": ["RN", "BA"], "minCurtailmentMWh": 1000 }
```

### Output (real row, Oct/2026)

```json
{ "fonte": "eolica", "periodo": "2026-10", "subsistema": "NE", "estado": "RN", "usina": "Conj. Caju", "id_ons": "CJU_RNCAJ1", "agente_operador": "AUREN OPERAÇÕES", "geracao_mwh": 197873.5, "geracao_possivel_mwh": 299612.3, "curtailment_mwh": 101738.8, "curtailment_pct": 33.96, "horas_com_restricao": 546.4, "curtailment_por_razao_mwh": { "confiabilidade_eletrica": 10119.1, "indisponibilidade_externa": 56301.9, "razao_energetica": 35317.8 }, "curtailment_sistemico_mwh": 35525.0, "curtailment_local_mwh": 66213.8 }
```

`RUN_SUMMARY` lists the files read and the total curtailed MWh and % for your filter.

### Method

Each ONS row is a 30-minute average in MW. Curtailed energy = ONS "geração não realizada apurada" x 0.5 h (or reference minus generation when ONS has not yet audited it). Possible energy = generation + curtailment. The current month is partial and updated daily by ONS.

### Pricing (pay per event)

- US$ 0.02 per run
- US$ 0.003 per row (one plant x month = one row; all ~240 plants in a month ≈ US$ 0.74)

### Source and licence

ONS - Operador Nacional do Sistema Elétrico, *Restrição de operação por constrained-off de usinas eólicas / fotovoltaicas*, https://dados.ons.org.br, **CC-BY 4.0**. Plants and companies only, no personal data. Not affiliated with ONS.

***

### PT-BR

**Curtailment (constrained-off) de usinas eólicas e solares** do SIN, direto dos dados abertos do ONS, sem baixar e tratar CSVs de 40 MB.

- Por usina: geração verificada, geração possível, **MWh cortados e %**, horas com restrição, disponibilidade média, ponto de conexão e agente operador.
- Por razão (confiabilidade elétrica, indisponibilidade externa, razão energética) e origem (sistêmica ou local).
- Usina x mês, usina x dia, estado x mês ou subsistema x mês; filtros por fonte, mês, UF, subsistema, usina, agente e corte mínimo.
- Preço: US$ 0,02 por execução + US$ 0,003 por linha.
- Fonte: ONS, licença CC-BY 4.0. Sem dado pessoal.

# Actor input Schema

## `fontes` (type: `array`):

Wind, solar or both.

## `meses` (type: `array`):

Specific months, e.g. 2026-10. Empty = most recent months (see below). Max 12.

## `ultimosMeses` (type: `integer`):

Used when 'Months' is empty. Counts the current (partial) month.

## `incluirMesCorrente` (type: `boolean`):

The current month is partial (ONS updates it daily).

## `granularidade` (type: `string`):

Aggregation level of each output row.

## `estados` (type: `array`):

e.g. RN, BA, CE, PI. Empty = all.

## `subsistemas` (type: `array`):

N, NE, SE, S. Empty = all.

## `usinas` (type: `array`):

Part of the plant name, ONS id (e.g. CJU_RNCAJ1) or CEG.

## `agentes` (type: `array`):

Part of the operating company name, e.g. ENGIE, AUREN.

## `minCurtailmentMWh` (type: `number`):

Only rows with at least this curtailed energy.

## `maxItems` (type: `integer`):

Cap on charged rows.

## Actor input object example

```json
{
  "fontes": [
    "eolica",
    "solar"
  ],
  "meses": [
    "2026-10"
  ],
  "ultimosMeses": 2,
  "incluirMesCorrente": true,
  "granularidade": "usina_mes",
  "minCurtailmentMWh": 0,
  "maxItems": 1000
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

RUN_SUMMARY: files read, total curtailed MWh and %, charged events.

# 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 = {
    "meses": [
        "2026-10"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kman-br/brazil-wind-solar-curtailment-ons").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 = { "meses": ["2026-10"] }

# Run the Actor and wait for it to finish
run = client.actor("kman-br/brazil-wind-solar-curtailment-ons").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 '{
  "meses": [
    "2026-10"
  ]
}' |
apify call kman-br/brazil-wind-solar-curtailment-ons --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kman-br/brazil-wind-solar-curtailment-ons"
        }
    }
}
```

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/Pgjl0ETTxf0ouqrek/builds/AAcgKAXQSvlU09USV/openapi.json
