Omio Round Trips API
SerpApi is able to scrape, extract, and make sense of Omio round trips.
With return_date, the results are the outbound journeys, each with a departure_token. Search again with the same parameters and the departure_token of an outbound journey to get its return journeys, with the total_price and the booking_link of the round trip.
The API endpoint is https://serpapi.com/search?engine=omio
Head to the playground for a live and interactive demo.
API parameters
return_date
Required
Parameter defines the return date, for a round trip. The format is YYYY-MM-DD (e.g., 2026-12-12). It can't be earlier than outbound_date.
Round trip results are the outbound journeys, with the outbound price. Use the departure_token of a journey to get its return journeys.
return_time
Optional
Parameter defines the time Omio searches return trains from, like "Depart at" on Omio. The format is HH:MM (e.g., 16:00). On routes where Omio searches trains in a time window, the window starts at this time (usually 12:00 without it). The results have every train Omio returns, including trains that depart outside the window. Other routes have all the trains of the day, whatever this time. It can only be used with return_date.
departure_token
Optional
Parameter is used to select an outbound journey and get its return journeys. Find this token in the round trip results. It must be used with the same parameters as the search the token comes from, including return_date. Head to the Omio Round Trips API page for more details.
When Omio doesn't know a departure_token for the search, like a token from another search or for a journey Omio doesn't sell anymore, the result has the error Omio hasn't returned any return journeys for this `departure_token`.
API examples
Example with return_date: outbound journeys
Outbound journeys have a departure_token instead of a booking_link, like "Select outbound" on Omio. price is the price of the outbound journey for all the passengers, like "Outbound price for 2 adults" on Omio.
{
...
"trains": [
{
"departure_station": {
"name": "Berlin Hbf",
"id": "334196",
"time": "2027-01-02 08:36"
},
"arrival_station": {
"name": "Munich Hbf",
"id": "329668",
"time": "2027-01-02 13:20"
},
"total_duration": 284,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"segments": [
{
"travel_mode": "train",
"departure_station": {
"name": "Berlin Hbf",
"id": "334196",
"time": "2027-01-02 08:36"
},
"arrival_station": {
"name": "Munich Hbf",
"id": "329668",
"time": "2027-01-02 13:20"
},
"duration": 284,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"transport_id": "ICE 1005"
}
],
"price": 156.55,
"departure_token": "-8583056477019539070"
},
{
"departure_station": {
"name": "Berlin Hbf",
"id": "334196",
"time": "2027-01-02 09:37"
},
"arrival_station": {
"name": "Munich Hbf",
"id": "329668",
"time": "2027-01-02 14:21"
},
"total_duration": 284,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"segments": [
{
"travel_mode": "train",
"departure_station": {
"name": "Berlin Hbf",
"id": "334196",
"time": "2027-01-02 09:37"
},
"arrival_station": {
"name": "Munich Hbf",
"id": "329668",
"time": "2027-01-02 14:21"
},
"duration": 284,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"transport_id": "ICE 1505"
}
],
"price": 182.64,
"departure_token": "-6547174371218490557"
},
...
],
...
}
Example with departure_token: return journeys
With the same parameters and the departure_token of an outbound journey, the results are its return journeys, in the travel mode of the outbound journey, like "Select return" on Omio. price is the price of the return journey, and total_price the price of the round trip. booking_link opens the round trip on Omio, to book both journeys.
{
...
"trains": [
{
"departure_station": {
"name": "Munich Hbf",
"id": "329668",
"time": "2027-01-05 12:34"
},
"arrival_station": {
"name": "Berlin Hbf",
"id": "334196",
"time": "2027-01-05 17:23"
},
"total_duration": 289,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"segments": [
{
"travel_mode": "train",
"departure_station": {
"name": "Munich Hbf",
"id": "329668",
"time": "2027-01-05 12:34"
},
"arrival_station": {
"name": "Berlin Hbf",
"id": "334196",
"time": "2027-01-05 17:23"
},
"duration": 289,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"transport_id": "ICE 1006"
}
],
"price": 104.36,
"total_price": 260.91,
"booking_link": "https://www.omio.com/app/search-frontend/journey/train/1603796686/LD88C791FAC0E4F69B8871FE5EFEE109F/-8583056477019539070/-1866535841138432838?locale=en&origin_domain=com"
},
{
"departure_station": {
"name": "Munich Hbf",
"id": "329668",
"time": "2027-01-05 12:38"
},
"arrival_station": {
"name": "Berlin Hbf",
"id": "334196",
"time": "2027-01-05 17:23"
},
"total_duration": 285,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"segments": [
{
"travel_mode": "train",
"departure_station": {
"name": "Munich Hbf",
"id": "329668",
"time": "2027-01-05 12:38"
},
"arrival_station": {
"name": "Nuremberg Hbf",
"id": "329690",
"time": "2027-01-05 14:26"
},
"duration": 108,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"transport_id": "ICE 588"
},
{
"travel_mode": "train",
"departure_station": {
"name": "Nuremberg Hbf",
"id": "329690",
"time": "2027-01-05 14:36"
},
"arrival_station": {
"name": "Berlin Hbf",
"id": "334196",
"time": "2027-01-05 17:23"
},
"duration": 167,
"company": "Deutsche Bahn",
"company_logo": "https://static.omio.design/web/logos/63/deutsche_bahn.png",
"transport_id": "ICE 1006"
}
],
"layovers": [
{
"name": "Nuremberg Hbf",
"id": "329690",
"duration": 10
}
],
"price": 104.36,
"total_price": 260.91,
"booking_link": "https://www.omio.com/app/search-frontend/journey/train/1794632387/LD88C791FAC0E4F69B8871FE5EFEE109F/-8583056477019539070/7772641989346563892?locale=en&origin_domain=com"
},
...
],
...
}
JSON structure overview
{
...
"trains": [
{
...
"price": "Float - Price of the outbound journey for all the passengers, with return_date. Price of the return journey, with departure_token.",
"total_price": "Float - Price of the round trip for all the passengers, with departure_token.",
"departure_token": "String - Token to get the return journeys of the outbound journey, with return_date.",
"booking_link": "String - Link to the round trip on Omio, to book both journeys, with departure_token."
}
],
"buses": [
"Object - Bus journey, with the same fields as trains."
],
"flights": [
"Object - Flight journey, with the same fields as trains."
],
"ferries": [
"Object - Ferry journey, with the same fields as trains."
]
}