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

# Public Power

`GET /public_power`

Returns the public net electricity production in Megawatt (MW) for a given country for each production type. Subtype can be "solarlog" for Switzerland (ch).
    


    

Response schema:
    

 ```json
{
  "unix_seconds": list[int],
  "production_types": [
    {
        "name": str,
        "data": list[float]
    }
  ],
  "deprecated": bool
}
```

## Query parameters

- `country` string
- `start` string
- `end` string
- `subtype` string

## Response `200`

Successful Response

- ProductionModel
  - `unix_seconds` integer[], nullable
  - `production_types` NamedData[], nullable
    - `name` string, required
    - `data` number[], required
  - `deprecated` boolean, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/energy-charts/apis/energy-charts-api.md) · [All operations](https://skmtc.net/energy-charts/apis/energy-charts-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/energy-charts/energy-charts-api/versions/ebf9e22a0925/schema)
