# Wetterwarnungen Deutschland (DWD) (`maxx_83/dwd-wetterwarnungen-de`) Actor

Aktuelle amtliche Wetterwarnungen des Deutschen Wetterdienstes für Deutschland: filterbar nach Bundesland, Region, Warnstufe und Ereignis, mit Änderungs-Modus für neue und beendete Warnungen.

- **URL**: https://apify.com/maxx_83/dwd-wetterwarnungen-de.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

$10.00 / 1,000 warnungs

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

## Wetterwarnungen Deutschland (DWD)

Dieser Actor liefert die aktuellen amtlichen Wetterwarnungen des Deutschen Wetterdienstes (DWD) für Deutschland als saubere, filterbare Daten (JSON, CSV, Excel). Du filterst nach Bundesland, Region, Ereignis (Sturm, Frost, Gewitter, Nebel und weitere) und Warnstufe. Mit dem Änderungs-Modus erfährst du, welche Warnungen seit dem letzten Lauf neu, geändert oder beendet sind.

### Wofür

- Benachrichtigungen und Frühwarnsysteme für Logistik, Bau, Veranstaltungen, Landwirtschaft und Immobilien
- Dashboards und Berichte mit aktuellen Wetterlagen
- Planung von Einsätzen nach Warnungen für bestimmte Regionen

### Eingabe

| Feld | Bedeutung |
|---|---|
| `mode` | `snapshot` = alle aktuellen Warnungen, `changes` = nur Änderungen seit dem letzten Lauf |
| `states` | Bundesländer (Name oder Kürzel) |
| `regionContains` | Teil des Namens der Warnregion |
| `eventContains` | Teil der Ereignisbezeichnung (z. B. `STURM`) |
| `minLevel` | Mindest-Warnstufe 1 bis 4 laut DWD (höher = gefährlicher) |
| `includePreliminary` | Auch Vorabinformationen ausgeben |
| `stateStoreName` | Nur für `changes`: Name eines Speichers in deinem Konto |
| `maxItems` | Begrenzt Ergebnisse und Kosten |

### Ausgabe (Auszug)

```json
{
  "regionId": "903455001",
  "regionName": "Kreis Friesland - Binnenland",
  "state": "Niedersachsen",
  "level": 2,
  "event": "NEBEL",
  "headline": "Amtliche WARNUNG vor NEBEL",
  "description": "Es tritt Nebel mit Sichtweiten unter 150 Metern auf.",
  "start": "2026-10-11T20:33:00.000Z",
  "startBerlin": "2026-10-11 22:33:00",
  "end": "2026-10-12T06:20:00.000Z",
  "dataAsOf": "2026-10-11T20:32:15.000Z"
}
```

Im Änderungs-Modus kommt das Feld `changeType` (`new`, `changed`, `ended`) dazu.

### Hinweise

- **Datenquelle:** Deutscher Wetterdienst (DWD), Lizenz CC BY 4.0 mit Quellenangabe. Bei Weiterverwendung nenne bitte den DWD als Quelle.
- **Keine Gewähr:** Der DWD sichert für diese Daten keine Verfügbarkeit zu. Der Actor ist ein unabhängiges Angebot und steht in keiner Verbindung zum DWD. Er ersetzt keine offiziellen Warnkanäle und ist nicht für sicherheitskritische Entscheidungen gedacht.
- **Aktualität:** Das Feld `dataAsOf` nennt den Stand der Warndatei. Ein Lauf liefert den Stand zum Zeitpunkt des Abrufs. Für laufende Überwachung plane den Actor regelmäßig ein.

# Actor input Schema

## `mode` (type: `string`):

'snapshot' liefert alle aktuellen Warnungen. 'changes' liefert nur neue, geänderte und beendete Warnungen seit dem letzten Lauf mit demselben Namen des Zustandsspeichers.

## `states` (type: `array`):

Namen oder Kürzel, zum Beispiel Bayern, NW, Niedersachsen. Leer = alle.

## `regionContains` (type: `string`):

Nur Warnregionen, deren Name diesen Text enthält, zum Beispiel München oder Küste.

## `eventContains` (type: `string`):

Nur Ereignisse, deren Bezeichnung diesen Text enthält, zum Beispiel STURM, FROST, GEWITTER, NEBEL.

## `minLevel` (type: `integer`):

Warnstufe laut DWD von 1 bis 4. Höher bedeutet gefährlicher.

## `includePreliminary` (type: `boolean`):

Auch Vorabinformationen zu Unwettern ausgeben, sofern vorhanden.

## `stateStoreName` (type: `string`):

Name des Key-Value-Speichers in deinem Konto, in dem der letzte Stand abgelegt wird. Verwende für jede Abfrage einen eigenen Namen.

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

Begrenzt die Anzahl der gelieferten Datensätze (und der Kosten).

## Actor input object example

```json
{
  "mode": "snapshot",
  "states": [],
  "regionContains": "",
  "eventContains": "",
  "minLevel": 1,
  "includePreliminary": false,
  "stateStoreName": "dwd-warnungen-state",
  "maxItems": 500
}
```

# 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/dwd-wetterwarnungen-de").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/dwd-wetterwarnungen-de").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/dwd-wetterwarnungen-de --silent --output-dataset

```

## MCP server setup

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

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/L98OhGwwEEldIiJaJ/builds/qjF5R1DlynA3lanYs/openapi.json
