Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bahn.de API endpoints for boards #3

Open
dabund24 opened this issue Dec 28, 2024 · 6 comments
Open

bahn.de API endpoints for boards #3

dabund24 opened this issue Dec 28, 2024 · 6 comments

Comments

@dabund24
Copy link
Contributor

Hi,
I don't know if this is useful in any way, but since I didn't find any documentation about this here, I may share it:
The API endpoints for departure and arrival boards seem to be https://www.bahn.de/web/api/reiseloesung/abfahrten and https://www.bahn.de/web/api/reiseloesung/ankuenfte respectively.

Example request:
https://www.bahn.de/web/api/reiseloesung/abfahrten?datum=2024-12-30&zeit=11:55:00&ortExtId=8011160&ortId=A%3D1%40O%3DBerlin+Hbf%40X%3D13369549%40Y%3D52525589%40U%3D80%40L%3D8011160%40i%3DU%C3%97008065969%40&mitVias=true&maxVias=8&verkehrsmittel[]=ICE&verkehrsmittel[]=EC_IC&verkehrsmittel[]=IR&verkehrsmittel[]=REGIONAL

Response
{
  "entries": [
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T11:57:00",
  		"gleis": "8",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Jungfernheide",
  			"Berlin-Spandau",
  			"Berlin-Staaken",
  			"Dallgow-Döberitz",
  			"Elstal",
  			"Wustermark",
  			"Stendal Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199305#TA#0#DA#301224#1S#8010182#1T#1103#LS#8010334#LT#1314#PU#81#RT#1#CA#RE#ZE#3173#ZB#RE  3173#PC#3#FR#8010182#FT#1103#TO#8010334#TT#1314#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3173",
  			"kurzText": "RE",
  			"mittelText": "RE 4",
  			"langText": "RE 3173",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Stendal Hbf"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T11:58:00",
  		"gleis": "13",
  		"ueber": ["Berlin Hbf", "Berlin-Charlottenburg", "Hamburg Hbf"],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#217850#TA#0#DA#301224#1S#8010255#1T#1146#LS#8002549#LT#1411#PU#81#RT#1#CA#DPF#ZE#1364#ZB#FLX 1364#PC#2#FR#8010255#FT#1146#TO#8002549#TT#1411#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "FLX 1364",
  			"kurzText": "FLX",
  			"mittelText": "FLX 1364",
  			"langText": "FLX 1364",
  			"produktGattung": "IR"
  		},
  		"terminus": "Hamburg Hbf"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T11:59:00",
  		"gleis": "11",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Friedrichstraße",
  			"Berlin Alexanderplatz",
  			"Berlin Ostbahnhof",
  			"Berlin Ostkreuz",
  			"Erkner",
  			"Fangschleuse",
  			"Frankfurt(Oder)"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#358545#TA#1#DA#301224#1S#8010224#1T#1012#LS#8010113#LT#1305#PU#81#RT#1#CA#DPN#ZE#73726#ZB#RE 73726#PC#3#FR#8010224#FT#1012#TO#8010113#TT#1305#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 73726",
  			"kurzText": "RE",
  			"mittelText": "RE 1",
  			"langText": "RE 73726",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Frankfurt(Oder)"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:01:00",
  		"gleis": "14",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Zoologischer Garten",
  			"Berlin-Charlottenburg",
  			"Berlin-Wannsee",
  			"Potsdam Hbf",
  			"Werder(Havel)",
  			"Brandenburg Hbf",
  			"Magdeburg Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#358555#TA#0#DA#301224#1S#8010113#1T#1055#LS#8010224#LT#1347#PU#81#RT#1#CA#DPN#ZE#73731#ZB#RE 73731#PC#3#FR#8010113#FT#1055#TO#8010224#TT#1347#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 73731",
  			"kurzText": "RE",
  			"mittelText": "RE 1",
  			"langText": "RE 73731",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Magdeburg Hbf"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:03:00",
  		"gleis": "1",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Potsdamer Platz",
  			"Berlin Südkreuz",
  			"Berlin-Lichterfelde Ost",
  			"Ludwigsfelde",
  			"Thyrow",
  			"Trebbin",
  			"Jüterbog"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199296#TA#0#DA#301224#1S#8010334#1T#1044#LS#8010182#LT#1256#PU#81#RT#1#CA#RE#ZE#3170#ZB#RE  3170#PC#3#FR#8010334#FT#1044#TO#8010182#TT#1256#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3170",
  			"kurzText": "RE",
  			"mittelText": "RE 4",
  			"langText": "RE 3170",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Jüterbog"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:04:00",
  		"gleis": "2",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Südkreuz",
  			"Halle(Saale)Hbf",
  			"Erfurt Hbf",
  			"Nürnberg Hbf",
  			"München Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#192454#TA#0#DA#301224#1S#8002553#1T#950#LS#8000261#LT#1601#PU#81#RT#1#CA#ICE#ZE#1005#ZB#ICE 1005#PC#0#FR#8002553#FT#950#TO#8000261#TT#1601#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "ICE 1005",
  			"kurzText": "ICE",
  			"mittelText": "ICE 1005",
  			"langText": "ICE 1005",
  			"produktGattung": "ICE"
  		},
  		"terminus": "München Hbf"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:05:00",
  		"gleis": "6",
  		"ueber": ["Berlin Hbf", "Berlin-Spandau", "Hamburg Hbf", "Hamburg-Altona"],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#192458#TA#0#DA#301224#1S#8000261#1T#756#LS#8002553#LT#1404#PU#81#RT#1#CA#ICE#ZE#1006#ZB#ICE 1006#PC#0#FR#8000261#FT#756#TO#8002553#TT#1404#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "ICE 1006",
  			"kurzText": "ICE",
  			"mittelText": "ICE 1006",
  			"langText": "ICE 1006",
  			"produktGattung": "ICE"
  		},
  		"terminus": "Hamburg-Altona"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:06:00",
  		"gleis": "13",
  		"ueber": [
  			"Berlin Hbf",
  			"Hannover Hbf",
  			"Bünde(Westf)",
  			"Osnabrück Hbf",
  			"Rheine",
  			"Bad Bentheim",
  			"Hengelo",
  			"Amsterdam Centraal"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#233324#TA#0#DA#301224#1S#8010255#1T#1153#LS#8400058#LT#1759#PU#81#RT#1#CA#IC#ZE#144#ZB#IC   144#PC#1#FR#8010255#FT#1153#TO#8400058#TT#1759#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "IC 144",
  			"kurzText": "IC",
  			"mittelText": "IC 144",
  			"langText": "IC 144",
  			"produktGattung": "EC_IC"
  		},
  		"terminus": "Amsterdam Centraal"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:09:00",
  		"gleis": "1",
  		"ueber": ["Berlin Hbf", "Berlin Potsdamer Platz", "Berlin Südkreuz"],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#198705#TA#0#DA#301224#1S#8010239#1T#1122#LS#8011113#LT#1216#PU#81#RT#1#CA#RB#ZE#18613#ZB#RB 18613#PC#3#FR#8010239#FT#1122#TO#8011113#TT#1216#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RB 18613",
  			"kurzText": "RB",
  			"mittelText": "RB 14",
  			"langText": "RB 18613",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Berlin Südkreuz"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:10:00",
  		"gleis": "11",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Friedrichstraße",
  			"Berlin Alexanderplatz",
  			"Berlin Ostbahnhof",
  			"Berlin Ostkreuz",
  			"Flughafen BER"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#198148#TA#0#DA#301224#1S#8013481#1T#1130#LS#8011201#LT#1246#PU#81#RT#1#CA#RB#ZE#18155#ZB#RB 18155#PC#3#FR#8013481#FT#1130#TO#8011201#TT#1246#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RB 18155",
  			"kurzText": "RB",
  			"mittelText": "RB 23",
  			"langText": "RB 18155",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Flughafen BER"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:11:00",
  		"gleis": "4",
  		"ueber": ["Berlin Hbf", "Berlin Südkreuz"],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#191988#TA#0#DA#301224#1S#8010282#1T#1054#LS#8011113#LT#1218#PU#81#RT#1#CA#RE#ZE#51073#ZB#RE 51073#PC#3#FR#8010282#FT#1054#TO#8011113#TT#1218#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 51073",
  			"kurzText": "RE",
  			"mittelText": "RE 21",
  			"langText": "RE 51073",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Berlin Südkreuz"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:12:00",
  		"gleis": "7",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Jungfernheide",
  			"Berlin-Spandau",
  			"Albrechtshof",
  			"Seegefeld",
  			"Falkensee",
  			"Finkenkrug",
  			"Nauen"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#198568#TA#0#DA#301224#1S#8011113#1T#1202#LS#8010239#LT#1250#PU#81#RT#1#CA#RB#ZE#18514#ZB#RB 18514#PC#3#FR#8011113#FT#1202#TO#8010239#TT#1250#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RB 18514",
  			"kurzText": "RB",
  			"mittelText": "RB 10",
  			"langText": "RB 18514",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Nauen"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:14:00",
  		"gleis": "13",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Zoologischer Garten",
  			"Berlin-Charlottenburg",
  			"Berlin-Wannsee",
  			"Potsdam Medienstadt Babelsberg",
  			"Potsdam-Rehbrücke",
  			"Wilhelmshorst",
  			"Dessau Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199814#TA#1#DA#301224#1S#8010327#1T#1014#LS#8010077#LT#1353#PU#81#RT#1#CA#RE#ZE#3721#ZB#RE  3721#PC#3#FR#8010327#FT#1014#TO#8010077#TT#1353#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3721",
  			"kurzText": "RE",
  			"mittelText": "RE 7",
  			"langText": "RE 3721",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Dessau Hbf"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:14:00",
  		"gleis": "12",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Friedrichstraße",
  			"Berlin Alexanderplatz",
  			"Berlin Ostbahnhof",
  			"Berlin Ostkreuz",
  			"Erkner",
  			"Fangschleuse",
  			"Frankfurt(Oder)"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#358604#TA#3#DA#301224#1S#8010060#1T#1119#LS#8010113#LT#1331#PU#81#RT#1#CA#DPN#ZE#73768#ZB#RE 73768#PC#3#FR#8010060#FT#1119#TO#8010113#TT#1331#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 73768",
  			"kurzText": "RE",
  			"mittelText": "RE 1",
  			"langText": "RE 73768",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Frankfurt(Oder)"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:15:00",
  		"gleis": "2",
  		"ueber": ["Berlin Hbf", "Berlin Potsdamer Platz", "Berlin Südkreuz"],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199630#TA#0#DA#301224#1S#8011293#1T#1038#LS#8011113#LT#1223#PU#81#RT#1#CA#RE#ZE#3509#ZB#RE  3509#PC#3#FR#8011293#FT#1038#TO#8011113#TT#1223#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3509",
  			"kurzText": "RE",
  			"mittelText": "RE 5",
  			"langText": "RE 3509",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Berlin Südkreuz"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:18:00",
  		"gleis": "3",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Gesundbrunnen",
  			"Berlin Ostkreuz",
  			"Flughafen BER",
  			"Birkengrund",
  			"Ludwigsfelde"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#1172138#TA#0#DA#301224#1S#8098160#1T#1218#LS#8010215#LT#1323#PU#81#RT#1#CA#FEX#ZE#19839#ZB#FEX19839#PC#3#FR#8098160#FT#1218#TO#8010215#TT#1323#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "FEX19839",
  			"kurzText": "FEX",
  			"mittelText": "FEX19839",
  			"langText": "FEX19839",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Ludwigsfelde"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:20:00",
  		"gleis": "14",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Zoologischer Garten",
  			"Berlin-Spandau",
  			"Falkensee",
  			"Nauen",
  			"Paulinenaue",
  			"Friesack(Mark)",
  			"Wittenberge"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#358096#TA#0#DA#301224#1S#8011201#1T#1144#LS#8010382#LT#1357#PU#81#RT#1#CA#DPN#ZE#62017#ZB#RE 62017#PC#3#FR#8011201#FT#1144#TO#8010382#TT#1357#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 62017",
  			"kurzText": "RE",
  			"mittelText": "RE 8",
  			"langText": "RE 62017",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Wittenberge"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:23:00",
  		"gleis": "12",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Friedrichstraße",
  			"Berlin Alexanderplatz",
  			"Berlin Ostbahnhof",
  			"Berlin Ostkreuz",
  			"Königs Wusterhausen",
  			"Brand Tropical Islands",
  			"Cottbus Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199164#TA#1#DA#301224#1S#8010239#1T#1137#LS#8010073#LT#1355#PU#81#RT#1#CA#RE#ZE#3116#ZB#RE  3116#PC#3#FR#8010239#FT#1137#TO#8010073#TT#1355#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3116",
  			"kurzText": "RE",
  			"mittelText": "RE 2",
  			"langText": "RE 3116",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Cottbus Hbf"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:26:00",
  		"gleis": "2",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Südkreuz",
  			"Flughafen BER",
  			"Doberlug-Kirchhain",
  			"Elsterwerda"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#192062#TA#2#DA#301224#1S#8098160#1T#1226#LS#8010099#LT#1355#PU#81#RT#1#CA#RE#ZE#52177#ZB#RE 52177#PC#3#FR#8098160#FT#1226#TO#8010099#TT#1355#",
  		"meldungen": [
  			{ "prioritaet": "HOCH", "text": "Fahrradmitnahme reservierungspflichtig." }
  		],
  		"verkehrmittel": {
  			"name": "RE 52177",
  			"kurzText": "RE",
  			"mittelText": "RE 17",
  			"langText": "RE 52177",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Elsterwerda"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:26:00",
  		"gleis": "2",
  		"ueber": [
  			"Berlin Hbf",
  			"Flughafen BER",
  			"Doberlug-Kirchhain",
  			"Elsterwerda",
  			"Dresden-Neustadt",
  			"Dresden Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#194221#TA#1#DA#301224#1S#8011102#1T#1218#LS#8010085#LT#1427#PU#81#RT#1#CA#IC#ZE#2177#ZB#IC  2177#PC#1#FR#8011102#FT#1218#TO#8010085#TT#1427#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "IC 2177",
  			"kurzText": "IC",
  			"mittelText": "IC 2177",
  			"langText": "IC 2177",
  			"produktGattung": "EC_IC"
  		},
  		"terminus": "Dresden Hbf"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:28:00",
  		"gleis": "1",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Südkreuz",
  			"Lutherstadt Wittenberg Hbf",
  			"Leipzig Hbf",
  			"Erfurt Hbf",
  			"Bamberg",
  			"Erlangen",
  			"München Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#195056#TA#0#DA#301224#1S#8002553#1T#1017#LS#8000261#LT#1701#PU#81#RT#1#CA#ICE#ZE#509#ZB#ICE  509#PC#0#FR#8002553#FT#1017#TO#8000261#TT#1701#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "ICE 509",
  			"kurzText": "ICE",
  			"mittelText": "ICE 509",
  			"langText": "ICE 509",
  			"produktGattung": "ICE"
  		},
  		"terminus": "München Hbf"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:30:00",
  		"gleis": "14",
  		"ueber": [
  			"Berlin Hbf",
  			"Wolfsburg Hbf",
  			"Braunschweig Hbf",
  			"Hildesheim Hbf",
  			"Göttingen",
  			"Kassel-Wilhelmshöhe",
  			"Fulda",
  			"Interlaken Ost"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#236198#TA#0#DA#301224#1S#8010255#1T#1217#LS#8507492#LT#2159#PU#81#RT#1#CA#ICE#ZE#373#ZB#ICE  373#PC#0#FR#8010255#FT#1217#TO#8507492#TT#2159#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "ICE 373",
  			"kurzText": "ICE",
  			"mittelText": "ICE 373",
  			"langText": "ICE 373",
  			"produktGattung": "ICE"
  		},
  		"terminus": "Interlaken Ost"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:32:00",
  		"gleis": "4",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Potsdamer Platz",
  			"Berlin Südkreuz",
  			"Berlin-Lichterfelde Ost",
  			"Teltow",
  			"Großbeeren",
  			"Birkengrund",
  			"Lutherstadt Wittenberg Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199517#TA#0#DA#301224#1S#8012943#1T#1106#LS#8010222#LT#1359#PU#81#RT#1#CA#RE#ZE#3347#ZB#RE  3347#PC#3#FR#8012943#FT#1106#TO#8010222#TT#1359#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3347",
  			"kurzText": "RE",
  			"mittelText": "RE 3",
  			"langText": "RE 3347",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Lutherstadt Wittenberg Hbf"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:33:00",
  		"gleis": "6",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Gesundbrunnen",
  			"Bernau(b Berlin)",
  			"Eberswalde Hbf",
  			"Britz",
  			"Chorin",
  			"Angermünde",
  			"Stralsund Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199395#TA#0#DA#301224#1S#8010222#1T#1103#LS#8010338#LT#1541#PU#81#RT#1#CA#RE#ZE#3310#ZB#RE  3310#PC#3#FR#8010222#FT#1103#TO#8010338#TT#1541#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3310",
  			"kurzText": "RE",
  			"mittelText": "RE 3",
  			"langText": "RE 3310",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Stralsund Hbf"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:36:00",
  		"gleis": "8",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin-Spandau",
  			"Hamburg Hbf",
  			"Hamburg Dammtor",
  			"Hamburg-Altona"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#196827#TA#0#DA#301224#1S#8000261#1T#713#LS#8002553#LT#1438#PU#81#RT#1#CA#ICE#ZE#802#ZB#ICE  802#PC#0#FR#8000261#FT#713#TO#8002553#TT#1438#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "ICE 802",
  			"kurzText": "ICE",
  			"mittelText": "ICE 802",
  			"langText": "ICE 802",
  			"produktGattung": "ICE"
  		},
  		"terminus": "Hamburg-Altona"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:37:00",
  		"gleis": "14",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Zoologischer Garten",
  			"Berlin-Charlottenburg",
  			"Berlin-Spandau",
  			"Albrechtshof",
  			"Seegefeld",
  			"Falkensee",
  			"Nauen"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199166#TA#1#DA#301224#1S#8010073#1T#1104#LS#8010239#LT#1321#PU#81#RT#1#CA#RE#ZE#3117#ZB#RE  3117#PC#3#FR#8010073#FT#1104#TO#8010239#TT#1321#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3117",
  			"kurzText": "RE",
  			"mittelText": "RE 2",
  			"langText": "RE 3117",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Nauen"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:40:00",
  		"gleis": "12",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Friedrichstraße",
  			"Berlin Alexanderplatz",
  			"Berlin Ostbahnhof",
  			"Berlin Ostkreuz",
  			"Flughafen BER"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#358092#TA#0#DA#301224#1S#8010381#1T#924#LS#8011201#LT#1315#PU#81#RT#1#CA#DPN#ZE#62014#ZB#RE 62014#PC#3#FR#8010381#FT#924#TO#8011201#TT#1315#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 62014",
  			"kurzText": "RE",
  			"mittelText": "RE 8",
  			"langText": "RE 62014",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Flughafen BER"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:41:00",
  		"gleis": "13",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Zoologischer Garten",
  			"Berlin-Wannsee",
  			"Potsdam Hbf",
  			"Potsdam Charlottenhof",
  			"Potsdam Park Sanssouci",
  			"Werder(Havel)",
  			"Brandenburg Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#358607#TA#0#DA#301224#1S#8010113#1T#1126#LS#8010060#LT#1338#PU#81#RT#1#CA#DPN#ZE#73773#ZB#RE 73773#PC#3#FR#8010113#FT#1126#TO#8010060#TT#1338#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 73773",
  			"kurzText": "RE",
  			"mittelText": "RE 1",
  			"langText": "RE 73773",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Brandenburg Hbf"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:45:00",
  		"gleis": "1",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Potsdamer Platz",
  			"Berlin Südkreuz",
  			"Berlin-Lichterfelde Ost",
  			"Blankenfelde(Teltow-Fläming)",
  			"Dahlewitz",
  			"Rangsdorf",
  			"Baruth(Mark)"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#358196#TA#2#DA#301224#1S#8098160#1T#1245#LS#8011116#LT#1353#PU#81#RT#1#CA#DPN#ZE#62068#ZB#RE 62068#PC#3#FR#8098160#FT#1245#TO#8011116#TT#1353#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 62068",
  			"kurzText": "RE",
  			"mittelText": "RE 8",
  			"langText": "RE 62068",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Baruth(Mark)"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:46:00",
  		"gleis": "14",
  		"ueber": [
  			"Berlin Hbf",
  			"Wolfsburg Hbf",
  			"Hannover Hbf",
  			"Minden(Westf)",
  			"Bielefeld Hbf",
  			"Dortmund Hbf",
  			"Bochum Hbf",
  			"Düsseldorf Hbf"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#195509#TA#0#DA#301224#1S#8010255#1T#1232#LS#8000085#LT#1708#PU#81#RT#1#CA#ICE#ZE#548#ZB#ICE  548#PC#0#FR#8010255#FT#1232#TO#8000085#TT#1708#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "ICE 548",
  			"kurzText": "ICE",
  			"mittelText": "ICE 548",
  			"langText": "ICE 548",
  			"produktGattung": "ICE"
  		},
  		"terminus": "Düsseldorf Hbf"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:46:00",
  		"gleis": "11",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Friedrichstraße",
  			"Berlin Alexanderplatz",
  			"Berlin Ostbahnhof",
  			"Berlin Ostkreuz",
  			"Königs Wusterhausen",
  			"Zeesen",
  			"Senftenberg"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199804#TA#1#DA#301224#1S#8010077#1T#1105#LS#8010327#LT#1441#PU#81#RT#1#CA#RE#ZE#3718#ZB#RE  3718#PC#3#FR#8010077#FT#1105#TO#8010327#TT#1441#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 3718",
  			"kurzText": "RE",
  			"mittelText": "RE 7",
  			"langText": "RE 3718",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Senftenberg"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:46:00",
  		"gleis": "6",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Gesundbrunnen",
  			"Oranienburg",
  			"Gransee",
  			"Dannenwalde(Gransee)",
  			"Fürstenberg(Havel)",
  			"Neustrelitz Hbf",
  			"Burg Stargard(Meckl)"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#199984#TA#0#DA#301224#1S#8011113#1T#1236#LS#8011293#LT#1422#PU#81#RT#1#CA#RE#ZE#4358#ZB#RE  4358#PC#3#FR#8011113#FT#1236#TO#8011293#TT#1422#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RE 4358",
  			"kurzText": "RE",
  			"mittelText": "RE 5",
  			"langText": "RE 4358",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Burg Stargard(Meckl)"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:47:00",
  		"gleis": "2",
  		"ueber": ["Berlin Hbf", "Berlin Potsdamer Platz", "Berlin Südkreuz"],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#198571#TA#0#DA#301224#1S#8010239#1T#1208#LS#8011113#LT#1254#PU#81#RT#1#CA#RB#ZE#18515#ZB#RB 18515#PC#3#FR#8010239#FT#1208#TO#8011113#TT#1254#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RB 18515",
  			"kurzText": "RB",
  			"mittelText": "RB 10",
  			"langText": "RB 18515",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Berlin Südkreuz"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:50:00",
  		"gleis": "13",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Zoologischer Garten",
  			"Berlin-Charlottenburg",
  			"Berlin-Wannsee",
  			"Potsdam Griebnitzsee",
  			"Potsdam Hbf",
  			"Potsdam Charlottenhof",
  			"Golm"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#198146#TA#0#DA#301224#1S#8011201#1T#1214#LS#8013481#LT#1329#PU#81#RT#1#CA#RB#ZE#18154#ZB#RB 18154#PC#3#FR#8011201#FT#1214#TO#8013481#TT#1329#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RB 18154",
  			"kurzText": "RB",
  			"mittelText": "RB 23",
  			"langText": "RB 18154",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Golm"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:50:00",
  		"gleis": "7",
  		"ueber": [
  			"Berlin Hbf",
  			"Berlin Jungfernheide",
  			"Berlin-Spandau",
  			"Albrechtshof",
  			"Seegefeld",
  			"Falkensee",
  			"Finkenkrug",
  			"Nauen"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#198709#TA#0#DA#301224#1S#8011113#1T#1241#LS#8010239#LT#1333#PU#81#RT#1#CA#RB#ZE#18614#ZB#RB 18614#PC#3#FR#8011113#FT#1241#TO#8010239#TT#1333#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "RB 18614",
  			"kurzText": "RB",
  			"mittelText": "RB 14",
  			"langText": "RB 18614",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Nauen"
  	},
  	{
  		"bahnhofsId": "8098160",
  		"zeit": "2024-12-30T12:51:00",
  		"gleis": "3",
  		"ueber": ["Berlin Hbf", "Berlin Gesundbrunnen", "Berlin Ostkreuz", "Flughafen BER"],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#198974#TA#3#DA#301224#1S#8098160#1T#1251#LS#8011201#LT#1330#PU#81#RT#1#CA#FEX#ZE#19841#ZB#FEX19841#PC#3#FR#8098160#FT#1251#TO#8011201#TT#1330#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "FEX19841",
  			"kurzText": "FEX",
  			"mittelText": "FEX19841",
  			"langText": "FEX19841",
  			"produktGattung": "REGIONAL"
  		},
  		"terminus": "Flughafen BER"
  	},
  	{
  		"bahnhofsId": "8011160",
  		"zeit": "2024-12-30T12:52:00",
  		"gleis": "12",
  		"ueber": [
  			"Berlin Hbf",
  			"Frankfurt(Oder)",
  			"Rzepin",
  			"Zielona Gora Glowna",
  			"Glogow",
  			"Lubin Gorniczy",
  			"Legnica",
  			"Przemysl Glowny"
  		],
  		"journeyId": "2|#VN#1#ST#1734722398#PI#1#ZI#237798#TA#0#DA#301224#1S#8011160#1T#1252#LS#5100234#LT#2245#PU#81#RT#1#CA#ECW#ZE#57#ZB#EC    57#PC#1#FR#8011160#FT#1252#TO#5100234#TT#2245#",
  		"meldungen": [],
  		"verkehrmittel": {
  			"name": "EC 57",
  			"kurzText": "EC",
  			"mittelText": "EC 57",
  			"langText": "EC 57",
  			"produktGattung": "EC_IC"
  		},
  		"terminus": "Przemysl Glowny"
  	}
  ]
}

Unfortunately, the boards only cover one hour and there does not seem to exist a query parameter with the ability of changing this (same story as with the mobile DB Navigator API)

@dabund24 dabund24 changed the title bahn.de API endpoint for boards bahn.de API endpoints for boards Dec 28, 2024
@traines-source
Copy link
Member

Ah thanks, interesting indeed, hadn't found that yet on the bahn.de website. And yes, if you ever find a way to prolong the covered duration, let us know :)

@traines-source
Copy link
Member

I noticed that the bahn.de variant provides many more remarks in the boards (all that are also attached to the journeys) than the DB Navigator endpoint (which only surfaces the really important ones like "Stop cancelled"). So maybe it would be worth also implementing that, even if it's also limited to an hour...

@dabund24
Copy link
Contributor Author

I would be happy to implement this, though that most likely would not happen before 3rd Februrary, since I'm quite busy in the next two weeks. So if this is something more urgent and somebody has the time to add this to the library, feel free to do so :)

@traines-source
Copy link
Member

traines-source commented Jan 21, 2025

No one has indicated that they need this so far, so yes why not, if you want. I was thinking that we could introduce a separate dbweb (and later also a dbregioguide) profile, which implements the entirety of the relevant bahn.de endpoints (i.e. move the existing journeys() etc. implementation from db profile there) and have the db profile as a "best of all worlds" profile only reuse implementations from the other profiles (just as now, bahn.de for journeys and regio-guide for boards). And then there is also a commented out implementation of the RIS::Stations RIS::Boards (requires API Key) that could become a dbris profile. But that was just an idea.

@dabund24
Copy link
Contributor Author

Sounds sensible 👍

@traines-source
Copy link
Member

bahn.de boards endpoint also returns some stopovers (ueber), so that is another useful thing that none of the other two implemented board endpoints offers so far (only RIS::Boards does).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants