Airport On-Time Performance
Before using this API, we recommend you read our Authorization Guide(https://developers
COMMUNITYNO AUTH0 INSTALLS
OpenAPI Specificationv3.0
{
"swagger": "2.0",
"schemes": [
"https"
],
"host": "test.api.amadeus.com",
"basePath": "/v1",
"info": {
"description": "Before using this API, we recommend you read our **[Authorization Guide](https://developers.amadeus.com/self-service/apis-docs/guides/authorization-262)** for more information on how to generate an access token.",
"title": "Airport On-Time Performance",
"version": "1.0.4",
"x-logo": {
"url": "https://api.apis.guru/v2/cache/logo/https_amadeus.com_images_en_technology_mobile-tablet_mobile-woman-office-city.jpg.transform_medium_img.jpg"
},
"x-origin": [
{
"format": "swagger",
"url": "https://raw.githubusercontent.com/amadeus4dev/amadeus-open-api-specification/main/spec/json/AirportOnTimePerformance_v1_swagger_specification.json",
"version": "2.0"
}
],
"x-providerName": "amadeus.com",
"x-release-note": {
"1.0": [
"Initial Version"
]
},
"x-serviceName": "amadeus-airport-on-time-performance",
"x-status": "validated",
"x-tags": [
"#ama-for-dev"
]
},
"consumes": [
"application/vnd.amadeus+json"
],
"produces": [
"application/vnd.amadeus+json"
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Prediction"
}
},
"400": {
"description": "code | title \n------- | ------------------------------------- \n477 | INVALID FORMAT\n572 | INVALID OPTION\n4926 | INVALID DATA RECEIVED \n32171 | MANDATORY DATA MISSING \t \n",
"schema": {
"$ref": "#/definitions/Error_400"
}
},
"500": {
"description": "Unexpected Error",
"schema": {
"$ref": "#/definitions/Error_500"
}
}
},
"paths": {
"/airport/predictions/on-time": {
"get": {
"description": "",
"operationId": "getAirportOnTimePrediction",
"parameters": [
{
"description": "airport [IATA code](http://www.iata.org/publications/Pages/code-search.aspx), e.g. BOS for Boston",
"in": "query",
"name": "airportCode",
"pattern": "[A-Z]{3}",
"required": true,
"type": "string",
"x-example": "JFK"
},
{
"description": "the date on which the traveler will depart from the give airport. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-DD format, e.g. 2019-12-25",
"format": "date",
"in": "query",
"name": "date",
"required": true,
"type": "string",
"x-example": "2023-11-12"
}
],
"responses": {
"200": {
"$ref": "#/responses/200"
},
"400": {
"$ref": "#/responses/400"
},
"default": {
"$ref": "#/responses/500"
}
},
"summary": "Returns a percentage of on-time flight departures from a given airport.",
"tags": [
"airport-ontime-prediction"
]
}
}
},
"definitions": {
"Error_400": {
"example": {
"errors": [
{
"code": 477,
"detail": "invalid query parameter format",
"source": {
"example": "CDG",
"parameter": "airport"
},
"status": 400,
"title": "INVALID FORMAT"
}
]
},
"properties": {
"errors": {
"items": {
"$ref": "#/definitions/Issue"
},
"type": "array"
}
},
"required": [
"errors"
]
},
"Error_500": {
"example": {
"errors": [
{
"code": 141,
"status": 500,
"title": "SYSTEM ERROR HAS OCCURRED"
}
]
},
"properties": {
"errors": {
"items": {
"$ref": "#/definitions/Issue"
},
"type": "array"
}
},
"required": [
"errors"
]
},
"Issue": {
"properties": {
"code": {
"description": "an application-specific error code",
"format": "int64",
"type": "integer"
},
"detail": {
"description": "explanation of the error",
"type": "string"
},
"source": {
"description": "an object containing references to the source of the error",
"maxProperties": 1,
"properties": {
"example": {
"description": "a string indicating an example of the right value",
"type": "string"
},
"parameter": {
"description": "a string indicating which URI query parameter caused the issue",
"type": "string"
},
"pointer": {
"description": "a JSON Pointer [RFC6901] to the associated entity in the request document",
"type": "string"
}
},
"title": "Issue_Source",
"type": "object"
},
"status": {
"description": "the HTTP status code applicable to this error",
"type": "integer"
},
"title": {
"description": "a short summary of the error",
"type": "string"
}
}
},
"Links": {
"properties": {
"related": {
"format": "uri",
"type": "string"
},
"self": {
"format": "uri",
"type": "string"
},
"type": {
"type": "string"
}
}
},
"Meta": {
"properties": {
"links": {
"$ref": "#/definitions/Links"
}
},
"type": "object"
},
"OnTimePrediction": {
"properties": {
"id": {
"description": "item identifier",
"readOnly": true,
"type": "string"
},
"probability": {
"description": "probability of the forecast (between 0 and 1)",
"type": "string"
},
"result": {
"$ref": "#/definitions/PredictionResultType"
},
"subType": {
"example": "trip-purpose",
"type": "string"
},
"type": {
"description": "the resource name (`prediction`)",
"type": "string"
}
}
},
"Prediction": {
"example": {
"data": {
"id": "JFK20231112",
"probability": "0.928",
"result": "0.84062016",
"subType": "on-time",
"type": "prediction"
},
"meta": {
"links": {
"self": "https://test.api.amadeus.com/v1/airport/predictions/on-time?airportCode=JFK&date=2023-11-12"
}
}
},
"properties": {
"data": {
"$ref": "#/definitions/OnTimePrediction"
},
"meta": {
"$ref": "#/definitions/Meta"
}
},
"type": "object"
},
"PredictionResultType": {
"description": "forecast description",
"example": 0.8,
"type": "string"
}
},
"x-generatedAt": "2020-07-23T14:07:22.902Z"
}