Bahn.de: document downloading booking #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From a shared piece of text containing a URL starting int.bahn.de and a UUID:
Journey on Mo. 02.02.2026
• from Aachen Hbf, departure at 15:38 Pl. 9 with ICE 17
• to Hamburg Hbf, arrival at 20:57 Pl. 11 with ICE 586
View journey: https://int.bahn.de/en/buchung/start?vbid=f4e90b2f-1d59-477d-8cdc-98d043f9f2cf
Download https://int.bahn.de/web/api/angebote/verbindung/48ab407c-5950-4bb5-a916-4ba744540469
2nd class. Price: super sparpreis: 59.99, sparpreis: 68.99, flexpreis: 109.10
This gives the following json:
The important data is in
hinfahrtReconTo get to the data:
A Location is a string of key=Value pairs, delimited by "@"
Datetimes are in yyyymmddHHMM format
The train number needs splitting and rejoining by a space. If no prefix is included, needs to be found elsewhere.
Where is the operator number?
KCC is the following strings:
This could be more interesting to work on:
Journey on Mo. 19.01.2026
• from Mannheim Hbf, departure at 21:37 Pl. 4 with ICE 379
• via Offenburg, departing at 23:28 from Pl. 3 with RS4 and arriving at Strasbourg at 23:57
• to Paris Est, departure at 06:30 arrival at 08:21 with TGV 2404
View journey: https://int.bahn.de/en/buchung/start?vbid=2a4039d9-f340-4415-9674-f6cf6f1c92cf
No price available.
Goes to: https://int.bahn.de/web/api/angebote/verbindung/2a4039d9-f340-4415-9674-f6cf6f1c92cf
KCC is the following strings:
Following on from the Mannheim to Paris trip, After calling https://int.bahn.de/web/api/angebote/verbindung/2a4039d9-f340-4415-9674-f6cf6f1c92cf
It POSTs to https://int.bahn.de/web/api/angebote/recon
With the following request:
The minimal expression of that is:
With that minimal expression we then get the following response:
If we add the header "Accept-Language: en" to the request, then we get the following response:
In umstiegsAnzahl (Transfer Count) do walking sections count in the transfer count?