Search train journeys
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.
Input
originstringrequireddestinationstringrequireddatestring (date)requiredadultsintegerrequiredResult
datestring (date)adultsintegerhas_morebooleanjourneyslist of objectsnext_cursorstring or nulllist_changedbooleantotal_resultsinteger or nullapplied_originstringapplied_filterslist of stringsno_results_messagestringapplied_destinationstringnext_cursor_expires_atstring or nullnext_cursor_unavailablestring