---
title: "Total Power"
method: GET
path: "/total_power"
tags: ["power"]
---

# Total Power

`GET /total_power`

## 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/total_power`
- Auth: none declared
- TypeScript: <https://skmtc.dev/energy-charts/apis/energy-charts-api/docs/total_power/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the total net electricity production (including industrial self supply) in Megawatt (MW) for a given country for each production type.
    


    

Currently only available for Germany.
    


    

Response schema:
    

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

## Query parameters

- `country` string
- `start` string
- `end` 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

## Changes

- **2025-05-06** `63bae0186e06`: 4 breaking, 3 info
  - for the `query` request parameter `end`, default value was changed from `2023-01-01T23:45+01:00` to ``
  - for the `query` request parameter `start`, default value was changed from `2023-01-01T00:00+01:00` to ``
  - response property `production_types` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `unix_seconds` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - …3 more

[Operation history](https://skmtc.dev/energy-charts/apis/energy-charts-api/changes/total_power/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)
