Omio Journeys API

SerpApi is able to scrape, extract, and make sense of Omio journeys.

We add them to our JSON output as the arrays trains, buses, flights, and ferries, like the tabs on Omio. Journeys of all travel modes have the same structure: departure and arrival stations, times, duration, company, price, and booking link, with a segments array for each vehicle and a layovers array for each transfer.


The API endpoint is https://serpapi.com/search?engine=omio

Head to the playground for a live and interactive demo.

API examples

Example with segments and layovers

A journey with transfers has one segment per vehicle, each with its stations, times, duration, company, and transport_id, and one layover per transfer, with its station and duration in minutes. total_duration includes the layovers, and times are local to each station. The screenshots show Omio's prices for visitors in the United States, without taxes; price includes taxes, like the total on Omio's booking page.

Example with segments and layovers

JSON Example

{
  ...
  "buses": [
    {
      "departure_station": {
        "name": "Berlin, Bahnhof Südkreuz",
        "id": "8596206",
        "time": "2027-01-02 07:15"
      },
      "arrival_station": {
        "name": "München, Fröttmaning P+R Parkplatz",
        "id": "16811044",
        "time": "2027-01-02 17:35"
      },
      "total_duration": 620,
      "company": "FlixBus",
      "company_logo": "https://static.omio.design/web/logos/63/meinfernbus_flixbus.png",
      "segments": [
        {
          "travel_mode": "bus",
          "departure_station": {
            "name": "Berlin, Bahnhof Südkreuz",
            "id": "8596206",
            "time": "2027-01-02 07:15"
          },
          "arrival_station": {
            "name": "Praha, ÚAN Florenc",
            "id": "3346249",
            "time": "2027-01-02 11:40"
          },
          "duration": 265,
          "company": "FlixBus",
          "company_logo": "https://static.omio.design/web/logos/63/meinfernbus_flixbus.png",
          "transport_id": "FlixBus"
        },
        {
          "travel_mode": "bus",
          "departure_station": {
            "name": "Praha, ÚAN Florenc",
            "id": "3346249",
            "time": "2027-01-02 12:50"
          },
          "arrival_station": {
            "name": "München, Fröttmaning P+R Parkplatz",
            "id": "16811044",
            "time": "2027-01-02 17:35"
          },
          "duration": 285,
          "company": "FlixBus",
          "company_logo": "https://static.omio.design/web/logos/63/meinfernbus_flixbus.png",
          "transport_id": "FlixBus"
        }
      ],
      "layovers": [
        {
          "name": "Praha, ÚAN Florenc",
          "id": "3346249",
          "duration": 70
        }
      ],
      "price": 50.11,
      "booking_link": "https://www.omio.com/app/search-frontend/journey/bus/-1426201817/E46CEBB9035544FAB808B23CD75F4C244/-3598404759741043068?locale=en&origin_domain=com"
    },
    ...
  ],
  ...
}

Example with airports

Airports have their IATA code in iata_code, in the stations of the journey, of its segments, and of its layovers. For flights, transport_id is the flight number.

Example with airports

JSON Example

{
  ...
  "flights": [
    {
      "departure_station": {
        "name": "Berlin Brandenburg Airport",
        "id": "17134736",
        "iata_code": "BER",
        "time": "2027-01-02 12:05"
      },
      "arrival_station": {
        "name": "Munich Airport",
        "id": "313870",
        "iata_code": "MUC",
        "time": "2027-01-02 19:10"
      },
      "total_duration": 425,
      "company": "Eurowings",
      "company_logo": "https://static.omio.design/web/logos/63/eurowings.png",
      "segments": [
        {
          "travel_mode": "flight",
          "departure_station": {
            "name": "Berlin Brandenburg Airport",
            "id": "17134736",
            "iata_code": "BER",
            "time": "2027-01-02 12:05"
          },
          "arrival_station": {
            "name": "Dusseldorf Airport",
            "id": "314036",
            "iata_code": "DUS",
            "time": "2027-01-02 13:10"
          },
          "duration": 65,
          "company": "Eurowings",
          "company_logo": "https://static.omio.design/web/logos/63/eurowings.png",
          "transport_id": "EW9043"
        },
        {
          "travel_mode": "flight",
          "departure_station": {
            "name": "Dusseldorf Airport",
            "id": "314036",
            "iata_code": "DUS",
            "time": "2027-01-02 18:00"
          },
          "arrival_station": {
            "name": "Munich Airport",
            "id": "313870",
            "iata_code": "MUC",
            "time": "2027-01-02 19:10"
          },
          "duration": 70,
          "company": "Eurowings",
          "company_logo": "https://static.omio.design/web/logos/63/eurowings.png",
          "transport_id": "EW9084"
        }
      ],
      "layovers": [
        {
          "name": "Dusseldorf Airport",
          "id": "314036",
          "iata_code": "DUS",
          "duration": 290
        }
      ],
      "price": 182.3,
      "booking_link": "https://www.omio.com/app/search-frontend/journey/flight/-1380970209/E46CEBB9035544FAB808B23CD75F4C244/349806257189748206?locale=en&origin_domain=com"
    },
    ...
  ],
  ...
}

Example with operating carriers: departure_id: 315110 (London Heathrow Airport) and arrival_id: 315042 (Paris Charles de Gaulle Airport)

When another company operates a flight, operated_by has its name, like "Operated by" on Omio. partially_operated is true when it only operates some of the segments, like "Partially operated by".

Example with operating carriers: departure_id: 315110 (London Heathrow Airport) and arrival_id: 315042 (Paris Charles de Gaulle Airport)

JSON Example

{
  ...
  "flights": [
    {
      "departure_station": {
        "name": "London Heathrow Airport",
        "id": "315110",
        "iata_code": "LHR",
        "time": "2027-01-02 16:40"
      },
      "arrival_station": {
        "name": "Paris Charles de Gaulle Airport",
        "id": "315042",
        "iata_code": "CDG",
        "time": "2027-01-02 22:55"
      },
      "total_duration": 315,
      "company": "Lufthansa",
      "company_logo": "https://static.omio.design/web/logos/63/lufthansa.png",
      "operated_by": "Lufthansa City Airlines",
      "partially_operated": true,
      "segments": [
        {
          "travel_mode": "flight",
          "departure_station": {
            "name": "London Heathrow Airport",
            "id": "315110",
            "iata_code": "LHR",
            "time": "2027-01-02 16:40"
          },
          "arrival_station": {
            "name": "Munich Airport",
            "id": "313870",
            "iata_code": "MUC",
            "time": "2027-01-02 19:30"
          },
          "duration": 110,
          "company": "Lufthansa",
          "company_logo": "https://static.omio.design/web/logos/63/lufthansa.png",
          "transport_id": "LH2477"
        },
        {
          "travel_mode": "flight",
          "departure_station": {
            "name": "Munich Airport",
            "id": "313870",
            "iata_code": "MUC",
            "time": "2027-01-02 21:15"
          },
          "arrival_station": {
            "name": "Paris Charles de Gaulle Airport",
            "id": "315042",
            "iata_code": "CDG",
            "time": "2027-01-02 22:55"
          },
          "duration": 100,
          "company": "Lufthansa City Airlines",
          "company_logo": "https://static.omio.design/web/logos/63/lh_city_airlines.png",
          "transport_id": "LH4150"
        }
      ],
      "layovers": [
        {
          "name": "Munich Airport",
          "id": "313870",
          "iata_code": "MUC",
          "duration": 105
        }
      ],
      "price": 278.98,
      "booking_link": "https://www.omio.com/app/search-frontend/journey/flight/-883118901/LD843708170F94AB3AA6B34532B3E7CDA/3064224957359158501?locale=en&origin_domain=com"
    },
    {
      "departure_station": {
        "name": "London Heathrow Airport",
        "id": "315110",
        "iata_code": "LHR",
        "time": "2027-01-02 11:30"
      },
      "arrival_station": {
        "name": "Paris Charles de Gaulle Airport",
        "id": "315042",
        "iata_code": "CDG",
        "time": "2027-01-02 18:25"
      },
      "total_duration": 355,
      "company": "Lufthansa",
      "company_logo": "https://static.omio.design/web/logos/63/lufthansa.png",
      "operated_by": "Lufthansa City Airlines",
      "segments": [
        {
          "travel_mode": "flight",
          "departure_station": {
            "name": "London Heathrow Airport",
            "id": "315110",
            "iata_code": "LHR",
            "time": "2027-01-02 11:30"
          },
          "arrival_station": {
            "name": "Frankfurt am Main Airport",
            "id": "314847",
            "iata_code": "FRA",
            "time": "2027-01-02 14:05"
          },
          "duration": 95,
          "company": "Lufthansa City Airlines",
          "company_logo": "https://static.omio.design/web/logos/63/lh_city_airlines.png",
          "transport_id": "LH4227"
        },
        {
          "travel_mode": "flight",
          "departure_station": {
            "name": "Frankfurt am Main Airport",
            "id": "314847",
            "iata_code": "FRA",
            "time": "2027-01-02 17:10"
          },
          "arrival_station": {
            "name": "Paris Charles de Gaulle Airport",
            "id": "315042",
            "iata_code": "CDG",
            "time": "2027-01-02 18:25"
          },
          "duration": 75,
          "company": "Lufthansa City Airlines",
          "company_logo": "https://static.omio.design/web/logos/63/lh_city_airlines.png",
          "transport_id": "LH4052"
        }
      ],
      "layovers": [
        {
          "name": "Frankfurt am Main Airport",
          "id": "314847",
          "iata_code": "FRA",
          "duration": 185
        }
      ],
      "price": 287.69,
      "booking_link": "https://www.omio.com/app/search-frontend/journey/flight/-2044496368/LD843708170F94AB3AA6B34532B3E7CDA/7150882680912017064?locale=en&origin_domain=com"
    },
    ...
  ],
  ...
}

JSON structure overview

{
  ...
  "trains": [
    {
      "departure_station": {
        "name": "String - Name of the station, airport, bus stop, or port.",
        "id": "String - Omio place ID of the station, to use in departure_id or arrival_id. Missing for stops Omio only knows by their address, like car pooling meeting points.",
        "iata_code": "String - IATA code of the airport.",
        "time": "String - Local date and time of the departure, in YYYY-MM-DD HH:MM format.",
        "distance_km": "Number - Distance from the place of the search, in kilometers, for alternative routes."
      },
      "arrival_station": {
        "name": "String - Name of the station, airport, bus stop, or port.",
        "id": "String - Omio place ID of the station, to use in departure_id or arrival_id. Missing for stops Omio only knows by their address.",
        "iata_code": "String - IATA code of the airport.",
        "time": "String - Local date and time of the arrival, in YYYY-MM-DD HH:MM format.",
        "distance_km": "Number - Distance from the place of the search, in kilometers, for alternative routes."
      },
      "total_duration": "Integer - Duration of the journey, in minutes.",
      "company": "String - Company of the journey, or the first one when Omio shows several. (Ex. Deutsche Bahn, FlixBus, Lufthansa)",
      "company_logo": "String - Link to the logo of the company.",
      "companies": [
        {
          "name": "String - Name of a company of the journey, when Omio shows several. (Ex. Italo, Deutsche Bahn)",
          "logo": "String - Link to the logo of the company."
        }
      ],
      "operated_by": "String - Company operating the journey for the company. (Ex. Air France for KLM)",
      "partially_operated": "Boolean - True if operated_by only operates some segments of the journey.",
      "tickets_left": "Integer - Number of tickets left, when Omio shows it.",
      "car_pooling": "Boolean - True for car pooling rides, like BlaBlaCar, which Omio lists with the buses.",
      "alternative_route": "Boolean - True for journeys from or to a nearby place.",
      "segments": [
        {
          "travel_mode": "String - Travel mode of the segment. (Ex. train, bus, flight, ferry)",
          "departure_station": {
            "name": "String - Name of the station.",
            "id": "String - Omio place ID of the station.",
            "iata_code": "String - IATA code of the airport.",
            "time": "String - Local date and time of the departure, in YYYY-MM-DD HH:MM format."
          },
          "arrival_station": {
            "name": "String - Name of the station.",
            "id": "String - Omio place ID of the station.",
            "iata_code": "String - IATA code of the airport.",
            "time": "String - Local date and time of the arrival, in YYYY-MM-DD HH:MM format."
          },
          "duration": "Integer - Duration of the segment, in minutes.",
          "company": "String - Company of the segment.",
          "company_logo": "String - Link to the logo of the company.",
          "transport_id": "String - Number or name of the train, flight, bus, or ferry. (Ex. ICE 1005, VY7643, SNAV JET)"
        }
      ],
      "layovers": [
        {
          "name": "String - Name of the station of the transfer.",
          "id": "String - Omio place ID of the station.",
          "iata_code": "String - IATA code of the airport.",
          "duration": "Integer - Duration of the transfer, in minutes."
        }
      ],
      "price": "Float - Price of the journey for all the passengers, with taxes, in the currency of the search. For round trips, price of the outbound or of the return journey.",
      "total_price": "Float - Price of the round trip, for return journeys.",
      "departure_token": "String - Token to get the return journeys of an outbound journey, for round trips.",
      "booking_link": "String - Link to the journey on Omio, to book it."
    }
  ],
  "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."
  ]
}