Amadeus · Schema

GetFlightAvailabilitiesQuery

GetFlightAvailabilitiesQuery schema from Flight Availibilities Search

TravelTravel TechnologyReservationsFlightsHotelsAirlinesHospitalityTours and ActivitiesCars and TransfersDestination ContentItinerary ManagementTrip PlanningArtificial IntelligenceMarket Insights

Properties

Name Type Description
originDestinations array Origins and Destinations must be properly ordered in time (chronological order in accordance with the timezone of each location) to describe the journey consistently. Dates and times must not be past
travelers array List of travelers composing the travel
sources array Allows enable one or more sources. If present in the list, these sources will be called by the system. GDS : Full service carriers
searchCriteria object
View JSON Schema on GitHub

JSON Schema

flight-availabilities-search-get-flight-availabilities-query-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/flight-availabilities-search-get-flight-availabilities-query-schema.json",
  "title": "GetFlightAvailabilitiesQuery",
  "description": "GetFlightAvailabilitiesQuery schema from Flight Availibilities Search",
  "properties": {
    "originDestinations": {
      "title": "originDestinations",
      "description": "Origins and Destinations must be properly ordered in time (chronological order in accordance with the timezone of each location) to describe the journey consistently. Dates and times must not be past nor more than 365 days in the future, according to provider settings.Number of Origins and Destinations must not exceed the limit defined in provider settings.",
      "type": "array",
      "minItems": 1,
      "maxItems": 6,
      "items": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": 1
              },
              "originLocationCode": {
                "description": "Origin location, such as a city or an airport. Currently, only the locations defined in [IATA](http://www.iata.org/publications/Pages/code-search.aspx) are supported.",
                "type": "string",
                "example": "PAR"
              },
              "destinationLocationCode": {
                "description": "Destination location, such as a city or an airport. Currently, only the locations defined in [IATA](http://www.iata.org/publications/Pages/code-search.aspx) are supported.",
                "type": "string",
                "example": "NYC"
              },
              "includedConnectionPoints": {
                "type": "array",
                "description": "List of included connections points. When an includedViaPoints option is specified, all FlightOffer returned must at least go via this Connecting Point. Currently, only the locations defined in IATA are supported. Used only by the AMADEUS provider",
                "minItems": 1,
                "maxItems": 2,
                "items": {
                  "title": "code",
                  "type": "string"
                },
                "example": [
                  "MRS"
                ]
              },
              "excludedConnectionPoints": {
                "type": "array",
                "description": "List of excluded connections points. Any FlightOffer with these connections points will be present in response. Currently, only the locations defined in IATA are supported. Used only by the AMADEUS provider",
                "minItems": 1,
                "maxItems": 3,
                "items": {
                  "title": "code",
                  "type": "string"
                },
                "example": [
                  "MRS"
                ]
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "departureDateTime": {
                "description": "Approximate date and time of departure, specified as a local date.",
                "$ref": "#/definitions/DateTimeType"
              },
              "arrivalDateTime": {
                "description": "Approximate date and time of arrival, specified as a local date.",
                "$ref": "#/definitions/DateTimeType"
              }
            }
          }
        ]
      }
    },
    "travelers": {
      "title": "travelers",
      "description": "List of travelers composing the travel",
      "type": "array",
      "minItems": 1,
      "maxItems": 18,
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": 1
          },
          "travelerType": {
            "$ref": "#/definitions/TravelerType"
          },
          "associatedAdultId": {
            "type": "string",
            "description": "if type=\"HELD_INFANT\", corresponds to the adult travelers's id who will share the seat",
            "example": "12345"
          }
        },
        "required": [
          "id",
          "travelerType"
        ]
      }
    },
    "sources": {
      "title": "sources",
      "description": "Allows enable one or more sources. If present in the list, these sources will be called by the system. \nGDS : Full service carriers",
      "type": "array",
      "minItems": 1,
      "items": {
        "description": "source of the flight offer",
        "type": "string",
        "enum": [
          "GDS"
        ],
        "example": "GDS"
      },
      "example": [
        "GDS"
      ]
    },
    "searchCriteria": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "excludeAllotments": {
              "description": "This option allows to exclude the isAllotment flag associated to a booking class in the search response when it exist.",
              "type": "boolean",
              "example": false
            },
            "flightFilters": {
              "title": "FlightFilters",
              "$ref": "#/definitions/FlightFiltersLight"
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "includeClosedContent": {
              "type": "boolean",
              "description": "If true, closed booking classes, departed flights and cancelled flights will also be included in the response.",
              "example": false
            },
            "class": {
              "type": "string",
              "description": "The code of the booking class",
              "example": "A"
            }
          }
        }
      ]
    }
  },
  "required": [
    "originDestinations",
    "travelers",
    "sources"
  ],
  "example": {
    "originDestinations": [
      {
        "id": "1",
        "originLocationCode": "BOS",
        "destinationLocationCode": "MAD",
        "departureDateTime": {
          "date": "202-11-14",
          "time": "21:15:00"
        }
      }
    ],
    "travelers": [
      {
        "id": "1",
        "travelerType": "ADULT"
      }
    ],
    "sources": [
      "GDS"
    ]
  },
  "type": "object"
}

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-availabilities-search-get-flight-availabilities-query"
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.