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

url = "https://api.worldmonitor.app/api/aviation/v1/search-flight-prices"

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-flight-prices', 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-flight-prices",
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-flight-prices"

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-flight-prices")
.header("X-WorldMonitor-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

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

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",
  "isDemoMode": true,
  "isIndicative": true,
  "provider": "worldmonitor"
}
{
"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
required

Origin airport IATA code.

destination
string
required

Destination airport IATA code.

departure_date
string
required

Outbound departure date (ISO 8601).

return_date
string

Return date (ISO 8601), empty for one-way.

adults
integer<int32>

Number of adult passengers (1-9).

cabin
enum<string>

Desired cabin class.

Available options:
CABIN_CLASS_ECONOMY,
CABIN_CLASS_PREMIUM_ECONOMY,
CABIN_CLASS_BUSINESS,
CABIN_CLASS_FIRST
nonstop_only
boolean

Whether to restrict to nonstop flights only.

max_results
integer<int32>

Maximum number of quotes to return (1-50).

currency
string

ISO 4217 currency code for prices (e.g., "usd", "eur", "try").

market
string

Market/locale code (e.g., "us", "tr").

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

SearchFlightPricesResponse contains flight price offers.

quotes
object[]
provider
string

Provider name: "travelpayouts_data", "demo", or "none" when no live provider is configured.

isDemoMode
boolean

Whether results are from demo/simulated mode. Requires explicit AVIATION_DEMO_PRICES=1 opt-in on the server. Never true in default self-host / production runs. See issue #3756.

updatedAt
integer<int64>

Last update time as Unix epoch milliseconds.. Warning: Values > 2^53 may lose precision in JavaScript

isIndicative
boolean

Whether returned prices are indicative (subject to change).

degraded
boolean

True when the live provider could not satisfy the request — missing credentials, upstream failure, or zero results. Mirrors the searchGoogleFlights pattern so clients can render distinct messages for each error class.

error
string

Discriminator for the degraded state: "" (ok), "missing_credentials" (TRAVELPAYOUTS_API_TOKEN unset), "upstream_error" (provider call threw), "no_results" (provider returned empty for this route).