# DK1 spot prices in one API call

29 November 2026 · Energy data · by Steen Kramer Jensen, sysapp ApS · https://www.sysapp.dk/notes/dk1-spot-prices-in-one-api-call.html

> How to fetch day-ahead prices for western Denmark from the sysapp energy API, and the four details that trip people up – quarter-hour rows, time zones, strings and units.

The day-ahead spot price for western Denmark (DK1) is one request away. No key, no sign-up:

```
curl "https://api.sysapp.dk/api_energinet_prices.php?area=DK1&startdate=2026-11-29"
```

The answer is JSON with `status`, `meta` and `data`. One row looks like this:

```
{
  "hour_utc": "2026-11-28 23:00:00",
  "hour_dk": "2026-11-29 00:00:00",
  "price_area": "DK1",
  "spot_price_dkk": "1178.602468",
  "spot_price_eur": "157.70"
}
```

For yesterday and tomorrow in one call, set `startdate` to yesterday and `enddate` to tomorrow. Tomorrow's prices are there once the day-ahead auction has been published, in the early afternoon Danish time.

## Four things to watch for

**There are four rows per hour.** Since 1 October 2025 the day-ahead market runs in 15-minute steps, so a normal day has 96 rows, not 24. If you want an hourly price, average the four.

**There are two time columns.** `hour_dk` is Danish local time, `hour_utc` is UTC. Use `hour_utc` as your key. On the day the clocks go back in October, one local hour happens twice, and anything keyed on local time silently loses or doubles data.

**Prices are strings in DKK and EUR per MWh.** The API delivers exact decimals as strings to keep their precision. Convert them yourself, and divide by 1000 to get a price per kWh. It is the raw spot price: grid tariffs, taxes and VAT are not included.

**Say which area you want.** Without `area` you get DK1 and DK2 together. Five other areas are available: DK2, DE, NO2, SE3 and SE4.

## Hourly prices in a few lines of Python

```python
import requests
from collections import defaultdict

r = requests.get("https://api.sysapp.dk/api_energinet_prices.php",
                 params={"area": "DK1", "startdate": "2026-11-29"})

hours = defaultdict(list)
for row in r.json()["data"]:
    hours[row["hour_utc"][:13]].append(float(row["spot_price_dkk"]))

for hour, prices in sorted(hours.items()):
    print(hour, round(sum(prices) / len(prices) / 1000, 2), "DKK/kWh")
```

The response holds at most 1000 rows by default. For longer periods, raise `limit` or page with `offset`; `meta.has_more` tells you whether there is more.

The same data is available to AI assistants through the public MCP server. All parameters are in the [API documentation](/docs.html#api_energinet_prices).

---
The first draft of this note was written by AI (Claude) from Steen's own notes and project material. Steen Kramer Jensen edited and approved it before it was published.
