{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amadeus-solutions/refs/heads/main/json-structure/flight-offers-search-date-time-range-structure.json",
"name": "DateTimeRange",
"description": "DateTimeRange schema",
"required": [
"date"
],
"allOf": [
{
"$ref": "#/definitions/DateTimeType"
},
{
"type": "object",
"properties": {
"dateWindow": {
"description": "Either 1, 2 or 3 extra days around the local date (IxD for +/- x days - Ex: I3D), Either 1 to 3 days after the local date (PxD for +x days - Ex: P3D), or 1 to 3 days before the local date (MxD for -x days - Ex: M3D)\n\nCan not be combined with \"originRadius\" or \"destinationRadius\".\n",
"type": "string",
"example": "I3D",
"pattern": "^[MPI][1-3]D"
},
"timeWindow": {
"description": "1 to 12 hours around (both +and -) the local time. Possibly limited by the number of extra days when specified, i.e. in some situations, it may not be used to exceed the maximum date range. [1-12]H format, e.g. 6H\n\nCan not be combined with \"originRadius\" or \"destinationRadius\".\n",
"type": "string",
"example": "2H",
"pattern": "^([1-9]|10|11|12)H"
}
}
}
]
}
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.