Skip to main content
GET
/
api
/
aviation
/
v1
/
search-google-flights
SearchGoogleFlights
curl --request GET \
  --url https://api.worldmonitor.app/api/aviation/v1/search-google-flights \
  --header 'X-WorldMonitor-Key: <api-key>'
import requests

url = "https://api.worldmonitor.app/api/aviation/v1/search-google-flights"

headers = {"X-WorldMonitor-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-WorldMonitor-Key': '<api-key>'}};

fetch('https://api.worldmonitor.app/api/aviation/v1/search-google-flights', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.worldmonitor.app/api/aviation/v1/search-google-flights",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-WorldMonitor-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.worldmonitor.app/api/aviation/v1/search-google-flights"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-WorldMonitor-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.worldmonitor.app/api/aviation/v1/search-google-flights")
.header("X-WorldMonitor-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.worldmonitor.app/api/aviation/v1/search-google-flights")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-WorldMonitor-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "degraded": true,
  "error": "example",
  "flights": [
    {
      "durationMinutes": 42,
      "legs": [
        {
          "airlineCode": "example",
          "arrivalAirport": "example",
          "arrivalDatetime": "2026-01-15",
          "departureAirport": "example",
          "departureDatetime": "2026-01-15"
        }
      ],
      "price": 75.25,
      "stops": 1
    }
  ]
}
{
"violations": [
{
"field": "<string>",
"description": "<string>"
}
]
}
{
"error": "<string>"
}
{
"error": "<string>",
"requiredTier": 123,
"currentTier": 123,
"planKey": "<string>"
}
{
"message": "<string>"
}
{
"message": "<string>"
}

Authorizations

X-WorldMonitor-Key
string
header
required

User-issued WorldMonitor API key.

Query Parameters

origin
string

Departure airport IATA code (e.g. "JFK").

destination
string

Arrival airport IATA code (e.g. "LHR").

departure_date
string

Departure date in YYYY-MM-DD format.

return_date
string

Return date in YYYY-MM-DD format; omit for one-way.

cabin_class
string

Cabin class: ECONOMY, PREMIUM_ECONOMY, BUSINESS, or FIRST.

max_stops
string

Stop filter: ANY, NON_STOP, ONE_STOP, or TWO_PLUS_STOPS.

departure_window
string

Departure time window in HH-HH format (e.g. "6-20").

airlines
string[]

Airline IATA codes to filter by (e.g. ["BA", "AA"]).

sort_by
string

Sort order: CHEAPEST, DURATION, DEPARTURE_TIME, or ARRIVAL_TIME.

passengers
integer<int32>

Number of adult passengers (1-9).

jmespath
string

Optional JMESPath expression applied server-side to project or reduce the JSON response before it is returned (mirrors the MCP jmespath argument). Invalid expressions, expressions larger than 1024 UTF-8 bytes, or projections that exceed the 256 KB output cap return HTTP 400 with a {_jmespath_error, original_keys} envelope. Grammar and worked examples: https://www.worldmonitor.app/docs/mcp-jmespath.

Response

Successful response

SearchGoogleFlightsResponse contains flight results from Google Flights.

flights
object[]
degraded
boolean
error
string