GoogleFlights

Search One-Way Flights

Search for one-way flight options between two airports.

get/flights/one-way

Request

  • Base URL: https://scrappa.co/api
  • URL: https://scrappa.co/api/flights/one-way
  • Auth: API key in header X-API-KEY

Query parameters

originstring required

Origin airport IATA code (e.g., JFK, LAX, ORD)

destinationstring required

Destination airport IATA code (e.g., LHR, CDG, SFO)

adultsinteger nullable

Number of adult passengers (1-9, default: 1)

childreninteger nullable

Number of child passengers (0-9, default: 0)

infants_in_seatinteger nullable

Number of infants in seat (0-9, default: 0)

infants_on_lapinteger nullable

Number of infants on lap (0-9, default: 0)

cabin_class'economy' | 'premium_economy' | 'business' | 'first' | 'null' nullable

Cabin class: economy, premium_economy, business, or first

exclude_basicboolean nullable

Exclude basic economy fares when searching in economy class (default: false)

max_stops'any' | 'nonstop' | 'one_or_fewer' | 'two_or_fewer' | 'null' nullable

Maximum stops: any, nonstop, one_or_fewer, or two_or_fewer

hlstring nullable

Language code (e.g., en, de, en-US)

glstring nullable

Country/region code (e.g., us, de, gb)

currencystring nullable

Currency code for prices (e.g., USD, EUR, GBP)

outbound_timesstring nullable

Outbound time window as comma-separated hours, e.g. "6,18" for departures between 06:00 and 18:00. Two further values narrow the arrival window.

bagsinteger nullable

Carry-on bag count. Only 0 is currently supported.

departure_datestring date required

Departure date in Y-m-d format (e.g., 2026-09-15)

sort_by'top_flights' | 'cheapest' | 'departure_time' | 'arrival_time' | 'duration' | 'emissions' | 'null' nullable

Sort by: top_flights, cheapest, departure_time, arrival_time, or duration

airlines[]string[]

Filter by airline IATA codes (e.g., ["AA", "UA", "DL"] or "AA,UA,DL")

include_baggageboolean nullable

Include baggage fee information for the cheapest flight (1 = yes, 0 = no, default: 0)

departure_time_mininteger nullable

Minimum departure hour (0-23). Use with departure_time_max to filter by time range.

departure_time_maxinteger nullable

Maximum departure hour (0-23). Use with departure_time_min to filter by time range.

arrival_time_mininteger nullable

Minimum arrival hour (0-23). Use with arrival_time_max to filter by time range.

arrival_time_maxinteger nullable

Maximum arrival hour (0-23). Use with arrival_time_min to filter by time range.

max_duration_minutesinteger nullable

Maximum flight duration in minutes. Filters out flights longer than this.

max_priceinteger nullable

Maximum price in the search currency. Filters out flights more expensive than this.

Response

Changes

No recorded changes to this operation across all 4 revisions of this API.