---
title: "Public Power Forecast"
method: GET
path: "/public_power_forecast"
tags: ["power"]
---

# Public Power Forecast

`GET /public_power_forecast`

## Request

- Base URL: `https://api.energy-charts.info` (the document declares no server; this is the origin it was published from)
- URL: `https://api.energy-charts.info/public_power_forecast`
- Auth: none declared
- TypeScript: <https://skmtc.dev/energy-charts/apis/energy-charts-api/docs/public_power_forecast/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the forecast of the public net electricity production in Megawatt (MW) for a given country for each production type.
    


    

<b>production_type:</b> Can be solar, wind_onshore, wind_offshore or load
    <br><b>forecast_type:</b> Can be current, intraday or day-ahead
    


    

If no dates are provided, values for today until forecast is available are returned. For load only the forecast type "day-ahead" is available.
    


    

Response schema:
    

 ```json
{
  "unix_seconds": list[int],
  "forecast_values": list[float],
  "production_type": str,
  "forecast_type": str,
  "deprecated": bool
}
```

## Query parameters

- `country` string
- `production_type` string
- `forecast_type` string
- `start` string
- `end` string

## Response `200`

Successful Response

- PublicPowerForecastModel
  - `unix_seconds` integer[], required
  - `forecast_values` number[], required
  - `production_type` string, required
  - `forecast_type` string, required
  - `deprecated` boolean, required

## Other responses

- `422`: Validation Error

## Changes

- **2025-05-06** `63bae0186e06`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/energy-charts/apis/energy-charts-api/changes/public_power_forecast/get.md)

---

[API](https://skmtc.dev/energy-charts/apis/energy-charts-api.md) - [All operations](https://skmtc.dev/energy-charts/apis/energy-charts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/energy-charts/apis/energy-charts-api/revisions/523d3ec0fd82?raw)
