API
Nameplate data in your stack.
Two doors. The open one serves, with no key, the same files the site publishes: for research, press and any system. The partner one serves each organization’s surplus windows, loads and impact, by key, for those who run flexible load.
- Openno key · CC-BY
- Partnerskey per organization
- FormatJSON · CSV
- Updatestwice a day
The open API
It is the site itself. Every file below is regenerated on each pipeline load, twice a day, served by the CDN and read by Nameplate’s own pages. No sign-up or key; use is free with attribution (CC-BY), like the ONS data everything comes from.
Base address: https://nameplate.com.br
| File | What it holds |
|---|---|
/contador.json | Year-to-date curtailment in MWh and in reais, the recent rate and the latest ONS data. Fields |
/previsao.json | The half-hourly curtailment forecast, with the P10–P90 band and each horizon’s typical error. Fields |
/historico-acuracia.json | Forecast against actual, day by day, since the forecast went live. Fields |
/usinas.json | The year’s curtailment per plant and cluster, with name, state and source. Fields |
/saude.json | Ingestion health: how recent the data is and how many loads arrived this week. Fields |
/serie-diaria.csv | Each day’s curtailment this year across the whole system. Fields |
/serie-diaria-usinas.csv | Each day’s curtailment this year per plant and cluster. Fields |
/corte-meia-hora.csv | Realized curtailment for each half-hour of the last 35 days, system-wide and in the Northeast. Fields |
/previsao-arquivo.csv | The last forecast published before each half-hour of the last 60 days, with realized curtailment alongside. Fields |
/pld-horario.csv | CCEE hourly PLD for the last 120 days, by submarket, in R$/MWh. Fields |
/cargas.csv | Each pipeline load: when it ran and how recent the data was. Fields |
curl https://nameplate.com.br/contador.json
# Python, só a biblioteca padrão
import json, urllib.request
previsao = json.load(urllib.request.urlopen("https://nameplate.com.br/previsao.json"))
print(previsao["dado_ate"], previsao["mae_30d_mw"])Each file’s fields are locked by tests on both sides (producer and reader). A field or criteria change goes first as a dated note in the Methodology and the changelog; previsao.json carries a schema_version. Methodology · Changelog
The partner API
It comes with the partner app and reads the same data as the organization’s screens. Every request carries a key in the header; the key is created in the app, on the Integration page, shows once and is stored only as a hash. There are two scopes: read, to take windows, loads and impact to another system, and agent, for the program that switches loads on and off.
Base address: https://app.nameplate.com.br/v1
curl -H "Authorization: Bearer npk_..." \
https://app.nameplate.com.br/v1/janelasThe current forecast for the organization: the threshold in use, the surplus windows ahead, each with the confidence the uncertainty band supports, and the forecast half-hours.
{
"regiao": "SIN",
"snapshot_at": "2026-10-20T15:35:12-03:00",
"dado_ate": "2026-10-19T23:30:00-03:00",
"limiar_mw": 5039,
"erro_tipico_mw": { "d1": 2318, "d2": 3373, "d3": 3731 },
"janelas": [
{
"inicio": "2026-10-21T07:30:00-03:00",
"fim": "2026-10-21T15:00:00-03:00",
"confianca": "media",
"picoMw": 9802,
"mwh": 58472
}
],
"previsao": [
{ "instante": "2026-10-21T07:30:00-03:00", "previsto_mw": 5210, "p10_mw": 1840, "p90_mw": 9120 }
]
}The organization’s loads, the state the plan sets now, the reason, and the agent’s latest reading.
{
"gerado_em": "2026-10-21T10:00:00.000Z",
"cargas": [
{
"id": "5e6ca826-…",
"nome": "Lote noturno",
"potencia_kw": 120,
"politica": "so_em_janela",
"estado_desejado": "rodando",
"motivo": "janela_media",
"ultima_leitura": "2026-10-21T09:45:00.000Z",
"ultimo_estado_medido": "rodando",
"kwh_24h": 812.5
}
]
}The impact totals for the period (mes, 30d or anterior), with measured and estimated in separate blocks, and the method behind each estimate.
{
"periodo": "mes",
"limiar_mw": 5039,
"medido": {
"kwh": 18240.0,
"kwh_janela_prevista": 15320.0,
"kwh_sobra_confirmada": 14110.0,
"kwh_fora_de_sobra": 2380.0,
"kwh_pendente": 1750.0
},
"estimativas": {
"emissoes_tco2": 0.41,
"metodo_emissoes": "fator médio mensal do SIN (MCTI) × MWh em sobra confirmada",
"economia_rs": null,
"diferenca_preco_declarada_rs_mwh": null
}
}What each load should do now and the schedule for the next six hours. The agent asks every 60 seconds and, without network, follows the schedule until it expires and then the load’s default state.
{
"gerado_em": "2026-10-21T10:00:00.000Z",
"valido_ate": "2026-10-21T16:00:00.000Z",
"intervalo_consulta_s": 60,
"cargas": [
{
"id": "5e6ca826-…",
"nome": "Lote noturno",
"estado_desejado": "rodando",
"motivo": "janela_media",
"estado_padrao": "pausada",
"agenda": [
{ "inicio": "2026-10-21T10:00:00.000Z", "fim": "2026-10-21T18:00:00.000Z", "estado": "rodando" }
]
}
]
}Each load’s energy per interval (1 to 60 minutes), with a batch id. Resending the same interval does not duplicate; a clock more than five minutes off is refused.
// pedido
{
"lote": "rack-0001",
"agente": { "versao": "0.1.0", "hora_local": "2026-10-21T13:00:00Z" },
"leituras": [
{
"carga": "5e6ca826-…",
"inicio": "2026-10-21T12:45:00Z",
"fim": "2026-10-21T13:00:00Z",
"kwh": 1.25,
"estado_medido": "rodando"
}
]
}
// resposta
{ "aceitas": 1, "repetidas": 0 }Errors
Every error comes as JSON with a stable code, so the partner’s system knows what to fix without parsing prose: {"erro": "relogio"}
| HTTP | Code | What it means |
|---|---|---|
| 401 | chave_invalida | Key missing, revoked or of another scope. |
| 400 | corpo | The body is not JSON or does not have the contract’s shape. |
| 400 | lote | The batch id is missing or longer than 100 characters. |
| 400 | leitura | A reading is for an unknown load, has an interval outside 1 to 60 minutes, ends in the future or has negative energy. |
| 400 | muitas_leituras | More than 1,000 readings in one batch. |
| 409 | relogio | The agent’s clock is more than five minutes off. Fix NTP and resend. |
| 503 | sem_previsao | The forecast has not been read yet. Try again on the next run. |
Versions and changes
- The partner API lives under /v1. A breaking change gets a new path and a changelog notice first; /v1 stays up during the transition.
- New fields may appear without notice: the partner’s system should ignore what it does not know.
- Organization alerts arrive by signed webhook, documented on the alerts page. Webhooks
Access
The open API is everyone’s, now. The partner API comes with the app; integration guides are in the documentation. Documentation · For partners
Talk to the team