SERVICE & TOOLS

China Railway 12306

China Railway 12306 — train ticket query, availability, pricing and schedules

16 available tools

get-current-date

Returns the current date in the Asia/Shanghai (UTC+8) timezone as a "yyyy-MM-dd" string. Use it to resolve relative dates like "tomorrow" or "next Wednesday" into exact dates for other tools that requ…

get_current_date

Get current date based on Shanghai timezone (Asia/Shanghai, UTC+8), return format is yyyy-MM-dd. Mainly used to parse relative dates mentioned by users (like tomorrow, next Wednesday), providing accur…

get-interline-tickets

Queries 12306 interline (transfer) ticket availability for a route on a given date. Only the first ten results are returned. Station codes must come from get-station-code-by-names or get-station-code-…

get_interline_tickets

Query 12306 transfer ticket availability. Currently only supports querying the first 10 results

get-station-by-telecode

Looks up full station details, including name, pinyin and city, from a station's station_telecode. Use it mainly to expand a known telecode into complete station data, or for special queries and debug…

get_station_by_telecode

Query detailed station information by station telecode, including name, pinyin, city, etc. Mainly used to get complete station data when telecode is known, or for special queries and debugging purpose…

get-station-code-by-names

Looks up the station_code and station name for specific Chinese station names. Use it to prepare the station_code parameter when the user gives concrete station names as the departure or arrival locat…

get_station_code_by_names

Query station_code and station name by Chinese station name. Mainly used to prepare station_code parameter when user provides specific station name as departure or arrival.

get-station-code-of-citys

Looks up the station_code for a Chinese city name, for when the user gives a city as the departure or arrival point and you need the station_code for other 12306 tools.

get_station_code_of_citys

Query station code for a city by Chinese city name. This interface is mainly used to prepare station_code parameter when user provides city name as departure or destination

get-stations-code-in-city

Looks up every train station in a Chinese city by its Chinese name and returns each station's name with its station_code.

get_stations_code_in_city

Query all train station names and their corresponding station_codes in a city by Chinese city name, result is a list containing multiple station information

get-tickets

Queries remaining ticket availability on 12306 for a given date and station pair. Station codes must come from get-station-code-by-names or get-station-code-of-citys, never raw place names; if the use…

get_tickets

Query 12306 ticket availability

get-train-route-stations

Get the intermediate stops for a specific train over a given segment, including arrival and departure times and dwell time at each station. Use it when the user asks which stations a particular train …

get_train_route_stations

Query detailed stopping information for a specific train number within a specified interval, including passing stations, arrival time, departure time and stop duration. Used when user asks about stopp…