# Strommarkt Deutschland (SMARD) (`maxx_83/smard-strommarkt-daten`) Actor

Strompreise, Stromverbrauch und Stromerzeugung nach Energieträger aus den Marktdaten von SMARD (Bundesnetzagentur), stündlich oder viertelstündlich, als saubere Tabelle.

- **URL**: https://apify.com/maxx_83/smard-strommarkt-daten.md
- **Developed by:** [Max Otto](https://apify.com/maxx_83) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 zeiles

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

## Strommarkt Deutschland (SMARD)

Dieser Actor liefert Daten aus den Marktdaten von SMARD, dem Strommarktportal der Bundesnetzagentur: Großhandelspreis (Day-Ahead), Stromverbrauch, Residuallast und Stromerzeugung nach Energieträger (Solar, Wind, Braunkohle, Erdgas und weitere). Du bekommst eine saubere Tabelle als JSON, CSV oder Excel, stündlich, viertelstündlich oder aggregiert nach Tag, Woche, Monat oder Jahr.

### Wofür

- Auswertungen und Berichte zu Strompreisen und Erzeugung
- Dashboards und Prognosemodelle für Energieverbrauch und Lastverschiebung
- Studien und Journalismus mit aktuellen Zahlen

### Eingabe

| Feld | Bedeutung |
|---|---|
| `datasets` | Liste von Kennzahlen: `price`, `load`, `residualLoad`, `genSolar`, `genWindOnshore`, `genWindOffshore`, `genLignite`, `genHardCoal`, `genGas`, `genBiomass`, `genHydro`, `genNuclear`, `genPumpedStorage`, `genOtherConventional`, `genOtherRenewable`, `pumpedStorageConsumption` |
| `region` | `DE`, `AT`, `LU`, `DE-LU`, `AT-LU` oder ein Übertragungsnetzbetreiber (`50Hertz`, `Amprion`, `TenneT`, `TransnetBW`) |
| `resolution` | `quarterhour`, `hour`, `day`, `week`, `month`, `year` |
| `from`, `to` | Zeitraum, z. B. `2026-10-01`. Ohne Angabe: die letzten 7 Tage |
| `format` | `wide` = eine Spalte je Kennzahl, `long` = eine Zeile je Kennzahl |
| `maxItems` | Begrenzt Ergebnisse und Kosten |

### Ausgabe (Auszug, Format `wide`)

```json
{
  "timestamp": "2026-10-09T22:00:00.000Z",
  "timestampBerlin": "2026-10-10 00:00:00",
  "resolution": "hour",
  "price": 177.03,
  "priceRegion": "DE-LU",
  "load": 41230.5,
  "loadRegion": "DE"
}
```

Preise sind in EUR/MWh, alle anderen Werte in MWh pro Zeitintervall.

### Hinweise

- **Datenquelle:** Bundesnetzagentur | SMARD.de, Marktdaten, Lizenz CC BY 4.0. Bei Weiterverwendung nenne bitte die Quelle „Bundesnetzagentur | SMARD.de“.
- **Preis:** Der Großhandelspreis gilt für die Gebotszone Deutschland/Luxemburg (DE-LU). Wählst du für `price` die Region `DE`, nutzt der Actor automatisch `DE-LU`.
- **Verfügbarkeit:** Nicht jede Kennzahl gibt es für jede Region und Auflösung. Fehlende Kombinationen werden im Lauf gemeldet und ausgelassen.
- **Keine Gewähr:** Die Bundesnetzagentur übernimmt keine Gewähr für Richtigkeit und Vollständigkeit. Dieser Actor ist ein unabhängiges Angebot und steht in keiner Verbindung zur Bundesnetzagentur.

# Actor input Schema

## `datasets` (type: `array`):

Welche Kennzahlen geliefert werden. Gültige Werte: price, load, residualLoad, pumpedStorageConsumption, genLignite, genNuclear, genWindOffshore, genHydro, genOtherConventional, genOtherRenewable, genBiomass, genWindOnshore, genSolar, genHardCoal, genPumpedStorage, genGas.

## `region` (type: `string`):

Gebiet: ganz Deutschland (DE), Österreich (AT), Luxemburg (LU) oder einer der vier Übertragungsnetzbetreiber. Der Preis gilt für die Gebotszone DE-LU.

## `resolution` (type: `string`):

Zeitliche Auflösung: Viertelstunde, Stunde, Tag, Woche, Monat oder Jahr. Nicht jede Kennzahl gibt es in jeder Auflösung.

## `from` (type: `string`):

Beginn des Zeitraums, zum Beispiel 2026-10-01 oder 2026-10-01T00:00:00Z. Leer = 7 Tage vor 'Bis'.

## `to` (type: `string`):

Ende des Zeitraums. Leer = jetzt.

## `format` (type: `string`):

'wide' = eine Zeile je Zeitpunkt mit einer Spalte je Kennzahl. 'long' = eine Zeile je Zeitpunkt und Kennzahl.

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

Begrenzt die Anzahl der gelieferten Zeilen (und der Kosten).

## Actor input object example

```json
{
  "datasets": [
    "price",
    "load",
    "genSolar",
    "genWindOnshore"
  ],
  "region": "DE",
  "resolution": "hour",
  "format": "wide",
  "maxItems": 2000
}
```

# Actor output Schema

## `overview` (type: `string`):

Die gelieferten Datensätze in der Übersichtsansicht.

## `items` (type: `string`):

Die gelieferten Datensätze mit allen Feldern.

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

Stand der Daten, Quelle und Anzahl der Ergebnisse.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("maxx_83/smard-strommarkt-daten").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("maxx_83/smard-strommarkt-daten").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 '{}' |
apify call maxx_83/smard-strommarkt-daten --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maxx_83/smard-strommarkt-daten"
        }
    }
}
```

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/rRIl7Ip9K9Z1s2reo/builds/M9dm6GnBikh98cvxc/openapi.json
