# Octopus Energy API

Quelle: https://docs.evcc.io/de/tariffs/octopus-energy-api

Den API-Key bekommst du im Octopus Portal: [octopus.energy](https://octopus.energy/dashboard/new/accounts/personal-details/api-access)

Unterstützte Funktionen: Vereinigtes Königreich

## Parameter

| Name | Beschreibung | Standard / Beispiel | |
| --- | --- | --- | --- |
| apiKey | API Key |  |  |
| accountNumber | Kundennummer Nur erforderlich, wenn mehrere Konten vorhanden sind. | X-XXXXXXXX |  |
| tariffDirection | The tariff flow direction to query from Octopus. Set to 'export' when using feedin: (import, export) | import |  |

## Konfigurationsbeispiel für evcc.yaml

```yaml
tariffs:
    grid:
      type: template
      template: octopus-api
      apiKey: # API Key
      accountNumber: X-XXXXXXXX # Kundennummer, Nur erforderlich, wenn mehrere Konten vorhanden sind. (optional)
      tariffDirection: import # The tariff flow direction to query from Octopus., Set to 'export' when using feedin: [import, export] (optional)
```
