openapi: 3.0.4 info: title: AeroDataBox API - Aviation and Flight Aircraft API Miscellaneous API API description: Affordable aviation & flight data API tailored for small and medium businesses, teams and individual developers. termsOfService: https://aerodatabox.com/terms/ contact: url: https://aerodatabox.com/contact/ version: 1.14.0.0 servers: - url: https://prod.api.market/api/v1/aedbx/aerodatabox security: {} tags: - name: Miscellaneous API paths: /airports/{codeType}/{code}/time/local: parameters: - description: API.market API Key in: header name: x-api-market-key value: Please Login/Signup to get an API Key required: true schema: type: string get: tags: - Miscellaneous API summary: AeroDataBox Current Local Time at the Airport / TIER 1 description: "**What is the current local time at the airport?**\r\n\r\nAt the moment airports having both ICAO and IATA code are present in database only.\r\n\r\n*Returns:* Local time at the airport, if airport is found." operationId: GetAirportLocalTime parameters: - name: codeType in: path description: Type of code to search airport by (`iata` or `icao`) schema: $ref: '#/components/schemas/AirportCodesByEnum' - name: code in: path description: "If `codeType` is:\r\n* `icao`, then this field must be a 4-character ICAO-code of the airport (e.g.: EHAM, KLAX, UUEE, etc.);\r\n* `iata`, then this field must be a 3-character IATA-code of the airport (e.g.: AMS, SFO, LAX, etc.).\r\n\r\nFull, stripped and any case formats are acceptable." required: true schema: maxLength: 4 minLength: 3 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AirportLocalTimeContract' examples: GetAirportLocalTime200Example: summary: Default GetAirportLocalTime 200 response x-microcks-default: true value: time: example_value timeZoneId: abc123 application/xml: schema: $ref: '#/components/schemas/AirportLocalTimeContract' '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportLocalTime400Example: summary: Default GetAirportLocalTime 400 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportLocalTime401Example: summary: Default GetAirportLocalTime 401 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '451': description: Unavailable For Legal Reasons content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportLocalTime451Example: summary: Default GetAirportLocalTime 451 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportLocalTime500Example: summary: Default GetAirportLocalTime 500 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '503': description: Service Unavailable x-badges: - name: TIER 1 position: before color: '#beffe6' x-microcks-operation: delay: 0 dispatcher: FALLBACK /airports/{codeType}/{code}/time/solar: parameters: - description: API.market API Key in: header name: x-api-market-key value: Please Login/Signup to get an API Key required: true schema: type: string get: tags: - Miscellaneous API summary: AeroDataBox Solar and Day Time at the Airport / TIER 1 description: "**What is the sun position in the sky now at a specific time at the airport?** or\r\n**When does the sun rise and set at the airport today or on the other day at the airport?** or\r\n**Is it dark now or is it day at the airport?**\r\n\r\nAt the moment airports having both ICAO and IATA code are present in database only.\r\n\r\n*Returns:* If airport is found, returns various solar-related information: sun position in the sky,\r\ndaytime (day, night, twilight: civil, nautical, astronomical, golden/blue hours), \r\nsunrise and sunset times, etc." operationId: GetAirportSolarTime_SolarTimeCurrent parameters: - name: codeType in: path description: Type of code to search airport by (`iata` or `icao`) schema: $ref: '#/components/schemas/AirportCodesByEnum' - name: code in: path description: "If `codeType` is:\r\n* `icao`, then this field must be a 4-character ICAO-code of the airport (e.g.: EHAM, KLAX, UUEE, etc.);\r\n* `iata`, then this field must be a 3-character IATA-code of the airport (e.g.: AMS, SFO, LAX, etc.).\r\n\r\nFull, stripped and any case formats are acceptable." required: true schema: maxLength: 4 minLength: 3 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SolarStateContract' examples: GetAirportSolarTime_SolarTimeCurrent200Example: summary: Default GetAirportSolarTime_SolarTimeCurrent 200 response x-microcks-default: true value: location: example_value sunElevation: example_value sunAzimuth: example_value dayTime: - example_value dawnAstronomical: example_value dawnNautical: example_value dawnCivil: example_value sunrise: example_value noonTrue: example_value sunset: example_value duskCivil: example_value duskNautical: example_value duskAstronomical: example_value application/xml: schema: $ref: '#/components/schemas/SolarStateContract' '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportSolarTime_SolarTimeCurrent400Example: summary: Default GetAirportSolarTime_SolarTimeCurrent 400 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportSolarTime_SolarTimeCurrent401Example: summary: Default GetAirportSolarTime_SolarTimeCurrent 401 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '451': description: Unavailable For Legal Reasons content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportSolarTime_SolarTimeCurrent451Example: summary: Default GetAirportSolarTime_SolarTimeCurrent 451 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportSolarTime_SolarTimeCurrent500Example: summary: Default GetAirportSolarTime_SolarTimeCurrent 500 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '503': description: Service Unavailable x-badges: - name: TIER 1 position: before color: '#beffe6' x-microcks-operation: delay: 0 dispatcher: FALLBACK /airports/{codeType}/{code}/time/solar/{dateLocal}: parameters: - description: API.market API Key in: header name: x-api-market-key value: Please Login/Signup to get an API Key required: true schema: type: string get: tags: - Miscellaneous API summary: AeroDataBox Solar and Day Time at the Airport / TIER 1 description: "**What is the sun position in the sky now at a specific time at the airport?** or\r\n**When does the sun rise and set at the airport today or on the other day at the airport?** or\r\n**Is it dark now or is it day at the airport?**\r\n\r\nAt the moment airports having both ICAO and IATA code are present in database only.\r\n\r\n*Returns:* If airport is found, returns various solar-related information: sun position in the sky,\r\ndaytime (day, night, twilight: civil, nautical, astronomical, golden/blue hours), \r\nsunrise and sunset times, etc." operationId: GetAirportSolarTime_SolarTimeSpecificDate parameters: - name: codeType in: path description: Type of code to search airport by (`iata` or `icao`) schema: $ref: '#/components/schemas/AirportCodesByEnum' - name: code in: path description: "If `codeType` is:\r\n* `icao`, then this field must be a 4-character ICAO-code of the airport (e.g.: EHAM, KLAX, UUEE, etc.);\r\n* `iata`, then this field must be a 3-character IATA-code of the airport (e.g.: AMS, SFO, LAX, etc.).\r\n\r\nFull, stripped and any case formats are acceptable." required: true schema: maxLength: 4 minLength: 3 type: string - name: dateLocal in: path description: "The moment of time which solar data is request for (local time, format: YYYY-MM-DDTHH:mm). \r\nDefault - current time." required: true schema: pattern: \d{4}-\d{2}-\d{2}(T\d{2}:\d{2})? type: string format: date-time responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SolarStateContract' examples: GetAirportSolarTime_SolarTimeSpecificDate200Example: summary: Default GetAirportSolarTime_SolarTimeSpecificDate 200 response x-microcks-default: true value: location: example_value sunElevation: example_value sunAzimuth: example_value dayTime: - example_value dawnAstronomical: example_value dawnNautical: example_value dawnCivil: example_value sunrise: example_value noonTrue: example_value sunset: example_value duskCivil: example_value duskNautical: example_value duskAstronomical: example_value application/xml: schema: $ref: '#/components/schemas/SolarStateContract' '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportSolarTime_SolarTimeSpecificDate400Example: summary: Default GetAirportSolarTime_SolarTimeSpecificDate 400 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportSolarTime_SolarTimeSpecificDate401Example: summary: Default GetAirportSolarTime_SolarTimeSpecificDate 401 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '451': description: Unavailable For Legal Reasons content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportSolarTime_SolarTimeSpecificDate451Example: summary: Default GetAirportSolarTime_SolarTimeSpecificDate 451 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportSolarTime_SolarTimeSpecificDate500Example: summary: Default GetAirportSolarTime_SolarTimeSpecificDate 500 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '503': description: Service Unavailable x-badges: - name: TIER 1 position: before color: '#beffe6' x-microcks-operation: delay: 0 dispatcher: FALLBACK /airports/{codeType}/{codeFrom}/distance-time/{codeTo}: parameters: - description: API.market API Key in: header name: x-api-market-key value: Please Login/Signup to get an API Key required: true schema: type: string get: tags: - Miscellaneous API summary: AeroDataBox Distance and Flight Time Between Airports / TIER 2 description: "**What is the great circle distance between airports?** \r\n**What is approximate flight time between airports?**\r\n** What is the flight time between airports based on history of flights and/or aircraft type?** (machine-learning based)\r\n\r\nUse `flightTimeModel` = ML01 to get more accurate results based on historical performance of flights on a specific route \r\nand aircraft type.\r\n\r\n*Returns:* Distance and approximate flight time between airports, if both airports found." operationId: GetAirportDistanceTime parameters: - name: codeType in: path description: Type of code to search airport by (`iata` or `icao`) schema: $ref: '#/components/schemas/AirportCodesByEnum' - name: codeFrom in: path description: "If `codeType` is:\r\n* `icao`, then this field must be a 4-character ICAO-code of the origin airport (e.g.: EHAM, KLAX, UUEE, etc.);\r\n* `iata`, then this field must be a 3-character IATA-code of the origin airport (e.g.: AMS, SFO, LAX, etc.).\r\n\r\nFull, stripped and any case formats are acceptable." required: true schema: maxLength: 4 minLength: 3 type: string - name: codeTo in: path description: "If `codeType` is:\r\n* `icao`, then this field must be a 4-character ICAO-code of the destination airport (e.g.: EHAM, KLAX, UUEE, etc.);\r\n* `iata`, then this field must be a 3-character IATA-code of the destination airport (e.g.: AMS, SFO, LAX, etc.);\r\n* `local`, then the format of this field is subject to specific standards of relevant national or local airport codification systems.\r\n\r\nFull, stripped and any case formats are acceptable." required: true schema: maxLength: 4 minLength: 3 type: string - name: aircraftName in: query description: "Aircraft type name (free text). \r\nIf specified, the aircraft type will be attempted to be taken into account to provide more accurate result." schema: type: string - name: flightTimeModel in: query description: "Model of calculation of the flight time. Default is \r\nMore advanced model(s) is available, including machine learning-based models.\r\nSee ModelFlightTimeEnum for details." schema: $ref: '#/components/schemas/ModelFlightTimeEnum' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AirportDistanceTimeContract' examples: GetAirportDistanceTime200Example: summary: Default GetAirportDistanceTime 200 response x-microcks-default: true value: from: example_value to: example_value greatCircleDistance: example_value approxFlightTime: example_value application/xml: schema: $ref: '#/components/schemas/AirportDistanceTimeContract' '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportDistanceTime400Example: summary: Default GetAirportDistanceTime 400 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportDistanceTime401Example: summary: Default GetAirportDistanceTime 401 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '451': description: Unavailable For Legal Reasons content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportDistanceTime451Example: summary: Default GetAirportDistanceTime 451 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorContract' examples: GetAirportDistanceTime500Example: summary: Default GetAirportDistanceTime 500 response x-microcks-default: true value: message: example_value application/xml: schema: $ref: '#/components/schemas/ErrorContract' '503': description: Service Unavailable x-badges: - name: TIER 2 position: before color: '#aab6f8' x-microcks-operation: delay: 0 dispatcher: FALLBACK components: schemas: DayTime: enum: - Night - TwilightAstronomical - TwilightNautical - TwilightCivil - Day - BlueHour - GoldenHour type: string description: "Daytime states
Possible values:
\r\nPossible values:
\r\nPossible values:
\r\n