G2Rail as well as XMove App Apple Store & XMove App Google Play provides straightforward and unified experience to search and book tickets from oversea trains and buses operators. With the APIs, you have access to time table, prices, availabilities from operators in more 50+ countries 10, 000+ stations in Europe, Asia, North America, including Italy, Germany, France, Spain, UK, Belgium, Netherlands, Luxembourg, Switzerland, Austria, Czech Republic, Poland, Russia, Norway, Finnland, Sweden, Japan, Korean, China, Hong Kong, Taiwan, USA, Canada and so on.
The API suite unified booking process of various train/bus operators into 5 APIs including search, book, confirm, download and refund. Proto files
In addition, the API suite is built upon a consolidated ground transportation domain model as well as standardized data such as stations, ticket tariffs, coach class.
This Repository Calls G2Rail Ground Transportation APIs. It is provided in C#.
make gen
ADDRESS=api.g2rail.com APIKEY=api_key_from_g2rail SECRET=api_secret_from_g2rail make client
Please contact us to get an API Key and Secret, then copy the .env.example
file to .env
, set the API_KEY
and API_SECRET
accordingly. Then update in the client class, run the main method, you'll get the result.
In addition to booking API, there are also support APIs such as station departure, train update.
Realtime update of DB ICE 1088 from Kassel to Frankfurt Hbf
Support API include:
Based on departure city or station, return hot destination cities/destinations.
Return real time update of station departure boards data. The data is consolidated from multiple train operators. For example, Roma Termini station departure board shows update from both Trenitalia and Italo.
Return record of train status based on carrier, train number and date. If date is not specified, will return most recent one.
Alibaba - This API suite and data become data infrastructure of Alipay and Fliggy. It is now integrated seamlessly with airline booking, hotel booking, oversea railway booking and oversea bus booking.