Browser Automation

DSB

Danish State Railways — no public API. Ticket data accessible via browser automation only.

About

DSB (Danske Statsbaner) is the primary Danish train operator. Despite being a public company, DSB provides no public API for ticket pricing, availability, or booking. All agent access must use browser automation (Playwright, Puppeteer) to interact with dsb.dk. The site uses dynamic React rendering, which requires a real browser. Session management and login are required for booking.

Agent Use Cases

  • 01Monitor ticket prices for a specific route over time
  • 02Automate commuter ticket purchase (requires login)
  • 03Capture departure and platform information

Notes

No official API. UI is a React SPA — requires Playwright/Puppeteer. Frequent UI updates break selectors. DSB terms of service may restrict automated access. Use Rejseplanen API for schedules instead.

Something wrong or missing? Edit this entry on GitHub

More in Transport