Examples
Examples for entsoe-api-client can be found in the main/examples directory of the GitHub repository.
Notable Examples:
spot-prices-today.js- Basic price document queryinggeneration-per-unit.js- Generation data aggregationcurve-type-a03.js- Demonstrates A03 curve type supportforward-fill-a03.js- Shows automatic forward fill functionality for variable sized blocks
To run the examples, pass your ENTSO-e API key as an environment variable called API_TOKEN.
Deno
Powershell
$env:API_TOKEN="your-api-token"; deno run -A .\spot-prices-today.ts
Bash
API_TOKEN="your-api-token" deno run -A .\spot-prices-today.ts
Node
Powershell
$env:API_TOKEN="your-api-token"; node .\spot-prices-today.ts
Bash
API_TOKEN="your-api-token" node .\spot-prices-today.ts