Deutsche Bahn Disruption Alerts
How to get Deutsche Bahn Disruption Alerts by webhook
Scrape live Deutsche Bahn disruption communications from verkehrslage.bahnhof.de (causes, effects, DE/EN captions). verkehrslage.bahnhof.de is one page of it. A run reads that public list and saves one row per result.
Set up the Apify actor
Apify is where this run is collected. An actor is the program that collects the rows. A task is that program saved with your settings, so the next section can ask for the latest rows. You need a free Apify account.
- 01Open Deutsche Bahn Disruption Alerts and click Try for free. Create an Apify account if you do not have one. The Free plan does not ask for a card.
- 02You are on the input form. Keep the sample for this first run.
{ "maxItems": 5 } - 03Leave the proxy setting as it is. Click Start and wait until the run says Succeeded.
- 04Open Storage, then Dataset. You should see
disruptionCommunicationID,disruptionId,cause,effect. - 05When you want the real list, raise maxItems. The sample cap is only there so the first run stays small.
- 06Go back to the input and choose Save as a new task. Name it after this list.
- 07Open the task. Copy the task ID from the address bar. Excel, Sheets, Power BI, and the other guides ask for this ID.
- 08On the task, open Schedules and add a weekly run if you want fresh rows. Each run pays the start charge and the charge for the rows. The amounts are in the price list on this page.
- 09Open Settings, then API & Integrations, and copy an API token. Excel, Sheets, and the other guides put this token in a download link. Anyone with that link can download the rows, so treat it like a password.
How to set up a webhook
Use the task ID and the API token from Set up the Apify actor, above.
- 01In Apify, open Deutsche Bahn Disruption Alerts and go to Integrations.
- 02Add a webhook for Actor run succeeded. Point it at the URL that should receive the run.
- 03The payload includes the dataset id. Read the rows from that dataset, or from the task URL in the sections above.
- 04The weekly schedule from Set up the Apify actor, above, is what makes this fire every week.
Schema
Examples come from the actor sample, not a live result.
| Name | Description | Example |
|---|---|---|
disruptionCommunicationID | Disruption Communication ID | 462d1964-7b69-4ff0-bdb6-1dcac0b8f046 |
disruptionId | Disruption Id | 512a35c7-a581-4909-bf50-a63198ab0106 |
cause | Cause | UNKNOWN_CAUSE |
effect | Effect | IMPAIRMENT |
captionEn | Caption En | Unauthorized |
states | States | Bayern, |
channels | Channels | JourneyInfo |
sourceUrl | Source Url | https:/ |
scrapedAt | Scraped At | 2026-09-24T12:00:00.000Z |
disruptionCommunicationIDDisruption Communication ID462d1964-7b69-4ff0-bdb6-1dcac0b8f046disruptionIdDisruption Id512a35c7-a581-4909-bf50-a63198ab0106causeCauseUNKNOWN_CAUSEeffectEffectIMPAIRMENTcaptionEnCaption EnUnauthorizedpersons are on the tracks between Munich Central Station and Ingolstadt Central Station. statesStatesBayern,Hessen channelsChannelsJourneyInfosourceUrlSource Urlhttps:// verkehrslage.bahnhof.de/ scrapedAtScraped At2026-09-24T12:00:00.000Z