Google Flight Result API

For searches with flight numbers, Google search includes the "Flight details" block. SerpApi is able to scrape, extract, and make sense of this information.


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

Head to the playground for a live and interactive demo.

API Examples

JSON structure overview

{
  ...
  "flight_result": {
    "title": "String - The title of the flight result",
    "flight_designator": "String - The airline code + flight number",
    "route": "String - The route of the flight",
    "airline": "String - The airline of the flight",
    "airline_iata_code": "String - The IATA code of the airline",
    "available_dates": "Array - Available flight dates in YYYY-MM-DD format",
    "dates": [
      {
        "date": "String - The date of the flight",
        "metadata": {
          "airline_iata_code": "String - The IATA code of the airline",
          "flight_number": "String - The flight number",
          "origin": "String - The origin of the flight",
          "destination": "String - The destination of the flight",
          "status": "String - The status of the flight",
          "departure_delay": "Integer - The departure delay in minutes",
          "arrival_delay": "Integer - The arrival delay in minutes"
        },
        "flight_designator": "String - The airline code + flight number",
        "duration": "Integer - The duration of the flight in minutes",
        "source": "String - The source of the flight information",
        "source_url": "String - The URL of the source of the flight information",
        "codeshare": "String - The codeshare information of the flight",
        "updated_at": "String (ISO 8601) - The time when the flight information was last updated",
        "status": "String - The status of the flight",
        "duration_label": "String - The duration label of the flight",
        "updated_label": "String - The updated label of the flight",
        "departure_airport": {
          "id": "String - The ID of the airport",
          "city": "String - The city of the airport",
          "gate": "String - The gate of the airport",
          "scheduled_time_label": "String - The scheduled time label of the departure airport",
          "scheduled_time": "String - The scheduled time of the airport",
          "status": "String - The status of the flight at the departure airport",
          "terminal": "String - The terminal of the airport",
          "time_label": "String - The time label of the departure airport",
          "time": "String - The time of the departure airport"
        },
        "arrival_airport": {
          "id": "String - The ID of the airport",
          "city": "String - The city of the airport",
          "gate": "String - The gate of the arrival airport",
          "scheduled_time_label": "String - The scheduled time label of the arrival airport",
          "scheduled_time": "String - The scheduled time of the airport",
          "status": "String - The status of the flight at the arrival airport",
          "terminal": "String - The terminal of the airport",
          "time_label": "String - The time label of the arrival airport",
          "time": "String - The time of the arrival airport"
        }
      },
      ...
    ]
  },
  ...
}