SerpApi Official icon

SerpApi Official

Get live Google Search data and more from SerpApi's official node

Search → Google Flights

AI-generated

Overview

This node performs a live search for flight information using the Google Flights engine via SerpApi. It is useful for retrieving flight options, prices, and details based on specified parameters such as departure and arrival airports, travel dates, flight type, and other filters. Practical applications include travel planning, price comparison, and itinerary generation.

Use Case Examples

  1. Search for round-trip flights from Austin (AUS) to Paris (CDG) on specific dates.
  2. Find one-way flights with specific travel class and airline preferences.
  3. Perform multi-city flight searches by providing JSON flight segments.

Properties

Name Meaning
Departure airport code / location kgmid (departure_id) Defines the departure airport code (3-letter IATA) or location kgmid (starts with /m/). Multiple entries can be comma-separated.
Arrival airport code / location kgmid (arrival_id) Defines the arrival airport code (3-letter IATA) or location kgmid (starts with /m/). Multiple entries can be comma-separated.
Outbound Date (outbound_date) Defines the outbound date in YYYY-MM-DD format.
Return Date (return_date) Defines the return date in YYYY-MM-DD format. Required if flight type is round trip.
Flight Type (type) Defines the type of flight: round trip, one way, or multi-city.
Additional Fields Collection of optional parameters to refine the flight search, including country, language, currency, travel class, number of passengers, sorting, stops, airlines to include or exclude, baggage, price limits, time ranges, emissions, layover duration, connecting airports to exclude, max duration, tokens for flight selection and booking, caching, async search, ZeroTrace mode, output format, and JSON restrictor.

Output

JSON

  • search_metadata - Metadata about the search query and results.
  • flight_results - Array of flight options and details returned by the search.
  • booking_options - Booking options for selected flights, if requested.

Dependencies

  • SerpApi API key credential required for authentication.

Troubleshooting

  • Ensure the SerpApi API key credential is correctly configured and valid.
  • Verify that required parameters such as departure_id, arrival_id, and outbound_date are provided and correctly formatted.
  • If using round trip, ensure return_date is provided.
  • Avoid conflicting parameters such as include_airlines and exclude_airlines being used together.
  • Check network connectivity and proxy settings if requests fail.
  • Be aware of rate limits and caching behavior; use no_cache or async parameters appropriately.

Links

Discussion