flight-mcp-com · Schema

AnonymousFlightSearchInput

TravelAPIFlightMCPSearch
View JSON Schema on GitHub

JSON Schema

flight-mcp-com-anonymous-flight-search-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flight-mcp-com/json-schema/flight-mcp-com-anonymous-flight-search-input-schema.json",
  "title": "AnonymousFlightSearchInput",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flight-mcp-com-openapi.yml#/components/schemas/AnonymousFlightSearchInput",
  "allOf": [
    {
      "$ref": "#/$defs/FlightSearchInput"
    },
    {
      "type": "object",
      "oneOf": [
        {
          "properties": {
            "origin": {
              "const": "JFK"
            },
            "destination": {
              "const": "LHR"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "LAX"
            },
            "destination": {
              "const": "JFK"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "SFO"
            },
            "destination": {
              "const": "JFK"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "LAX"
            },
            "destination": {
              "const": "SYD"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "HND"
            },
            "destination": {
              "const": "LAX"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "ICN"
            },
            "destination": {
              "const": "NRT"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "HKG"
            },
            "destination": {
              "const": "SIN"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "SIN"
            },
            "destination": {
              "const": "SYD"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "LHR"
            },
            "destination": {
              "const": "CDG"
            }
          }
        },
        {
          "properties": {
            "origin": {
              "const": "FRA"
            },
            "destination": {
              "const": "JFK"
            }
          }
        }
      ],
      "properties": {
        "returnDate": false,
        "adults": {
          "const": 1,
          "default": 1
        },
        "children": {
          "const": 0,
          "default": 0
        },
        "infants": {
          "const": 0,
          "default": 0
        },
        "cabinClass": {
          "const": "economy",
          "default": "economy"
        },
        "currency": {
          "const": "USD",
          "default": "USD"
        },
        "locale": {
          "const": "en-US",
          "default": "en-US"
        },
        "pointOfSaleCountry": {
          "const": "US",
          "default": "US"
        },
        "maxResults": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "default": 20
        },
        "cacheTtlSeconds": {
          "type": "integer",
          "minimum": 60,
          "maximum": 604800,
          "default": 604800
        }
      }
    }
  ],
  "$defs": {
    "FlightSearchInput": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "origin",
        "destination",
        "departureDate"
      ],
      "properties": {
        "origin": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "description": "Airport IATA code, or TYO to search both Haneda (HND) and Narita (NRT)."
        },
        "destination": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "description": "Airport IATA code, or TYO to search both Haneda (HND) and Narita (NRT)."
        },
        "departureDate": {
          "type": "string",
          "format": "date"
        },
        "returnDate": {
          "type": "string",
          "format": "date"
        },
        "adults": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9,
          "default": 1
        },
        "children": {
          "type": "integer",
          "minimum": 0,
          "maximum": 8,
          "default": 0
        },
        "infants": {
          "type": "integer",
          "minimum": 0,
          "maximum": 8,
          "default": 0
        },
        "cabinClass": {
          "type": "string",
          "enum": [
            "economy",
            "premium_economy",
            "business",
            "first"
          ],
          "default": "economy"
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "default": "JPY"
        },
        "locale": {
          "type": "string",
          "pattern": "^[a-z]{2,3}(-[A-Z]{2})?$",
          "default": "ja-JP"
        },
        "pointOfSaleCountry": {
          "type": "string",
          "pattern": "^[A-Z]{2}$",
          "default": "JP",
          "description": "Requested sales-country context. Booking results match the requested currency and are not filtered by sales country."
        },
        "maxResults": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 20
        },
        "cacheTtlSeconds": {
          "type": "integer",
          "minimum": 60,
          "maximum": 259200,
          "default": 300
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/flight-mcp-com-anonymous-flight-search-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.