PomeradoSign inSign up free
API library

SJ

SJ is a Swedish rail operator and booking site for train journeys in Sweden and beyond.

Tools
1 tool1 read0 write
Login
No login needed

Search train journeys

POST/v1/integrations/{id}/tools/{tool_id}/runsSign in to use

Searches one-way adult journeys for a whole departure day, including hidden earlier services, and waits for every journey's lazy price and available classes before returning times, operators, train numbers, changes, travel time and lowest party prices in SEK öre. Returns up to `limit` results per call (default 20, maximum 50); SJ shows the complete day on one page, and when `next_cursor` is not null, call again within ten minutes with the same inputs and `cursor` set to it for the results that follow; when `list_changed` is true, results may repeat earlier ones, so de-duplicate by journey ID. Search only, never books; unavailable journeys retain their status without invented prices, and optional journey filters, campaign codes, pets and travel-pass additions are excluded.

Tool ID
tool_bc2b646793e3efa208c75f63938f1403
Effect and login
ReadNo login needed

Input

from_stationstringrequired
to_stationstringrequired
datestringrequired
adultsintegerrequired

Result

datestring
adultsinteger
has_moreboolean
journeyslist of objects
to_stationstring
next_cursorstring or null
from_stationstring
list_changedboolean
total_resultsinteger or null
day_journey_countinteger
prices_loaded_countinteger
next_cursor_expires_atstring or null
next_cursor_unavailablestring