Segment

Segment schema

BookingFlightsHotelsReservationsTravel
View JSON Schema on GitHub

JSON Schema

flight-create-orders-segment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus-reservations/refs/heads/main/json-schema/flight-create-orders-segment-schema.json",
  "title": "Segment",
  "description": "Segment schema",
  "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": {
            "title": "Co2Emission",
            "$ref": "#/definitions/Co2Emission"
          }
        }
      }
    },
    {
      "$ref": "#/definitions/FlightSegment"
    }
  ]
}

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-create-orders-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.