PomeradoSign inSign up free
API library

Renfe

Spain's national railway operator, offering train timetables, fares and ticket sales.

Tools
1 tool1 read0 write
Login
No login needed

Search train journeys

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

Search Renfe's public one-way adult journeys without signing in or buying, returning train types and numbers, stations, local times, duration, changes, and every shown fare tier with availability and prices in euro cents. Renfe shows the whole date at once; returns up to limit results per call (default 20), and when next_cursor is not null call again within ten minutes with the same inputs and cursor for following results; when list_changed is true, de-duplicate by id. Equal station matches use Renfe's first suggestion; excludes children/infants, promotion codes and optional preference filters, and never selects a fare or books.

Tool ID
tool_bbdec7aa94f061aa6fdf4ebb60154b86
Effect and login
ReadNo login needed

Input

originstringrequired
destinationstringrequired
datestring (date)required
adultsintegerrequired

Result

datestring (date)
adultsinteger
has_moreboolean
journeyslist of objects
next_cursorstring or null
list_changedboolean
total_resultsinteger or null
applied_originstring
applied_filterslist of strings
no_results_messagestring
applied_destinationstring
next_cursor_expires_atstring or null
next_cursor_unavailablestring