---
title: "Google Flights API: One Way | Perceptlayer"
description: "One Way from Google Flights as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/google-flights/one-way
---

[APIs](https://perceptlayer.com/apis) / [Google Flights](https://perceptlayer.com/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.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `origin` | string | Required | Up to 3 characters |
| `destination` | string | Required | Up to 3 characters |
| `adults` | integer | Optional | Any |
| `children` | integer | Optional | Any |
| `infants_in_seat` | integer | Optional | Any |
| `infants_on_lap` | integer | Optional | Any |
| `cabin_class` | string | Optional | economy, premium\_economy, business, first |
| `exclude_basic` | boolean | Optional | Any |
| `max_stops` | string | Optional | any, nonstop, one\_or\_fewer, two\_or\_fewer |
| `hl` | string | Optional | Any |
| `gl` | string | Optional | Any |
| `currency` | string | Optional | Up to 3 characters |
| `outbound_times` | string | Optional | Any |
| `bags` | integer | Optional | 0 |
| `departure_date` | string | Required | Any |
| `sort_by` | string | Optional | top\_flights, cheapest, departure\_time, arrival\_time, duration, emissions |
| `airlines[]` | list of string | Optional | Up to 2 characters |
| `include_baggage` | boolean | Optional | Any |
| `departure_time_min` | integer | Optional | Any |
| `departure_time_max` | integer | Optional | Any |
| `arrival_time_min` | integer | Optional | Any |
| `arrival_time_max` | integer | Optional | Any |
| `max_duration_minutes` | integer | Optional | Any |
| `max_price` | integer | Optional | Any |

## 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 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/google-flights?try=one-way#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.

| Field | Type |
| --- | --- |
| `price` | integer |
| `currency` | string |
| `total_duration_minutes` | integer |
| `stops` | integer |
| `airline_name` | string |
| `emissions` | object |
| `booking_token` | string |
| `legs` | object\[\] |
