# Denmark and EU Electricity Spot Prices (`opendatadesk/eu-electricity-prices`) Actor

Day-ahead electricity prices per price area, from official Energinet data (CC BY 4.0) and, where the licence allows, Energy-Charts. Compact rows for home automation, LadeCoach, n8n and AI agents.

- **URL**: https://apify.com/opendatadesk/eu-electricity-prices.md
- **Developed by:** [Open Data Desk](https://apify.com/opendatadesk) (community)
- **Categories:** Automation, Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 price rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Denmark and EU Electricity Spot Prices

Day-ahead electricity prices per price area, as compact rows you can use in a spreadsheet, a home automation, LadeCoach, n8n or an AI agent.

The main source is Energi Data Service, the official open data portal of Energinet. Where that series has no rows for an area, the Actor can fall back to Energy-Charts, but only for bidding zones that Energy-Charts publishes under CC BY 4.0. Every row includes the licence and the attribution.

### What data do you get?

| Field | What it is |
| --- | --- |
| `timeUtc`, `timeLocal` | Start of the interval in UTC and in Danish time, when the source has it |
| `priceArea` | For example DK1, DK2, SE4, NO2, DE |
| `priceEurPerMwh`, `priceDkkPerMwh` | Day-ahead price. DKK is filled when Energinet publishes it |
| `resolution` | `PT15M` from October 2025, `PT1H` for older official hours |
| `source`, `dataset`, `license`, `attribution` | Where the row came from, and the credit line you should keep |
| `status` | `ok`, `unavailable` or `skipped_licence` |

#### Example output

One 15-minute interval from a test run of DK1 day-ahead prices.

```json
{
    "timeUtc": "2026-11-14T23:00:00",
    "timeLocal": "2026-11-15T00:00:00",
    "priceArea": "DK1",
    "priceEurPerMwh": 169.710007,
    "priceDkkPerMwh": 1268.684128,
    "currency": "EUR",
    "unit": "EUR/MWh",
    "resolution": "PT15M",
    "source": "energidataservice",
    "dataset": "DayAheadPrices",
    "license": "CC BY 4.0",
    "attribution": "Source: Energinet (www.energidataservice.dk)",
    "scrapedAt": "2026-11-16T14:55:09.349Z",
    "status": "ok"
}
```

### How to use it

1. Leave `Price areas` as DK1 and DK2, or add other official areas.
2. Set `Last N days`, or a from and to date.
3. Leave `Use Energy-Charts as a fallback` on if you also want a few other European zones that Energy-Charts publishes under CC BY 4.0.
4. Click Start and download the result.

### Sources, dates and licences

- **Energi Data Service** (default): Day-Ahead Prices from October 2025, at 15 minute resolution, and Elspot Prices for older hours. Licence: Creative Commons CC BY 4.0. Required credit, checked November 2026: "Source: Energinet (www.energidataservice.dk)" (https://energidataservice.dk/terms-and-conditions). Commercial use is allowed with that credit.
- **Energy-Charts** (fallback only): price data for a listed set of bidding zones is CC BY 4.0, with credit to Energy-Charts.info and the original publisher given in `license_info`. Checked November 2026 on https://api.energy-charts.info/. Zones outside that list are for private and internal use only. This Actor never requests those zones. If you ask for one and Energinet has no rows either, you get a row with status `skipped_licence`.

The official Energinet series changed in October 2025. You do not have to pick the dataset yourself. The Actor splits the date window for you.

### Nothing is silently dropped

If a price area has no rows, or cannot be read under the Energy-Charts licence, a row is still written with a status. If you hit `Max price rows`, the run summary tells you how many rows were left unread.

### How much does it cost?

You pay for each row that is written, including unavailable and skipped-licence rows. The price per 1,000 rows is shown at the top of this page, and you can set a maximum cost per run.

### Data source and legal

This Actor is not made by or connected to Energinet, Fraunhofer ISE or Bundesnetzagentur. You are responsible for keeping the attribution when you use or publish the data, and for not implying that those organisations endorse your use. The data is provided as it comes from the sources. It is a wholesale day-ahead price, not a household tariff.

### Issues and requests

If an area looks wrong or a timestamp is missing, please open an issue on the Issues tab with your input.

# Actor input Schema

## `priceAreas` (type: `array`):

For example DK1, DK2, SE4, NO2, DE. Defaults to DK1 and DK2. Areas with no official data are still written, with a status.

## `lastDays` (type: `integer`):

Used when From date is empty. Includes today.

## `fromDate` (type: `string`):

Format YYYY-MM-DD. Leave empty to use Last N days.

## `toDate` (type: `string`):

Format YYYY-MM-DD. Leave empty for today.

## `includeEnergyCharts` (type: `boolean`):

If Energi Data Service has no rows for an area, try Energy-Charts, but only for bidding zones published under CC BY 4.0. Attribution is included on every row.

## `maxItems` (type: `integer`):

Stops after this many price rows. The run summary says how many were left unread.

## Actor input object example

```json
{
  "priceAreas": [
    "DK1",
    "DK2"
  ],
  "lastDays": 2,
  "includeEnergyCharts": true,
  "maxItems": 200
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset of price intervals. Each item is one time period in one price area.

## `summary` (type: `string`):

A short JSON summary of the run, including counts.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "priceAreas": [
        "DK1",
        "DK2"
    ],
    "lastDays": 2,
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("opendatadesk/eu-electricity-prices").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "priceAreas": [
        "DK1",
        "DK2",
    ],
    "lastDays": 2,
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("opendatadesk/eu-electricity-prices").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "priceAreas": [
    "DK1",
    "DK2"
  ],
  "lastDays": 2,
  "maxItems": 200
}' |
apify call opendatadesk/eu-electricity-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,opendatadesk/eu-electricity-prices"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/SpRqY4nLckzZx3s3G/builds/ydU232dBkewcNqyCp/openapi.json
