PomeradoSign inSign up free
API library

Trainline

A travel platform for comparing and buying train and coach tickets.

Tools
2 tools2 read0 write
Login
No login needed

Search one-way trains

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

Searches Trainline’s one-way journeys and returns schedules, operators, and party-total fares with continuation cursors. Labels itineraries Trainline flags as departing from a different station, turns off the partner hotel offer, and does not book or sign in.

Tool ID
tool_acaef5d0ef6a838682fd7267154d6c60
Effect and login
ReadNo login needed

Input

originstringrequired
destinationstringrequired
datestring (date)required

Result

datestring (date)
timestring
adultsinteger
originstring
currencystring
has_moreboolean
journeyslist of objects
search_urlstring
destinationstring
next_cursorstring or null
list_changedboolean
total_resultsinteger or null
next_cursor_expires_atstring or null
next_cursor_unavailablestring