openapi: 3.1.0 info: title: Energy-Charts import_export API description: "\n \n\n

Timestamp Format Options

\n

When specifying timestamps, you can choose from the following three formats:

\n
    \n
  1. ISO 8601 Format:\n \n
  2. \n
  3. Daily Format:\n \n
  4. \n
  5. UNIX Timestamp:\n \n
  6. \n
\n

Default Behavior for Timestamps

\n

If an end timestamp is not explicitly provided, it is assumed to be the same as the start timestamp. For daily formats, this means that one full day will be returned. If also no start timestamp is provided, the current day in the local timezone is used.

\n

Discontinuation of endpoints

\n

Endpoint discontinuations will be preceded by an announcement at least six months in advance, indicated by setting the \"deprecated\" status to true.

\n

Data License

\n

Unless stated otherwise, the data provided by the Energy-Charts API is licensed under the CC BY 4.0 license. Proper attribution to Energy-Charts.info as the source is required.

\n
\n New in release v1.5 (2025-10-21)\n \n
\n
\n Older Releases \n
\n v1.4 (2024-07-08)\n \n
\n
\n v1.3 (2024-04-22)\n \n
\n
\n v1.2 (2024-04-16)\n \n
\n
\n v1.1 (2023-10-20)\n \n
\n
\n v1.0 (2022-11-30)\n \n
\n
\n \n\nAvailable countries:\n \n\n
de - Germany (click to show all available countries)\n ch - Switzerland
\n eu - European Union
\n all - Europe
\n al - Albania
\n am - Armenia
\n at - Austria
\n az - Azerbaijan
\n ba - Bosnia-Herzegovina
\n be - Belgium
\n bg - Bulgaria
\n by - Belarus
\n cy - Cyprus
\n cz - Czech Republic
\n dk - Denmark
\n ee - Estonia
\n es - Spain
\n fi - Finland
\n fr - France
\n ge - Georgia
\n gr - Greece
\n hr - Croatia
\n hu - Hungary
\n ie - Ireland
\n it - Italy
\n lt - Lithuania
\n lu - Luxembourg
\n lv - Latvia
\n md - Moldova
\n me - Montenegro
\n mk - North Macedonia
\n mt - Malta
\n nie - North Ireland
\n nl - Netherlands
\n no - Norway
\n pl - Poland
\n pt - Portugal
\n ro - Romania
\n rs - Serbia
\n ru - Russia
\n se - Sweden
\n si - Slovenia
\n sk - Slovak Republic
\n tr - Turkey
\n ua - Ukraine
\n uk - United Kingdom
\n xk - Kosovo
\n
\n \n\nAvailable bidding zones:\n \n\n
AT - Austria (click to show all available bidding zones)\n BE - Belgium
\n BG - Bulgaria
\n CH - Switzerland
\n CZ - Czech Republic
\n DE-LU - Germany, Luxembourg
\n DE-AT-LU - Germany, Austria, Luxembourg
\n DK1 - Denmark 1
\n DK2 - Denmark 2
\n EE - Estionia
\n ES - Spain
\n FI - Finland
\n FR - France
\n GR - Greece
\n HR - Croatia
\n HU - Hungary
\n IT-Calabria - Italy Calabria
\n IT-Centre-North - Italy Centre North
\n IT-Centre-South - Italy Centre South
\n IT-North - Italy North
\n IT-SACOAC - Italy Sardinia Corsica AC
\n IT-SACODC - Italy Sardinia Corsica DC
\n IT-Sardinia - Italy Sardinia
\n IT-Sicily - Italy Sicily
\n IT-South - Italy South
\n LT - Lithuania
\n LV - Latvia
\n ME - Montenegro
\n NL - Netherlands
\n NO1 - Norway 1
\n NO2 - Norway 2
\n NO2NSL - Norway North Sea Link
\n NO3 - Norway 3
\n NO4 - Norway 4
\n NO5 - Norway 5
\n PL - Poland
\n PT - Portugal
\n RO - Romania
\n RS - Serbia
\n SE1 - Sweden 1
\n SE2 - Sweden 2
\n SE3 - Sweden 3
\n SE4 - Sweden 4
\n SI - Slovenia
\n SK - Slovakia
\n
\n \n\nHint: Don't use the Try it out button on this documentation page to download large datasets as it might lead to long loading times.\n " termsOfService: https://energy-charts.info/data-protection.html contact: name: Contact url: https://energy-charts.info/contact.html license: name: Publishing notes url: https://energy-charts.info/publishing-notes.html version: '1.5' tags: - name: import_export description: Import/export values paths: /cbet: get: tags: - import_export summary: Cross Border Electricity Trading description: "Returns the cross-border electricity trading (cbet) in GW between a specified country and its neighbors.\n \n\nPositive values indicate an import of electricity, whereas negative values show electricity exports.\n \n\n\n \n\nResponse schema:\n \n\n```json\n{\n \"unix_seconds\": [int],\n \"countries\": [\n {\n \"name\": str,\n \"data\": [float]\n }\n ],\n \"deprecated\": bool\n}\n```" operationId: cross_border_electricity_trading_cbet_get parameters: - name: country in: query required: false schema: type: string default: de title: Country - name: start in: query required: false schema: type: string default: '' title: Start - name: end in: query required: false schema: type: string default: '' title: End responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CrossBorderModel' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /cbpf: get: tags: - import_export summary: Cross Border Physical Flows description: "Returns the cross-border physical flows (cbpfs) of electricity in GW between a specified country and its neighbors.\n \n\nPositive values indicate an import of electricity, whereas negative values show electricity exports.\n \n\n\n \n\nResponse schema:\n \n\n```json\n{\n \"unix_seconds\": [int],\n \"countries\": [\n {\n \"name\": str,\n \"data\": [float]\n }\n ],\n \"deprecated\": bool\n}\n```" operationId: cross_border_physical_flows_cbpf_get parameters: - name: country in: query required: false schema: type: string default: de title: Country - name: start in: query required: false schema: type: string default: '' title: Start - name: end in: query required: false schema: type: string default: '' title: End responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CrossBorderModel' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' components: schemas: NamedData: properties: name: type: string title: Name data: items: anyOf: - type: number - type: 'null' type: array title: Data type: object required: - name - data title: NamedData CrossBorderModel: properties: unix_seconds: anyOf: - items: type: integer type: array - type: 'null' title: Unix Seconds countries: anyOf: - items: $ref: '#/components/schemas/NamedData' type: array - type: 'null' title: Countries deprecated: type: boolean title: Deprecated type: object required: - deprecated title: CrossBorderModel ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type type: object required: - loc - msg - type title: ValidationError HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError