APIs / Google Flights / One Way

Google Flights: One Way

One Way from Google Flights as JSON. 1 credit per successful call.

GET /v1/google-flights/one-way

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
originstringRequiredUp to 3 characters
destinationstringRequiredUp to 3 characters
adultsintegerOptionalAny
childrenintegerOptionalAny
infants_in_seatintegerOptionalAny
infants_on_lapintegerOptionalAny
cabin_classstringOptionaleconomy, premium_economy, business, first
exclude_basicbooleanOptionalAny
max_stopsstringOptionalany, nonstop, one_or_fewer, two_or_fewer
hlstringOptionalAny
glstringOptionalAny
currencystringOptionalUp to 3 characters
outbound_timesstringOptionalAny
bagsintegerOptional0
departure_datestringRequiredAny
sort_bystringOptionaltop_flights, cheapest, departure_time, arrival_time, duration, emissions
airlines[]list of stringOptionalUp to 2 characters
include_baggagebooleanOptionalAny
departure_time_minintegerOptionalAny
departure_time_maxintegerOptionalAny
arrival_time_minintegerOptionalAny
arrival_time_maxintegerOptionalAny
max_duration_minutesintegerOptionalAny
max_priceintegerOptionalAny

Example request

Google Flights
GET/v1/google-flights/one-way?origin=JFK&destination=LAX&departure_date=2027-01-05
{
  "flights": [
    {
      "price": 179,
      "currency": "USD",
      "total_duration_minutes": 384,
      "stops": 0,
      "airline_name": "JetBlue",
      "emissions": {
        "co2_grams": 426000,
        "co2_kilograms": 426,
        "typical_co2_grams": 344000,
        "typical_co2_kilograms": 344,
        "difference_percent": 24
      },
      "booking_token": "CjRISVFvemhYdy1QZTBBQTR3SXdCRy0tLS0tLS0tLWVqY3J5N0FBQUFBR3JhOFJBQUFyOGdBEgZCNjIyMjMaCwiwiwEQAhoDVVNEOBxwsIsB",
      "legs": [
        {
          "airline": "B6",
          "flight_number": "2223",
          "departure_airport": "JFK",
          "arrival_airport": "LAX",
          "departure_time": "2026-12-15T08:01:00",
          "arrival_time": "2026-12-15T11:25:00",
          "duration_minutes": 384
        }
      ]
    },
    {
      "price": 189,
      "currency": "USD",
      "total_duration_minutes": 378,
      "stops": 0,
      "airline_name": "Delta",
      "emissions": {
        "co2_grams": 244000,
        "co2_kilograms": 244,
        "typical_co2_grams": 344000,
        "typical_co2_kilograms": 344,
        "difference_percent": -29
      },
      "booking_token": "CjRISVFvemhYdy1QZTBBQTR3SXdCRy0tLS0tLS0tLWVqY3J5N0FBQUFBR3JhOFJBQUFyOGdBEgVETDc3MxoLCJiTARACGgNVU0Q4HHCYkwE=",
      "legs": [
        {
          "airline": "DL",
          "flight_number": "773",
          "departure_airport": "JFK",
          "arrival_airport": "LAX",
          "departure_time": "2026-12-15T09:00:00",
          "arrival_time": "2026-12-15T12:18:00",
          "duration_minutes": 378
        }
      ]
    },
    {
      "price": 215,
      "currency": "USD",
      "total_duration_minutes": 377,
      "stops": 0,
      "airline_name": "American",
      "emissions": {
        "co2_grams": 281000,
        "co2_kilograms": 281,
        "typical_co2_grams": 344000,
        "typical_co2_kilograms": 344,
        "difference_percent": -18
      },
      "booking_token": "CjRISVFvemhYdy1QZTBBQTR3SXdCRy0tLS0tLS0tLWVqY3J5N0FBQUFBR3JhOFJBQUFyOGdBEgVBQTM0MRoLCMCnARACGgNVU0Q4HHDApwE=",
      "legs": [
        {
          "airline": "AA",
          "flight_number": "341",
          "departure_airport": "JFK",
          "arrival_airport": "LAX",
          "departure_time": "2026-12-15T14:59:00",
          "arrival_time": "2026-12-15T18:16:00",
          "duration_minutes": 377
        }
      ]
    }
  ],
  "search_metadata": {
    "origin": "JFK",
    "destination": "LAX",
    "departure_date": "2026-12-15",
    "passengers": {
      "adults": 1,
      "children": 0,
      "infants_in_seat": 0,
      "infants_on_lap": 0
    },
    "cabin_class": "Economy",
    "exclude_basic": false,
    "max_stops": "Any number of stops",
    "sort_by": "Top Flights",
    "hl": "en",
    "gl": "US",
    "currency": "USD",
    "response_time_ms": 5598
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in flights has these 8 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
priceinteger
currencystring
total_duration_minutesinteger
stopsinteger
airline_namestring
emissionsobject
booking_tokenstring
legsobject[]