Features

A detailed overview of the Google Flights capabilities

Google Flights Parameters

Origin and Destination

Origin

Defines the departure location for the flight search. Accepts a city name, airport code, or region.

Parameter flightFrom: string

Example

https://serp-api.netnut.io/search?engine=google_flights&flightFrom=ny&flightTo=tel-aviv

Use Cases

  • Search flights from a specific city or airport

  • Use IATA codes for precise origin matching (e.g., JFK, EWR, LGA)

  • Regional searches using city or area names


Destination

Defines the arrival location for the flight search. Accepts a city name, airport code, or region.

Parameter flightTo: string

Example

Use Cases

  • Search flights to a specific city or airport

  • Use IATA codes for precise destination matching (e.g., LAX, LHR, TLV)

  • Regional destination searches


Route

Defines a full origin-to-destination route by combining both location parameters.

Parameters flightFrom: string flightTo: string

Example

Use Cases

  • Full route-based flight searches

  • Price monitoring between city pairs

  • Competitive fare analysis across carriers on a single route


Dates

Departure Date

Defines the outbound flight date. The value must be sent in YYYY-MM-DD format.

Parameter departureTime: string

Example

Use Cases

  • Date-specific flight availability

  • Future travel planning

  • Fare trend analysis by departure date


Return Date

Defines the return flight date for round-trip searches. The value must be sent in YYYY-MM-DD format. Omit this parameter for one-way searches.

Parameter returnTime: string

Example

Use Cases

  • Round-trip itinerary searches

  • Stay-length comparisons

  • Travel package pricing


Round-Trip Dates

Defines a complete round-trip itinerary by combining departure and return dates.

Parameters departureTime: string returnTime: string

Example

Use Cases

  • Full round-trip fare retrieval

  • Flexible date comparison across date ranges

  • Accurate itinerary pricing for travel applications


Passengers

Adults

Defines the number of adult passengers.

Parameter adults: integer

Example

Use Cases

  • Solo traveler searches

  • Couple and group fare lookups

  • Passenger-aware pricing


Currency

Defines the currency used for flight prices in the results.

Parameter currency: string

Example

Use Cases

  • Normalize flight pricing across regions

  • Compare fares in a target currency

  • Localized travel pricing analysis


Raw HTML

Controls whether raw HTML is included in the response alongside the parsed JSON.

Parameter rawHtml: integer

Values

Value
Behavior

(omitted)

Returns parsed JSON only (default)

1

Returns both parsed JSON and raw HTML

2

Returns raw HTML only

Example

Use Cases

  • Access the full rendered page alongside structured data

  • Debug or validate parsed output against the source HTML

  • Extract custom fields not included in the default JSON response


Combined Example

You can combine multiple parameters to create a more precise Google Flights search.

Example

This request will:

  • Search Google Flights from New York to Tel Aviv

  • Set a round-trip from June 1 to June 5, 2026

  • Search for 3 adult passengers

  • Return prices in ILS

  • Return both parsed JSON and raw HTML

Last updated