# Marktstammdatenregister (MaStR) Export – Solar, Wind, Battery (`nordlicht/mastr-energy-assets`) Actor

Export new solar (PV), wind and battery storage units from the German Marktstammdatenregister (MaStR): kW, dates, postcode, grid operator and company operator. Solar and battery leads by Bundesland and size. Private persons anonymised. $1.50 per 1,000.

- **URL**: https://apify.com/nordlicht/mastr-energy-assets.md
- **Developed by:** [Nordlicht Data](https://apify.com/nordlicht) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 energy units

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

## Marktstammdatenregister (MaStR) Export – Solar, Wind & Battery Units

**Export new solar (Photovoltaik), wind and battery storage units from the German Marktstammdatenregister (MaStR) as JSON, CSV or Excel.** The Actor queries the public register of the Bundesnetzagentur and returns one clean row per unit: capacity in kW, status, commissioning and registration dates, location, grid operator, technical details and, for companies, the operator name. Private individuals are anonymised. No API key, no MaStR web-service account.

Use it as a weekly **solar and battery lead list**, a market tracker for new PV and storage installations, or a data feed for grid and energy analytics.

### What does the MaStR Export do?

- Reads the public extended list of electricity generation and storage units (Stromerzeugungseinheiten) from [marktstammdatenregister.de](https://www.marktstammdatenregister.de).
- Loads **solar**, **wind** (onshore and offshore) and **battery** storage (Batterie) separately, one status at a time.
- Keeps units **registered in the last N days** (default 7, max 365) or since a date, with status in operation and/or planned by default.
- Filters by **Bundesland**, **postcode prefix**, **minimum / maximum gross capacity (kW)**, **commissioning date**, **operator name** and **wind location**.
- Default operator mode `organisations` returns only units of companies, municipalities and other organisations, so the list is usable for B2B outreach.
- Remembers each MaStR number (`onlyNew`), so a weekly schedule delivers and bills each unit once.
- Sends one request at a time with at least 1.5 seconds between requests and retries on 429 and 5xx.

### Who is it for? Use cases

- **Solar installers, EPCs and O\&M companies:** new commercial rooftop and ground-mount PV systems by postcode and size, for service, maintenance, battery retrofit or repowering offers.
- **Battery storage sellers:** new Batterie units with usable storage capacity (kWh) and battery chemistry.
- **Grid operators and Stadtwerke:** units registered in your postcode area or Bundesland, with the recorded connecting grid operator and voltage level.
- **Energy analysts and consultants:** weekly additions by technology, status, Bundesland and size class.
- **PPA buyers, investors and asset managers:** larger new solar and wind parks with park name, turbine model, hub height and EEG register number.

### What data do you get?

| Field | Example | Notes |
| --- | --- | --- |
| `mastrNr` | SEE924627138642 | MaStR unit number |
| `technology`, `energySource`, `status` | solar, Solare Strahlungsenergie, inOperation | |
| `grossPowerKw`, `netPowerKw` | 61.18, 50 | Bruttoleistung / Nettonennleistung |
| `storageCapacityKwh`, `batteryTechnology` | null | Battery units |
| `commissioningDate`, `registrationDate`, `lastUpdate` | 2026-11-07, 2026-11-08 | |
| `bundesland`, `district`, `municipality`, `postcode`, `city` | Nordrhein-Westfalen, Gütersloh, 33442 | |
| `street`, `houseNumber`, `latitude`, `longitude` | Dieselstraße 24 | Organisations only |
| `operatorType`, `operatorName`, `operatorMastrNr` | organisation, MTF Market GmbH | Anlagenbetreiber |
| `gridOperatorName`, `voltageLevel` | Westnetz GmbH, Niederspannung | Netzbetreiber |
| `solarModuleCount`, `solarInstallationType`, `buildingUse`, `feedInType` | 133, Gebäudesolaranlage, Gewerbe | Solar details |
| `windParkName`, `turbineManufacturer`, `turbineModel`, `hubHeightM`, `rotorDiameterM` | | Wind details |
| `eegMastrNr` | EEG939858745545 | EEG register number (join key) |
| `unitUrl` | marktstammdatenregister.de link | Public unit page |
| `sourceName`, `sourceLicense`, `sourceLicenseUrl` | dl-de/by-2-0 | Attribution on every row |

A test run on 9 November 2026 (organisations, all three technologies, last 7 days, 300 units) returned 237 solar, 42 battery and 21 wind units in 4 requests and about 6 seconds.

### How to use it

1. Click **Try for free** (or **Start**).
2. Pick the **technologies** and, if you like, **Bundesländer**, **postcode prefixes** and a **minimum capacity** such as 30 kW for commercial systems.
3. Keep **Registered in the last days** at 7 for a weekly list.
4. Click **Start** and download the units as Excel, CSV or JSON.
5. Save it as a task with a weekly schedule to get only new units each time.

### Input example

```json
{
  "technologies": ["solar", "battery"],
  "bundeslaender": ["Bayern"],
  "postcodePrefixes": ["80", "81", "85"],
  "minPowerKw": 30,
  "registeredSinceDays": 7,
  "status": ["inOperation", "planned"],
  "operatorType": "organisations",
  "maxItems": 1000,
  "onlyNew": true
}
```

- `registeredFrom` (YYYY-MM-DD) replaces `registeredSinceDays`. `commissionedFrom` drops units without a commissioning date.
- `bundeslaender` uses the register's state names, including *Ausschließliche Wirtschaftszone* for offshore wind.
- `operatorNameContains` (for example `Stadtwerke`) is applied by MaStR to organisation names.
- `windLocation` is `any`, `onshore` or `offshore`.

### Output example

Real row from the 9 November 2026 test run:

```json
{
  "mastrNr": "SEE924627138642",
  "technology": "solar",
  "energySource": "Solare Strahlungsenergie",
  "status": "inOperation",
  "grossPowerKw": 61.18,
  "netPowerKw": 50,
  "storageCapacityKwh": null,
  "commissioningDate": "2026-11-07",
  "plannedCommissioningDate": null,
  "registrationDate": "2026-11-08",
  "lastUpdate": "2026-11-08",
  "decommissioningDate": null,
  "bundesland": "Nordrhein-Westfalen",
  "district": "Gütersloh",
  "municipality": "Herzebrock-Clarholz",
  "municipalityKey": "05754020",
  "postcode": "33442",
  "city": "Herzebrock-Clarholz",
  "street": "Dieselstraße",
  "houseNumber": "24",
  "latitude": 51.880424,
  "longitude": 8.227757,
  "operatorType": "organisation",
  "operatorName": "MTF Market GmbH",
  "operatorNameWithheld": false,
  "operatorMastrNr": "ABR941026789152",
  "gridOperatorName": "Westnetz GmbH",
  "gridOperatorMastrNr": "SNB921897286493",
  "voltageLevel": "Niederspannung (= Hausanschluss/Haushaltsstrom)",
  "unitName": "MTF61,18kwp",
  "solarModuleCount": 133,
  "solarInstallationType": "Gebäudesolaranlage",
  "buildingUse": "Gewerbe, Handel und Dienstleistungen",
  "feedInType": "Teileinspeisung (einschließlich Eigenverbrauch)",
  "solarParkName": null,
  "windParkName": null,
  "windLocation": null,
  "turbineManufacturer": null,
  "turbineModel": null,
  "hubHeightM": null,
  "rotorDiameterM": null,
  "batteryTechnology": null,
  "eegMastrNr": "EEG939858745545",
  "citizenEnergy": null,
  "unitUrl": "https://www.marktstammdatenregister.de/MaStR/Einheit/Detail/IndexOeffentlich/12527953",
  "sourceName": "Marktstammdatenregister (Bundesnetzagentur)",
  "sourceLicense": "Datenlizenz Deutschland – Namensnennung – Version 2.0",
  "sourceLicenseUrl": "https://www.govdata.de/dl-de/by-2-0",
  "fetchedAt": "2026-11-09T15:59:02.982Z"
}
```

### How much does it cost?

Pay per result: **$0.0015 per unit ($1.50 per 1,000 units).** No start fee.

Cost example: a weekly list of new commercial solar and battery units in Bayern that returns 200 units costs 200 × $0.0015 = **$0.30 per week**. A nationwide export of 10,000 units costs $15. Units removed by filters, natural-person units skipped in `organisations` mode and units skipped by `onlyNew` are not charged.

### Schedule a weekly lead list

1. Leave `onlyNew` on and `registeredSinceDays` at 7 (or 14 to catch late registrations).
2. Save a task and schedule it in Europe/Berlin, for example `0 7 * * 1` (Monday 07:00).
3. Send the new units to Google Sheets, your CRM, Slack, email, Make, Zapier or n8n.

### Prefer a ready-made weekly report for Bavaria?

If you only need new commercial solar and battery units in **Bavaria**, delivered each Monday as a short German email plus CSV, Nordlicht Data also publishes a finished digest built on this Actor: the [Bayern Solar & Speicher Wochenreport](https://nordlicht-solar-report.vercel.app) (29 € per month, 14-day trial). A free public sample of the latest week is at [nordlicht-solar-report.vercel.app/probe](https://nordlicht-solar-report.vercel.app/probe).

Keep using this Actor when you need other Bundesländer, wind, custom filters, or your own pipeline.

### Use it through the API (curl, Python, JavaScript)

Every run can be started from code. Get your token in Apify Console under **Settings → API & Integrations**.

**curl** (runs the Actor and returns the dataset items in one call; the synchronous endpoint waits up to 300 seconds):

```bash
curl -X POST "https://api.apify.com/v2/acts/nordlicht~mastr-energy-assets/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"technologies": ["solar", "battery"], "bundeslaender": ["Bayern"], "minPowerKw": 30, "registeredSinceDays": 7, "maxItems": 200, "onlyNew": false}'
```

**Python** (`pip install apify-client`):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("nordlicht/mastr-energy-assets").call(run_input={"technologies": ["solar", "battery"], "bundeslaender": ["Bayern"], "minPowerKw": 30, "registeredSinceDays": 7, "maxItems": 200, "onlyNew": False})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript / Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('nordlicht/mastr-energy-assets').call({"technologies": ["solar", "battery"], "bundeslaender": ["Bayern"], "minPowerKw": 30, "registeredSinceDays": 7, "maxItems": 200, "onlyNew": false});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

You can also export any dataset as JSON, CSV, Excel or XML, connect the run to Make, Zapier, n8n, Google Sheets, Slack or a webhook, or let an AI agent call this Actor through the [Apify MCP server](https://mcp.apify.com).

### FAQ

**Is it legal to use Marktstammdatenregister data?** Yes. The Bundesnetzagentur publishes the public MaStR data under the **Datenlizenz Deutschland – Namensnennung – Version 2.0** (dl-de/by-2-0), which allows commercial use with attribution. Suggested credit: "Marktstammdatenregister (Bundesnetzagentur), dl-de/by-2-0". This extract is filtered and anonymised, so say that the data was modified. Every row repeats `sourceName`, `sourceLicense` and `sourceLicenseUrl`.

**How are private individuals (Privatpersonen) handled?** In the default `organisations` mode, units of natural persons are not output at all (operator kind 518, anonymised units, and names MaStR already replaced with "natürliche Person"). With `operatorType: "all"` they are included with operator name, street, coordinates, unit name and park name set to null. Sole traders (`e.K.`, `Inh.`) and GbR / eGbR names are withheld, as is any name without a corporate or public token (GmbH, AG, KG, UG, e.G., Stadt, Gemeinde, Stadtwerke and similar). Emails and phone numbers are stripped from free text. Note that German law (UWG) restricts unsolicited advertising by phone and email; use the data responsibly.

**Why is an operator name sometimes null?** It was withheld for privacy (see above); `operatorNameWithheld` is then true. In the 300-unit test run, 26.3% of organisation rows were withheld.

**How fresh is the data?** The Actor reads the live public register, sorted by registration date. A morning run sees units registered on previous days and, where MaStR already shows them, today.

**Do I need a MaStR web-service API key?** No. The Actor uses the public list that the register website itself uses.

**Can I combine it with EEG auction results?** Yes. `eegMastrNr` matches `registerNumbers.registerNr` in [EEG Auction Results Germany](https://apify.com/nordlicht/german-eeg-auction-awards), so you can follow an awarded project into the register.

### Auf Deutsch: Marktstammdatenregister abfragen und exportieren

Mit diesem Actor können Sie das **Marktstammdatenregister (MaStR) der Bundesnetzagentur abfragen und als Excel, CSV oder JSON exportieren**: neu registrierte Photovoltaikanlagen, Windenergieanlagen und Batteriespeicher mit Leistung (kW), Status, Inbetriebnahme- und Registrierungsdatum, Ort, PLZ, Netzbetreiber und – bei Unternehmen – Anlagenbetreiber. Filter nach Bundesland, PLZ-Bereich, Leistung und Zeitraum; mit `onlyNew` und wöchentlichem Zeitplan entsteht eine Liste neuer PV- und Speicheranlagen als Lead-Quelle für Solarteure, Speicheranbieter, Stadtwerke und Analysten. Privatpersonen werden anonymisiert. Datenlizenz Deutschland – Namensnennung 2.0. Preis: 0,0015 $ pro Anlage, keine Startgebühr. Wer nur die neuen gewerblichen Solar- und Speicheranlagen in Bayern als fertigen Wochenreport braucht, findet den [Bayern Solar & Speicher Wochenreport](https://nordlicht-solar-report.vercel.app) inklusive [kostenloser Probe-Ausgabe](https://nordlicht-solar-report.vercel.app/probe).

### Related Actors: German and EU public-data suite

These six Actors share one style: official open sources, flat JSON, privacy filtering, `onlyNew` for schedules, pay per result, no start fee.

| Actor | What you get |
| --- | --- |
| [TED Tenders Monitor](https://apify.com/nordlicht/eu-tenders-monitor) | New EU tenders from TED for Germany, Austria, Switzerland, Poland, Sweden, Denmark, Finland and Norway |
| [German Public Tenders API](https://apify.com/nordlicht/german-public-tenders) | Öffentliche Ausschreibungen from Bund, Länder and Kommunen, including notices below the EU thresholds |
| [German Public Contract Awards](https://apify.com/nordlicht/german-contract-awards) | Zuschläge: which company won which German public contract, with award values |
| [Marktstammdatenregister (MaStR) Export](https://apify.com/nordlicht/mastr-energy-assets) | New solar, wind and battery storage units from the Bundesnetzagentur register |
| [EEG Auction Results Germany](https://apify.com/nordlicht/german-eeg-auction-awards) | Bundesnetzagentur EEG Zuschläge with capacity, site, register numbers and round prices |
| [EU State Aid Transparency](https://apify.com/nordlicht/eu-state-aid-transparency) | Beihilfen: EU State aid awards and subsidy recipients from the Commission's Transparency Award Module (TAM) |

Typical combinations:

- **Bid, then learn who won:** watch calls for tender with [German Public Tenders API](https://apify.com/nordlicht/german-public-tenders) or [TED Tenders Monitor](https://apify.com/nordlicht/eu-tenders-monitor), then track the Zuschläge in [German Public Contract Awards](https://apify.com/nordlicht/german-contract-awards).
- **Auction to asset:** an EEG award lists EEG register numbers (`registerNumbers.registerNr`). The [MaStR export](https://apify.com/nordlicht/mastr-energy-assets) returns the same key as `eegMastrNr`, so you can follow an awarded project into the unit register once it is built.

# Actor input Schema

## `technologies` (type: `array`):

Electricity technologies to load. Default is solar, wind and battery.

## `bundeslaender` (type: `array`):

German state names. Leave empty for every state, including the exclusive economic zone (offshore).

## `postcodePrefixes` (type: `array`):

Keep units whose postcode starts with one of these digits, for example 80 or 80331.

## `minPowerKw` (type: `integer`):

Keep units whose gross capacity (Bruttoleistung) is at least this many kilowatts.

## `maxPowerKw` (type: `integer`):

Keep units whose gross capacity is at most this many kilowatts.

## `registeredSinceDays` (type: `integer`):

Registration window ending today (Europe/Berlin). 7 means the registration date is after the day that is 7 days ago. Ignored when Registered from is set. Maximum 365.

## `registeredFrom` (type: `string`):

First registration day (YYYY-MM-DD). Replaces the day window.

## `commissionedFrom` (type: `string`):

Optional. Keep units commissioned on or after this day (YYYY-MM-DD). Units without a commissioning date are dropped.

## `status` (type: `array`):

Default is in operation and planned.

## `operatorType` (type: `string`):

organisations skips natural persons (PersonenArt 518, anonymised units, and names MaStR already replaced with natürliche Person). all keeps those units with the identity fields emptied.

## `operatorNameContains` (type: `string`):

Case-insensitive substring of the operator name. MaStR applies this to organisation names only.

## `windLocation` (type: `string`):

Applied to wind units. Ignored for solar and battery.

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

Stop after this many output units. Default 1000. You pay per unit that is pushed.

## `onlyNew` (type: `boolean`):

Remember each MaStR number in the key-value store mastr-energy-assets-state. The key is the MaStR number only, so a later update of the same unit is not pushed again and is not charged. Skipped units are not dataset items.

## Actor input object example

```json
{
  "technologies": [
    "solar",
    "wind",
    "battery"
  ],
  "registeredSinceDays": 7,
  "status": [
    "inOperation",
    "planned"
  ],
  "operatorType": "organisations",
  "windLocation": "any",
  "maxItems": 1000,
  "onlyNew": true
}
```

# Actor output Schema

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

One item per solar, wind or battery unit from the Marktstammdatenregister.

# 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 = {
    "technologies": [
        "solar",
        "wind",
        "battery"
    ],
    "registeredSinceDays": 7,
    "status": [
        "inOperation",
        "planned"
    ],
    "operatorType": "organisations",
    "windLocation": "any",
    "maxItems": 1000,
    "onlyNew": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("nordlicht/mastr-energy-assets").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 = {
    "technologies": [
        "solar",
        "wind",
        "battery",
    ],
    "registeredSinceDays": 7,
    "status": [
        "inOperation",
        "planned",
    ],
    "operatorType": "organisations",
    "windLocation": "any",
    "maxItems": 1000,
    "onlyNew": True,
}

# Run the Actor and wait for it to finish
run = client.actor("nordlicht/mastr-energy-assets").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 '{
  "technologies": [
    "solar",
    "wind",
    "battery"
  ],
  "registeredSinceDays": 7,
  "status": [
    "inOperation",
    "planned"
  ],
  "operatorType": "organisations",
  "windLocation": "any",
  "maxItems": 1000,
  "onlyNew": true
}' |
apify call nordlicht/mastr-energy-assets --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nordlicht/mastr-energy-assets"
        }
    }
}
```

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/xP7vr6qq1Qargsck0/builds/WY81ex9HeVjUsUWxf/openapi.json
