Amadeus · Schema

Segment

Segment schema from Branded Fares Upsell

TravelTravel TechnologyReservationsFlightsHotelsAirlinesHospitalityTours and ActivitiesCars and TransfersDestination ContentItinerary ManagementTrip PlanningArtificial IntelligenceMarket Insights
View JSON Schema on GitHub

JSON Schema

branded-fares-upsell-segment-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/branded-fares-upsell-segment-schema.json",
  "title": "Segment",
  "description": "Segment schema from Branded Fares Upsell",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "id": {
          "description": "Id of the segment",
          "type": "string",
          "example": 1
        },
        "numberOfStops": {
          "description": "Number of stops",
          "type": "integer",
          "example": 0
        },
        "blacklistedInEU": {
          "description": "When the flight has a marketing or/and operating airline that is identified as blacklisted by the European Commission. \n\nTo improve travel safety, the European Commission regularly updates the list of the banned carriers from operating in Europe. It allows any Travel Agency located in the European Union to easily identify and hide any travel recommendation based on some unsafe airlines. \nThe [list of the banned airlines](https://ec.europa.eu/transport/sites/transport/files/air-safety-list_en.pdf) is published in the Official Journal of the European Union, where they are included as annexes A and B to the Commission Regulation. The blacklist of an airline can concern all its flights or some specific aircraft types pertaining to the airline   \n",
          "type": "boolean",
          "example": false
        },
        "co2Emissions": {
          "description": "Co2 informations",
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "properties": {
              "weight": {
                "description": "Weight of Co2 emitted for the concerned segment",
                "type": "integer",
                "example": 90
              },
              "weightUnit": {
                "description": "Code to qualify unit as pounds or kilos",
                "type": "string",
                "example": "KG"
              },
              "cabin": {
                "$ref": "#/definitions/TravelClass"
              }
            }
          }
        }
      }
    },
    {
      "type": "object",
      "description": "defining a flight segment; including both operating and marketing details when applicable",
      "properties": {
        "departure": {
          "title": "FlightEndPoint",
          "description": "departure or arrival information",
          "allOf": [
            {
              "$ref": "#/definitions/OriginalFlightEndPoint"
            },
            {
              "type": "object",
              "properties": {
                "at": {
                  "description": "local date and time in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-ddThh:mm:ss format, e.g. 2017-02-10T20:40:00",
                  "type": "string",
                  "format": "date-time",
                  "example": "2017-10-23T20:00:00"
                }
              }
            }
          ]
        },
        "arrival": {
          "title": "FlightEndPoint",
          "description": "departure or arrival information",
          "allOf": [
            {
              "$ref": "#/definitions/OriginalFlightEndPoint"
            },
            {
              "type": "object",
              "properties": {
                "at": {
                  "description": "local date and time in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-ddThh:mm:ss format, e.g. 2017-02-10T20:40:00",
                  "type": "string",
                  "format": "date-time",
                  "example": "2017-10-23T20:00:00"
                }
              }
            }
          ]
        },
        "carrierCode": {
          "type": "string",
          "description": "providing the airline / carrier code",
          "minLength": 1,
          "maxLength": 2,
          "example": "DL"
        },
        "number": {
          "type": "string",
          "description": "the flight number as assigned by the carrier",
          "minLength": 1,
          "maxLength": 4,
          "example": "212"
        },
        "aircraft": {
          "description": "information related to the aircraft",
          "properties": {
            "code": {
              "type": "string",
              "description": "IATA aircraft code (http://www.flugzeuginfo.net/table_accodes_iata_en.php)\n",
              "pattern": "[a-zA-Z0-9]{3}",
              "example": "318"
            }
          }
        },
        "operating": {
          "type": "object",
          "description": "information about the operating flight",
          "properties": {
            "carrierCode": {
              "type": "string",
              "description": "providing the airline / carrier code",
              "minLength": 1,
              "maxLength": 2,
              "example": "DL"
            }
          }
        },
        "duration": {
          "type": "string",
          "description": "stop duration in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) PnYnMnDTnHnMnS format, e.g. PT2H10M",
          "example": "PT2H10M"
        },
        "stops": {
          "type": "array",
          "description": "information regarding the different stops composing the flight segment. E.g. technical stop, change of gauge...",
          "items": {
            "title": "FlightStop",
            "description": "details of stops for direct or change of gauge flights",
            "allOf": [
              {
                "$ref": "#/definitions/OriginalFlightStop"
              },
              {
                "type": "object",
                "properties": {
                  "arrivalAt": {
                    "description": "arrival at the stop in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-ddThh:mm:ss format, e.g. 2017-02-10T20:40:00",
                    "type": "string",
                    "format": "date-time",
                    "example": "2017-10-23T20:00:00"
                  },
                  "departureAt": {
                    "description": "departure from the stop in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-ddThh:mm:ss format, e.g. 2017-02-10T20:40:00",
                    "type": "string",
                    "format": "date-time",
                    "example": "2017-10-23T20:00:00"
                  }
                }
              }
            ]
          }
        }
      }
    }
  ]
}

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/branded-fares-upsell-segment"
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 email required.

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