# Germany Weather Warnings (DWD) - Storm, Frost, Heat, Ice (`hydramill/dwd-weather-warnings`) Actor

Current official German weather warnings from the Deutscher Wetterdienst as flat JSON: region, state, severity 1-4, event in German and English, validity, description and advice. Filter by state, region, event, severity. Open data (CC BY 4.0), no API key.

- **URL**: https://apify.com/hydramill/dwd-weather-warnings.md
- **Developed by:** [Hydramill](https://apify.com/hydramill) (community)
- **Categories:** Other, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Germany Weather Warnings (DWD) - Storm, Frost, Heat, Ice

Get the **current official weather warnings for Germany** from the **Deutscher Wetterdienst (DWD)** as **clean, flat JSON**: **region, state, severity (1-4), event in German and English, validity period, description and safety advice**, one record per district and warning.

It reads the DWD's public warnings feed: no scraping, no login, no API key, no proxies, no browser. Data is open under **CC BY 4.0**; the source is named in every run summary.

### What you can use it for

- **Logistics, insurance and field services.** Which districts have storm gusts, ice or heavy snow today.
- **Energy, agriculture and event planning.** Frost, heat and wind alerts by region, on a schedule.
- **Apps, newsrooms and home automation.** Push alerts for chosen states or cities.
- **AI agents.** Short structured answers to "is there a storm warning for Bavaria?".

### Why this actor

- **English next to German.** `eventEn` and `levelLabel` (minor, moderate, severe, extreme) beside the DWD's German text.
- **Filters that save you work.** State (name or code), region, event word, minimum severity.
- **Most severe first**, so a small `maxItems` keeps what matters.
- **Clean values.** UTC ISO times instead of millisecond numbers, altitude limits as numbers.
- **Fails visibly.** If the DWD feed is down you get a clear error, not an empty dataset.
- **Free to use.** You only pay Apify's usual platform usage.

### Input

All fields are optional and combine (AND).

| Field | Type | Default | Description |
|---|---|---|---|
| `states` | list | empty | States by name or code: `BY`, `Bayern`, `NW`, `Berlin`. Empty = all Germany. |
| `region` | text | empty | Part of the district or city name. |
| `event` | text | empty | German or English event word: `frost`, `STURM`, `thunderstorm`. |
| `minLevel` | integer | `1` | 1 minor, 2 moderate, 3 severe, 4 extreme. |
| `includeAdvance` | boolean | `false` | Also DWD advance information (Vorabinformation). |
| `maxItems` | integer | `100` (Store form: `20`) | Stop after this many records (1-100,000). |

#### Example input: severe warnings in Bavaria

```json
{ "states": ["BY"], "minLevel": 3, "maxItems": 100 }
```

### Output

One dataset item per region and warning. A real item from a run on 2026-11-12:

```json
{
  "type": "warning",
  "regionId": "104012000",
  "regionName": "Stadt Bremerhaven",
  "state": "Bremen",
  "stateShort": "HB",
  "level": 3,
  "levelLabel": "severe",
  "event": "STURMBÖEN",
  "eventEn": "storm",
  "typeCode": 1,
  "headline": "Amtliche WARNUNG vor STURMBÖEN",
  "description": "Es treten Sturmböen mit Geschwindigkeiten um 65 km/h ... auf.",
  "instruction": "Gefahr durch: einzelne herabstürzende Äste; ...",
  "start": "2026-11-12T11:00:00.000Z",
  "end": "2026-11-13T17:00:00.000Z",
  "altitudeStartM": null,
  "altitudeEndM": null,
  "source": "https://www.dwd.de/DWD/warnungen/warnapp/json/warnings.json",
  "retrievedAt": "2026-11-12T15:16:01.946Z"
}
```

The key-value store record `SUMMARY` has the feed time, how many records were in the feed and matched, and the attribution.

### Data source and licence

Data: **Deutscher Wetterdienst (DWD)**, <https://www.dwd.de>, open data under **CC BY 4.0**; reuse requires naming the source. This is an independent tool, not affiliated with or endorsed by the DWD. Warnings change by the minute: always check the DWD for safety-critical decisions; this actor is not an official warning service.

### Tips

- Schedule it every 15-30 minutes with the Apify scheduler for alerts.
- Output texts are German as the DWD publishes them.

# Actor input Schema

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

German states by name or two-letter code, for example BY, Bayern, NW, Berlin. Empty = all Germany.

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

Part of the district or city name, for example Kreis, München, Harz.

## `event` (type: `string`):

German or English event word, for example frost, STURM, thunderstorm, Glätte, heat.

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

1 minor, 2 moderate (official warning), 3 severe, 4 extreme.

## `includeAdvance` (type: `boolean`):

Also the DWD pre-warnings (Vorabinformation) for severe events expected later.

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

Stop after this many records, most severe first. A typical day has a few dozen to a few hundred.

## Actor input object example

```json
{
  "minLevel": 1,
  "includeAdvance": false,
  "maxItems": 20
}
```

# Actor output Schema

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

One item per region and warning.

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

Records in the feed and matches, and data attribution (key SUMMARY in the default key-value store).

# 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 = {
    "minLevel": 1,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydramill/dwd-weather-warnings").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 = {
    "minLevel": 1,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("hydramill/dwd-weather-warnings").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 '{
  "minLevel": 1,
  "maxItems": 20
}' |
apify call hydramill/dwd-weather-warnings --silent --output-dataset

```

## MCP server setup

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

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/kslIa5heIlWcbqWo5/builds/B8OPwrcIHZU8bW7li/openapi.json
