scraper
Back to API docs

Overview

  • Overview

SERP

  • POSTSERP

Core

  • POSTGeocode
  • POSTTranslate
  • POSTSearch
  • POSTVision
  • POSTPlaces Search
  • POSTPlace Details
  • POSTPlaces Nearby
  • POSTAutocomplete

Maps

  • POSTSearch
  • POSTPlace Details
  • POSTReviews

Hotels

  • POSTSearch
  • POSTDetail
  • POSTReviews
  • POSTPhotos

Play

  • POSTReviews

Flights

  • POSTOne-way Search
  • POSTCalendar
  • POSTExplore

Jobs

  • POSTJobs Search

Finance

  • POSTQuote
  • POSTFundamentals
  • POSTChart
  • POSTNews
  • POSTSearch
  • POSTEstimates
  • POSTEarnings

Flight Search

2 credits

Search and filter one-way, round-trip, and multi-city itineraries.

POST/api/v1/tools/google-flights/search

Parameters

originstring

Departure airport IATA code for one-way or round-trip searches. Pass several codes as a comma-separated string or an array (for example, "SFO,OAK") to search them together.

destinationstring

Arrival airport IATA code for one-way or round-trip searches. Pass several codes as a comma-separated string or an array (for example, "LAX,BUR") to search them together. It must not share an airport with origin.

departureDatestring

Departure date for one-way or round-trip searches, in YYYY-MM-DD format.

returnDatestring

Return date in YYYY-MM-DD format. Supplying it infers a round trip unless tripType is set.

tripTypestring

"one-way", "round-trip", or "multi-city". Inferred from returnDate for a single route. With independent routes in searches it has no effect, because each route sets its own trip type.

searchesobject[]

With tripType "multi-city": two to five chronological { origin, destination, departureDate } legs. Otherwise: 1 to 20 independent { origin, destination, departureDate, returnDate? } routes. A route with returnDate is a round trip, and a route without it is one-way. A route with a missing or invalid value, or a past departure date, is skipped with a note and is not charged; a 400 response comes only when no route is valid. Every other parameter applies to each route. Replaces the top-level route fields.

cabinClassstring

"economy", "premium-economy", "business", or "first". Defaults to "economy".

currencystring

Currency used for returned prices. Defaults to "USD". Supported values: ALL, DZD, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BYN, BMD, BAM, BRL, GBP, CAD, XPF, CLP, CNY, COP, CRC, CUP, CZK, DKK, DOP, EGP, EUR, GEL, HKD, HUF, ISK, INR, IDR, IRR, ILS, JMD, JPY, JOD, KZT, KWD, LBP, MKD, MYR, MXN, MDL, MAD, TWD, NZD, NGN, NOK, OMR, PKR, PAB, PEN, PHP, PLN, QAR, RON, RUB, SAR, RSD, SGD, ZAR, KRW, SEK, CHF, THB, TRY, UAH, AED, USD, VND.

adultsnumber

Number of adults (1-9). Defaults to 1; total passengers cannot exceed 9.

childrennumber

Number of children (0-9). Defaults to 0.

infantsOnLapnumber

Number of lap infants (0-9). Defaults to 0; each lap infant requires an adult.

infantsInSeatnumber

Number of infants in seats (0-9). Defaults to 0.

maxStopsnumber

Maximum stops: 0 (nonstop), 1, or 2.

maxPricenumber

Maximum total itinerary price as a positive whole amount in the requested currency.

maxDurationnumber

Maximum duration of each flight leg in minutes.

airlinesstring[]

Up to 20 airline IATA codes or ONEWORLD, STAR_ALLIANCE, and SKYTEAM.

departureTimeEarlieststring

Earliest local departure time (0-23 or HH:MM).

departureTimeLateststring

Latest local departure time (0-23 or HH:MM). A bound earlier than the earliest time selects an overnight range.

arrivalTimeEarlieststring

Earliest local arrival time (0-23 or HH:MM).

arrivalTimeLateststring

Latest local arrival time (0-23 or HH:MM). A bound earlier than the earliest time selects an overnight range.

sortBystring

"best", "cheapest", "fastest", "departure-time", or "arrival-time". Defaults to "best". For round-trip and multi-city results, departure-time and arrival-time sort the varying final-leg alternatives.

showAllResultsboolean

Request a broader set of flight choices. Defaults to false.

includeBookingDetailsboolean

Add provider choices, booking handoffs, and baggage-policy links per itinerary. Defaults to false. A failed lookup keeps its itinerary with bookingDetails null and adds a note; the search returns an upstream error only when every lookup fails.

maxBookingDetailsnumber

Most booking lookups for the search. Only results with a booking option count, in result order. 0 turns the lookups off. Omit it to look up every result. Used only with includeBookingDetails.

fieldsstring[]

Fields to include per result. Omit or pass ["*"] for all.

Response Schema

dataobject

Google Flights search result

searchesobject[]

Only when the request has independent routes in searches. One group for each route, in the order of the request. Then results is not present at the top level, and count is the total of all groups.

resultsobject[]

Matching itineraries

countnumber

Number of filtered itineraries in the response

notestring

Present when some booking lookups failed. It says how many itineraries have no bookingDetails. The itineraries stay in results.

warningsobject[]

Present when the call ignored an optional value that was not valid. Each item has `field` and `reason`. The call ran with the default for that field.

metaobject

Request metadata

toolstring

Tool name (google-flights-search)

creditsUsednumber

Credits consumed (2). A request with searches of independent routes costs 2 for each valid route.

requestIdstring

Unique request ID

Request

curl -X POST https://scraper.run/api/v1/tools/google-flights/search \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"origin": "SFO",
"destination": "NRT",
"departureDate": "2026-10-01",
"returnDate": "2026-10-15",
"currency": "EUR",
"showAllResults": true,
"includeBookingDetails": true
}'

Response Example

{
"data": {
"results": [
{
"origin": "SFO",
"destination": "LAX",
"departureDate": "2026-09-17",
"returnDate": null,
"tripType": "one-way",
"cabinClass": "economy",
"price": 23,
"currency": "USD",
"pricePerPassenger": null,
"totalDuration": 96,
"stops": 0,
"airlines": [
"Frontier"
],
"airlineCodes": [
"F9"
],
"outbound": {
"duration": 96,
"stops": 0,
"segments": [
{
"airline": "Frontier",
"airlineCode": "F9",
"flightNumber": "F92858",
"aircraft": "Airbus A320neo",
"departureAirport": "SFO",
"arrivalAirport": "LAX",
"departureTime": "2026-09-17T12:07:00-07:00",
"arrivalTime": "2026-09-17T13:43:00-07:00",
"duration": 96,
"layover": null
}
]
},
"return": null,
"co2Emissions": 59599,
"co2EmissionsLabel": null,
"fareClass": null,
"bookingDetails": null
}
],
"count": 1
},
"meta": {
"tool": "google-flights-search",
"creditsUsed": 2,
"requestId": "req_abc123"
}
}