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…