{
 "openapi": "3.0.3",
 "info": {
  "title": "LuftFly Data API",
  "version": "1.13.0",
  "description": "Airports, runways, time zones, travel advisories, entry rules, health, emergency numbers and flight CO2 estimates in one JSON API.\n\n- **Airports**: 86,000+ airports and airfields (IATA/ICAO lookup, search, nearest airports, runways, frequencies, time zones).\n- **Aerodromes**: heliports, seaplane bases, balloonports and small airstrips as their own dataset, and a proximity check listing every landing site near a point with distance and bearing (`/v1/aerodromes/nearby`).\n- **Route**: great-circle distance and an indicative per-passenger CO2e estimate between two airports (UK government factors).\n- **Fuel prices**: national average pump prices for 30 countries (EU, UK, Norway, US) and station-level prices from official national open-data feeds (see `/v1/fuel/countries` for coverage, licences and freshness).\n- **Energy and mobility**: price history and taxes for 27 EU countries, household electricity prices, EV charging stations (France), 10-year exchange rate history, US tide predictions.\n- **Travel conditions**: land border wait times (US, Canada), satellite wildfire detections, recent earthquakes (USGS), official weather alerts (US, Canada, Germany), pollen and UV forecasts (Germany), buoy observations, air quality.\n- **Aviation weather**: active SIGMETs worldwide (volcanic ash, thunderstorms, turbulence, icing, tropical cyclones), US G-AIRMETs, turbulence and icing pilot reports, one call per airport; plus space weather and active tropical cyclones (NOAA, advisory only).\n- **Country indicators**: about 65 licence-checked World Bank indicators for every country (tourism, road safety, governance, health, internet and air connectivity, economy and cost of living, population, environment) with rankings, plus homicide rates and ports with UN/LOCODE (Wikidata).\n- **CO2**: flight estimates and a plane/train/coach/car/ferry comparison (`/v1/emissions`).\n- **Travel advisories**: official government advice for 200+ countries (levels, hazards, laws, entry, health, emergency numbers).\n\nAdd `include=advisory` to any airport call to get the destination country's advisory level in the same response.\n\nInformational only; not an official source. Questions: info@nanxor.com.",
  "contact": {
   "name": "NaNXOR Enterprise",
   "email": "info@nanxor.com",
   "url": "https://www.nanxor.com"
  }
 },
 "servers": [
  {
   "url": "https://api.luftfly.com/luftfly"
  }
 ],
 "tags": [
  {
   "name": "Airports",
   "description": "Look up, search and find nearby airports."
  },
  {
   "name": "Route",
   "description": "Distance and CO2 estimate between two airports."
  },
  {
   "name": "Aerodromes",
   "description": "Heliports, seaplane bases, balloonports, airstrips and the proximity check."
  },
  {
   "name": "Travel advisories",
   "description": "Government travel advice, hazards, laws, entry, health and emergency numbers."
  },
  {
   "name": "Health",
   "description": "Availability check."
  },
  {
   "name": "Countries",
   "description": "Country facts and travel health notices."
  },
  {
   "name": "Holidays",
   "description": "Public holidays."
  },
  {
   "name": "Currency",
   "description": "Exchange rates."
  },
  {
   "name": "Cities",
   "description": "City search and airports near a city."
  },
  {
   "name": "Time zones",
   "description": "Local time, time zones and daylight saving."
  },
  {
   "name": "Flights (US)",
   "description": "On-time performance and routes for US airports and carriers (BTS)."
  },
  {
   "name": "Fuel prices",
   "description": "National average and station-level pump prices from official open-data publications."
  },
  {
   "name": "Travel conditions",
   "description": "Border wait times and wildfire detections."
  },
  {
   "name": "Health weather",
   "description": "Pollen and UV index forecasts for Germany (Deutscher Wetterdienst)."
  },
  {
   "name": "Aviation weather",
   "description": "SIGMETs (incl. volcanic ash), G-AIRMETs and pilot reports from NOAA; advisory information only."
  },
  {
   "name": "Aviation safety",
   "description": "NTSB aviation accident and incident records."
  },
  {
   "name": "Energy and mobility",
   "description": "Household electricity prices and EV charging stations."
  },
  {
   "name": "Meta",
   "description": "Data sources, licences and freshness."
  },
  {
   "name": "Events",
   "description": "Earthquakes and natural events."
  }
 ],
 "paths": {
  "/ping": {
   "get": {
    "tags": [
     "Health"
    ],
    "operationId": "ping",
    "summary": "Health check",
    "description": "Returns ok when the API is reachable.",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "type": "boolean"
          },
          "service": {
           "type": "string"
          },
          "time": {
           "type": "string",
           "format": "date-time"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getAirport",
    "summary": "Get an airport by code",
    "description": "Location, elevation, type, codes, country and region names. Add `include=runways,frequencies` to get them in the same call.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (`JFK`), ICAO (`KJFK`), ident or local code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "JFK"
     },
     {
      "name": "include",
      "in": "query",
      "required": false,
      "description": "Comma-separated extras: `runways`, `frequencies`, `advisory` (the country's travel advisory level).",
      "schema": {
       "type": "string"
      },
      "example": "runways,frequencies,advisory"
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsAirportResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "listAirports",
    "summary": "Search and filter airports",
    "description": "Search by name, city or code and filter by country, region, continent, type and scheduled service. Closed airports are excluded unless you ask for `type=closed`. Larger airports are listed first.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Search text: part of a name or city (accent-insensitive), or an exact IATA/ICAO code.",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "heathrow"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 country code.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$"
      },
      "example": "CA"
     },
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "ISO 3166-2 region code.",
      "schema": {
       "type": "string"
      },
      "example": "US-NY"
     },
     {
      "name": "continent",
      "in": "query",
      "required": false,
      "description": "Continent code.",
      "schema": {
       "type": "string",
       "enum": [
        "AF",
        "AN",
        "AS",
        "EU",
        "NA",
        "OC",
        "SA"
       ]
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Comma-separated airport types: large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport, closed.",
      "schema": {
       "type": "string"
      },
      "example": "large_airport,medium_airport"
     },
     {
      "name": "scheduled",
      "in": "query",
      "required": false,
      "description": "Only airports that do (true) or do not (false) have scheduled commercial service.",
      "schema": {
       "type": "string",
       "enum": [
        "true",
        "false"
       ]
      }
     },
     {
      "name": "has_iata",
      "in": "query",
      "required": false,
      "description": "true: only airports that have an IATA code.",
      "schema": {
       "type": "string",
       "enum": [
        "true"
       ]
      }
     },
     {
      "name": "include",
      "in": "query",
      "required": false,
      "description": "Set `advisory` to add the country's travel advisory level (from the NaNXOR Travel Advisory data) to every airport.",
      "schema": {
       "type": "string",
       "enum": [
        "advisory"
       ]
      },
      "example": "advisory"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Items to skip.",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsAirportList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/nearby": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "nearbyAirports",
    "summary": "Nearest airports to a coordinate",
    "description": "Airports within a radius of a point, sorted by distance (great-circle, km). By default heliports and closed airfields are left out; use `scheduled=true` for commercial airports only.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude in decimal degrees.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 45.5
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude in decimal degrees.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": -73.57
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-500).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 500,
       "default": 100
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Comma-separated airport types: large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport, closed.",
      "schema": {
       "type": "string"
      },
      "example": "large_airport,medium_airport"
     },
     {
      "name": "scheduled",
      "in": "query",
      "required": false,
      "description": "Only airports that do (true) or do not (false) have scheduled commercial service.",
      "schema": {
       "type": "string",
       "enum": [
        "true",
        "false"
       ]
      }
     },
     {
      "name": "has_iata",
      "in": "query",
      "required": false,
      "description": "true: only airports that have an IATA code.",
      "schema": {
       "type": "string",
       "enum": [
        "true"
       ]
      }
     },
     {
      "name": "include",
      "in": "query",
      "required": false,
      "description": "Set `advisory` to add the country's travel advisory level (from the NaNXOR Travel Advisory data) to every airport.",
      "schema": {
       "type": "string",
       "enum": [
        "advisory"
       ]
      },
      "example": "advisory"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results (1-50).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50,
       "default": 10
      }
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsNearbyList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/runways": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getRunways",
    "summary": "Runways of an airport",
    "description": "Length, width, surface, lighting and both runway ends.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (`JFK`), ICAO (`KJFK`), ident or local code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsRunwayList"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/frequencies": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getFrequencies",
    "summary": "Radio frequencies of an airport",
    "description": "Tower, ground, ATIS and other frequencies in MHz.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (`JFK`), ICAO (`KJFK`), ident or local code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsFrequencyList"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/navaids": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getAirportNavaids",
    "summary": "Navaids associated with an airport",
    "description": "VOR, VOR-DME, VORTAC, TACAN, DME and NDB stations that OurAirports associates with the airport: frequency, DME channel, position, magnetic variation, usage and power class.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (`JFK`), ICAO (`KJFK`), ident or local code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsNavaidList"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/metar": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportMetar",
    "summary": "Latest METAR (observed weather)",
    "description": "The latest METAR for the airport's weather station: temperature, dew point, wind, visibility, altimeter, weather phenomena, clouds, flight category and the raw report. Source: NOAA/NWS Aviation Weather Center, refreshed every ~10 minutes. Informational only; not for flight planning or navigation.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (`JFK`), ICAO (`KJFK`), ident or local code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsMetarResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/taf": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportTaf",
    "summary": "Latest TAF (forecast)",
    "description": "The latest terminal aerodrome forecast: validity window, forecast periods (base, FM/BECMG/TEMPO/PROB) and the raw report. Source: NOAA/NWS Aviation Weather Center. Informational only; not for flight planning or navigation.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (`JFK`), ICAO (`KJFK`), ident or local code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsTafResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/weather": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportWeather",
    "summary": "Latest METAR and TAF together",
    "description": "Both reports in one call. Either may be null; 404 only when the airport has neither.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (`JFK`), ICAO (`KJFK`), ident or local code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsWeatherResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/sun": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getAirportSun",
    "summary": "Sunrise, sunset and twilight times",
    "description": "Sunrise, sunset, solar noon and civil/nautical/astronomical twilight for an airport on a given date, in UTC and in the airport's local time. Computed from the coordinates (no external data). Polar day and polar night are reported in `state`.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (`JFK`), ICAO (`KJFK`), ident or local code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "JFK"
     },
     {
      "name": "date",
      "in": "query",
      "required": false,
      "description": "Date as YYYY-MM-DD (1970-2100). Defaults to today at the airport.",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "example": "2026-12-21"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsSunResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "422": {
      "description": "The airport has no coordinates.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/navaids": {
   "get": {
    "tags": [
     "Navaids"
    ],
    "operationId": "searchNavaids",
    "summary": "Search navaids",
    "description": "Radio navigation aids worldwide (about 11,000). Search by name or identifier, country or type. Informational only; not for navigation.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Name (accent-insensitive) or exact identifier.",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "kennedy"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 country code.",
      "schema": {
       "type": "string"
      },
      "example": "US"
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Navaid type.",
      "schema": {
       "type": "string",
       "enum": [
        "NDB",
        "VOR",
        "VOR-DME",
        "VORTAC",
        "TACAN",
        "DME",
        "NDB-DME"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Items to skip.",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsNavaidList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airlines": {
   "get": {
    "tags": [
     "Airlines"
    ],
    "operationId": "searchAirlines",
    "summary": "Search airlines",
    "description": "Active airlines that have an IATA and/or ICAO code: name, codes, radio callsign and country. Compiled from Wikidata (CC0); indicative, not an official registry.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Airline name or callsign.",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "air canada"
     },
     {
      "name": "iata",
      "in": "query",
      "required": false,
      "description": "IATA airline code (2 characters).",
      "schema": {
       "type": "string"
      },
      "example": "AC"
     },
     {
      "name": "icao",
      "in": "query",
      "required": false,
      "description": "ICAO airline code (3 letters).",
      "schema": {
       "type": "string"
      },
      "example": "ACA"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 country code.",
      "schema": {
       "type": "string"
      },
      "example": "CA"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Items to skip.",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsAirlineList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airlines/{code}": {
   "get": {
    "tags": [
     "Airlines"
    ],
    "operationId": "getAirline",
    "summary": "One airline by IATA or ICAO code",
    "description": "A 2-character code is looked up as IATA, a 3-letter code as ICAO. IATA codes are occasionally reused; `matches` tells you how many airlines share the code (the first, by name, is returned).",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA (2 characters) or ICAO (3 letters) airline code.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9]{2,3}$"
      },
      "example": "AC"
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsAirlineResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/route": {
   "get": {
    "tags": [
     "Route"
    ],
    "operationId": "routeCarbon",
    "summary": "Distance and CO2 estimate between two airports",
    "description": "Great-circle distance (km, miles, nautical miles) and an indicative per-passenger CO2e estimate for a flight between two airports. Uses the UK government (DESNZ/DEFRA) conversion factors by flight category and cabin class. An estimate, not an official calculator.",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": true,
      "description": "Origin airport, IATA or ICAO code.",
      "schema": {
       "type": "string",
       "maxLength": 8
      },
      "example": "YUL"
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "description": "Destination airport, IATA or ICAO code.",
      "schema": {
       "type": "string",
       "maxLength": 8
      },
      "example": "IST"
     },
     {
      "name": "class",
      "in": "query",
      "required": false,
      "description": "Return a single cabin class.",
      "schema": {
       "type": "string",
       "enum": [
        "average",
        "economy",
        "premium_economy",
        "business",
        "first"
       ]
      }
     },
     {
      "name": "passengers",
      "in": "query",
      "required": false,
      "description": "Number of passengers (1-500).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 500,
       "default": 1
      }
     },
     {
      "name": "round_trip",
      "in": "query",
      "required": false,
      "description": "Double the figures for a return trip.",
      "schema": {
       "type": "boolean",
       "default": false
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsRouteResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "422": {
      "description": "No factor for that class on this flight category.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airport-countries": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "airports_listCountries",
    "summary": "Countries with airport counts",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Filter by country name or code.",
      "schema": {
       "type": "string",
       "maxLength": 40
      },
      "example": "canada"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsCountryList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airport-meta": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "airports_getMeta",
    "summary": "Airports data version and counts",
    "description": "When the dataset was built, how many records it holds, the airport types and the attribution statement.",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsMetaResponse"
        }
       }
      }
     },
     "503": {
      "description": "Database not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/countries": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_listCountries",
    "summary": "List countries and their current advisory level",
    "description": "Filterable, sortable, paginated list. The `level` is the strictest level among the published sources.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Match on country name (substring) or exact ISO code.",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "france"
     },
     {
      "name": "level_min",
      "in": "query",
      "required": false,
      "description": "Minimum level (1-4).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 4,
       "default": 1
      },
      "example": 3
     },
     {
      "name": "level_max",
      "in": "query",
      "required": false,
      "description": "Maximum level (1-4).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 4,
       "default": 4
      }
     },
     {
      "name": "regional",
      "in": "query",
      "required": false,
      "description": "Only countries that do (true) or do not (false) have regional warnings.",
      "schema": {
       "type": "string",
       "enum": [
        "true",
        "false"
       ]
      }
     },
     {
      "name": "updated_since",
      "in": "query",
      "required": false,
      "description": "Only advisories updated at or after this ISO 8601 date/time.",
      "schema": {
       "type": "string"
      },
      "example": "2026-11-01"
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "Sort order.",
      "schema": {
       "type": "string",
       "enum": [
        "name",
        "level_desc",
        "updated_desc"
       ],
       "default": "name"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size (1-250).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 250,
       "default": 50
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Items to skip.",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelCountryList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/countries/{country}": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_getCountry",
    "summary": "Advisory for one country",
    "description": "Harmonized level plus each source's level, summary, update time and official link. Long text sections are listed by title; fetch them from the source endpoint.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (e.g. `FR`) or alpha-3 (e.g. `FRA`) code, case-insensitive. Kosovo is `XK`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "FR"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelCountryResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/countries/{country}/sources/{source}": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_getCountrySource",
    "summary": "Full text from one government",
    "description": "The complete advice published by one government for the country, including long sections where available.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (e.g. `FR`) or alpha-3 (e.g. `FRA`) code, case-insensitive. Kosovo is `XK`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "FR"
     },
     {
      "name": "source",
      "in": "path",
      "required": true,
      "description": "Source: `uk` (UK FCDO), `ca` (Government of Canada).",
      "schema": {
       "type": "string",
       "enum": [
        "uk",
        "ca",
        "us"
       ]
      },
      "example": "uk"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelSourceResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/countries/{country}/hazards": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_getCountryHazards",
    "summary": "Climate and natural hazards",
    "description": "The extreme weather and natural disaster guidance in the UK FCDO advice: seasons and storm risks, earthquakes, volcanoes, flooding, heat and how to prepare. `topics` lists the hazards covered (they differ per country). Returns 404 when the UK does not publish such a section for the country.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (e.g. `FR`) or alpha-3 (e.g. `FRA`) code, case-insensitive. Kosovo is `XK`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "FR"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelHazardsResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/countries/{country}/laws": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_getCountryLaws",
    "summary": "Laws and cultural differences",
    "description": "The laws, customs and cultural guidance in the UK FCDO advice: personal ID, alcohol and drug rules, dress and behaviour, LGBT+ travellers, medication bans and similar topics. `topics` lists what the text covers. Returns 404 when the UK publishes no such section.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (e.g. `FR`) or alpha-3 (e.g. `FRA`) code, case-insensitive. Kosovo is `XK`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "FR"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelSectionResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/countries/{country}/entry": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_getCountryEntry",
    "summary": "Entry requirements",
    "description": "Entry guidance from the UK FCDO advice: passport validity, visa requirements, dual nationals, vaccine requirements and customs rules, both as separate `key_points` and as the full `text`. **The rules are written for British citizens travelling on a full British citizen passport** (see `scope`); other nationalities can face different rules. Returns 404 when the UK publishes no entry advice for the country.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (e.g. `FR`) or alpha-3 (e.g. `FRA`) code, case-insensitive. Kosovo is `XK`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "FR"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelKeyPointsResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/countries/{country}/health": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_getCountryHealth",
    "summary": "Health information",
    "description": "Health guidance from the UK FCDO advice: emergency medical number, vaccine recommendations and health risks, medication rules and healthcare, as separate `key_points` and as the full `text`. Returns 404 when the UK publishes no health advice for the country.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (e.g. `FR`) or alpha-3 (e.g. `FRA`) code, case-insensitive. Kosovo is `XK`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "FR"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelKeyPointsResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/countries/{country}/emergency": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_getCountryEmergency",
    "summary": "Emergency numbers and consular help",
    "description": "Local emergency numbers (ambulance, fire, police, tourist police) and the consular help guidance from the UK FCDO advice. `numbers` is parsed best effort; `text` always contains the full original wording, including cases such as 'no central number'. The consular help text is written from the UK perspective. Embassy street addresses are not included. `reference_numbers` adds an unverified reference list for almost every country (also where the UK publishes no advice).",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (e.g. `FR`) or alpha-3 (e.g. `FRA`) code, case-insensitive. Kosovo is `XK`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{2,8}$"
      },
      "example": "FR"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelEmergencyResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/changes": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_listChanges",
    "summary": "Recent advisory level changes",
    "description": "Level changes detected between data refreshes, newest first.",
    "parameters": [
     {
      "name": "since",
      "in": "query",
      "required": false,
      "description": "Only changes at or after this ISO 8601 date/time.",
      "schema": {
       "type": "string"
      },
      "example": "2026-11-01"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "Only this country (ISO code).",
      "schema": {
       "type": "string",
       "maxLength": 8
      },
      "example": "UA"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max items (1-500).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 500,
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelChangeList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/travel/meta": {
   "get": {
    "tags": [
     "Travel advisories"
    ],
    "operationId": "travel_getMeta",
    "summary": "Sources, licences and data freshness",
    "description": "Which governments are included, their licences and attribution statements, and how fresh the data is.",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelMetaResponse"
        }
       }
      }
     },
     "503": {
      "description": "No data snapshot available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TravelError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries": {
   "get": {
    "tags": [
     "Countries"
    ],
    "operationId": "listCountryFacts",
    "summary": "Country facts",
    "description": "Capital, population, area, currencies, official languages, calling code, driving side, internet domain and flag for about 250 countries and territories (Wikidata, CC0).",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Country name, capital, or ISO code.",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "canada"
     },
     {
      "name": "continent",
      "in": "query",
      "required": false,
      "description": "Continent name, e.g. Europe.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "currency",
      "in": "query",
      "required": false,
      "description": "ISO 4217 currency code.",
      "schema": {
       "type": "string"
      },
      "example": "EUR"
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Items to skip.",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CountryFactsList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}": {
   "get": {
    "tags": [
     "Countries"
    ],
    "operationId": "getCountryFacts",
    "summary": "One country's facts",
    "description": "All facts for a country plus each currency's latest rate per euro and the next three public holidays.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CountryFactsResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/holidays": {
   "get": {
    "tags": [
     "Holidays"
    ],
    "operationId": "getCountryHolidays",
    "summary": "Public holidays",
    "description": "National public holidays for a year (2026-2028), or the upcoming ones with `upcoming=true`. Generated with python-holidays (MIT); local observance can differ.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     },
     {
      "name": "year",
      "in": "query",
      "required": false,
      "description": "Year (default: current year).",
      "schema": {
       "type": "integer",
       "minimum": 1900,
       "maximum": 2200
      },
      "example": 2026
     },
     {
      "name": "upcoming",
      "in": "query",
      "required": false,
      "description": "true: holidays from today instead of a calendar year.",
      "schema": {
       "type": "string",
       "enum": [
        "true",
        "false"
       ]
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "With `upcoming=true`: how many days ahead (1-365).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 365,
       "default": 90
      }
     },
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "Add a region's holidays (state, province ...) to the national ones; the codes are listed in `regions_available`.",
      "schema": {
       "type": "string"
      },
      "example": "QC"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HolidayList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/health-notices": {
   "get": {
    "tags": [
     "Countries"
    ],
    "operationId": "getCountryHealthNotices",
    "summary": "Travel health notices (CDC)",
    "description": "Current U.S. CDC travel health notices (outbreaks and health risks) that name the country, newest first. CDC does not endorse this service.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthNoticeList"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fx/latest": {
   "get": {
    "tags": [
     "Currency"
    ],
    "operationId": "getFxLatest",
    "summary": "Latest exchange rates",
    "description": "European Central Bank euro reference rates for about 30 currencies, rebased to any supported currency. Indicative; published once per working day; not for trading.",
    "parameters": [
     {
      "name": "base",
      "in": "query",
      "required": false,
      "description": "Base currency (default EUR).",
      "schema": {
       "type": "string"
      },
      "example": "USD"
     },
     {
      "name": "symbols",
      "in": "query",
      "required": false,
      "description": "Comma-separated currencies to return.",
      "schema": {
       "type": "string"
      },
      "example": "CAD,TRY"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FxLatestResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fx/convert": {
   "get": {
    "tags": [
     "Currency"
    ],
    "operationId": "convertCurrency",
    "summary": "Convert an amount",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": true,
      "description": "Source currency (ISO 4217).",
      "schema": {
       "type": "string"
      },
      "example": "USD"
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "description": "Target currency (ISO 4217).",
      "schema": {
       "type": "string"
      },
      "example": "CAD"
     },
     {
      "name": "amount",
      "in": "query",
      "required": false,
      "description": "Amount (default 1).",
      "schema": {
       "type": "number",
       "minimum": 0
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FxConvertResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/cities": {
   "get": {
    "tags": [
     "Cities"
    ],
    "operationId": "searchCities",
    "summary": "Search cities",
    "description": "About 4,600 cities with roughly 70,000 inhabitants or more (Wikidata, CC0), largest first.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "City name prefix (accent-insensitive).",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "paris"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 country code.",
      "schema": {
       "type": "string"
      },
      "example": "FR"
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Items to skip.",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CityList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/cities/airports": {
   "get": {
    "tags": [
     "Cities"
    ],
    "operationId": "airportsNearCity",
    "summary": "Airports near a city",
    "description": "Finds the city by name (largest match, or add `country`) and returns the nearest large and medium airports with an IATA code, nearest first.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "City name.",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "paris"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 country code, to disambiguate.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-500).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 500,
       "default": 100
      }
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     },
     {
      "name": "scheduled",
      "in": "query",
      "required": false,
      "description": "true (default): only airports with scheduled passenger service; false: include others such as military and business airfields.",
      "schema": {
       "type": "string",
       "enum": [
        "true",
        "false"
       ],
       "default": "true"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max airports (1-50).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CityAirportsResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/forecast": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportForecast",
    "summary": "Weather forecast for an airport",
    "description": "Daily summary (min/max temperature, precipitation, symbol in the airport's local dates), the next 48 hours hourly and a 6-hourly outlook for about a week. Covers the large airports with scheduled service (about 1,150), refreshed roughly every 3 hours. Data from MET Norway (CC BY 4.0). Informational; not for flight planning.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "YUL"
     },
     {
      "name": "view",
      "in": "query",
      "required": false,
      "description": "daily (default size small), hourly (daily + 48 h) or full (adds the 6-hourly outlook).",
      "schema": {
       "type": "string",
       "enum": [
        "daily",
        "hourly",
        "full"
       ],
       "default": "full"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ForecastResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/climate": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportClimate",
    "summary": "Monthly climate normals",
    "description": "Twelve monthly averages (mean temperature, approximate daily high and low, precipitation, humidity) for the surroundings of the airport, plus the warmest, coldest, wettest and driest month. NASA POWER climatology (2001-2025) on a 0.5-degree grid, so values describe the area (about 55 km), not a weather station. Useful for 'best time to visit'.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "IST"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ClimateResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/long-weekends": {
   "get": {
    "tags": [
     "Holidays"
    ],
    "operationId": "getCountryLongWeekends",
    "summary": "Long weekends and bridge days",
    "description": "Runs of three or more days off that include a public holiday (no leave needed), and bridge opportunities where one day of leave connects a holiday with a weekend. Uses the country's own weekend days.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     },
     {
      "name": "year",
      "in": "query",
      "required": false,
      "description": "Year (2026-2028, default: current year).",
      "schema": {
       "type": "integer"
      },
      "example": 2027
     },
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "Region or subdivision code such as QC or CA-QC style codes where available (see `regions_available` in the holidays response).",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LongWeekendResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/indicators": {
   "get": {
    "tags": [
     "Countries"
    ],
    "operationId": "getCountryIndicators",
    "summary": "Economic and social indicators",
    "description": "Latest values of GDP per capita, relative price level (1.0 = US prices), international tourist arrivals, inflation, life expectancy, internet use, urban population and population density. World Bank Open Data (CC BY 4.0).",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IndicatorsResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/time/convert": {
   "get": {
    "tags": [
     "Time zones"
    ],
    "operationId": "convertTime",
    "summary": "Convert a time between airports or time zones",
    "description": "Local time, UTC offset, abbreviation, daylight-saving state and the next transition for both ends, plus the difference in hours. `from` and `to` accept airport codes or IANA names.",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": true,
      "description": "Airport code or IANA time zone.",
      "schema": {
       "type": "string"
      },
      "example": "YUL"
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "description": "Airport code or IANA time zone.",
      "schema": {
       "type": "string"
      },
      "example": "IST"
     },
     {
      "name": "time",
      "in": "query",
      "required": false,
      "description": "Local time in the `from` zone (default: now), e.g. 2026-12-01T09:30.",
      "schema": {
       "type": "string"
      },
      "example": "2026-12-01T09:30"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TimeConvertResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/timezones": {
   "get": {
    "tags": [
     "Time zones"
    ],
    "operationId": "getTimeZone",
    "summary": "Time zone details and upcoming daylight-saving changes",
    "parameters": [
     {
      "name": "zone",
      "in": "query",
      "required": true,
      "description": "IANA time zone name or airport code.",
      "schema": {
       "type": "string"
      },
      "example": "Europe/Istanbul"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TimeZoneResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/rankings/airports": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "airportRankings",
    "summary": "Busiest airports by passengers",
    "description": "Large and medium airports ranked by their latest annual passenger count on Wikidata (CC0); the year differs between airports and is returned per row.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 country code.",
      "schema": {
       "type": "string"
      },
      "example": "US"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 20
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RankingResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/stats": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getAirportStats",
    "summary": "Passenger numbers, opening year, operator, runways",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportStatsResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/delays": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getAirportDelays",
    "summary": "Current FAA delays, ground stops and closures",
    "description": "Live FAA National Airspace System status for airports in the United States and its territories (refreshed about every 10 minutes). Other countries return 404 `not_covered`. Informational only.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportDelaysResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/best-time": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportBestTime",
    "summary": "Best time to visit",
    "description": "A comfort score (0-100) for each month from the airport's climate normals for `activity` sightseeing, beach or city-break, plus the three best and worst months. A heuristic, not an official rating.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "activity",
      "in": "query",
      "required": false,
      "description": "Which comfort range to score against.",
      "schema": {
       "type": "string",
       "enum": [
        "sightseeing",
        "beach",
        "city-break"
       ],
       "default": "sightseeing"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BestTimeResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/time": {
   "get": {
    "tags": [
     "Time zones"
    ],
    "operationId": "getAirportLocalTime",
    "summary": "Local time at an airport",
    "description": "Current local time, UTC offset, abbreviation, daylight-saving state and the next change at the airport's time zone.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TimeZoneResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "422": {
      "description": "No time zone on record.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/meta": {
   "get": {
    "tags": [
     "Meta"
    ],
    "operationId": "getLuftflyMeta",
    "summary": "Data sources, licences and freshness",
    "description": "Every dataset behind the API with its source, refresh rhythm and last update or period, plus the languages available for `lang`.",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LuftflyMetaResponse"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/routes": {
   "get": {
    "tags": [
     "Flights (US)"
    ],
    "operationId": "getRouteCarriers",
    "summary": "Carriers on a route touching the US",
    "description": "Domestic: which large US carriers flew the route in the last 12 months, how often, and how often they arrived 15+ minutes late or were cancelled. International (a route with one US end): US and foreign carriers with departures, passengers, seats and load factor (BTS T-100). Routes between two non-US airports are not covered.",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": true,
      "description": "Origin airport code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "description": "Destination airport code.",
      "schema": {
       "type": "string"
      },
      "example": "LAX"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RouteCarriersResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airlines/{code}/performance": {
   "get": {
    "tags": [
     "Flights (US)"
    ],
    "operationId": "getAirlinePerformance",
    "summary": "Airline on-time performance (US)",
    "description": "Share of flights arriving 15+ minutes late, cancelled or diverted over the last 12 months, a monthly series and the ten busiest routes. Covers the large US reporting carriers (BTS).",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "Two-character IATA airline code of a US carrier.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9]{2}$"
      },
      "example": "DL"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirlinePerformanceResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/performance": {
   "get": {
    "tags": [
     "Flights (US)"
    ],
    "operationId": "getAirportPerformance",
    "summary": "Airport on-time performance (US)",
    "description": "Departure and arrival delays, cancellations and diversions over the last 12 months, the share of delay minutes by cause (carrier, weather, air traffic system, security, late aircraft) and a monthly series. US airports (BTS).",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportPerformanceResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/routes": {
   "get": {
    "tags": [
     "Flights (US)"
    ],
    "operationId": "getAirportRoutes",
    "summary": "Routes from or to an airport with a US connection",
    "description": "Destinations (or origins) with the carriers serving them, busiest first (BTS, last 12 months): domestic routes of the large US carriers, and international routes to or from the US with passengers and load factor (US and foreign carriers). Works for non-US airports too, for their US-bound routes.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "direction",
      "in": "query",
      "required": false,
      "description": "departures (default) or arrivals.",
      "schema": {
       "type": "string",
       "enum": [
        "departures",
        "arrivals"
       ],
       "default": "departures"
      }
     },
     {
      "name": "scope",
      "in": "query",
      "required": false,
      "description": "all (default), domestic or international.",
      "schema": {
       "type": "string",
       "enum": [
        "all",
        "domestic",
        "international"
       ],
       "default": "all"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max destinations (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportRoutesResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/attractions": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getAirportAttractions",
    "summary": "UNESCO World Heritage Sites near an airport",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-500).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 500,
       "default": 150
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "lang",
      "in": "query",
      "required": false,
      "description": "Two-letter language code (tr, fr, de, es, it, pt, ru, ja, zh, ar, ko, nl): adds `localized_name` from Wikidata where available.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "tr"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AttractionsResponse"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fuel/national/history": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "fuelNationalHistory",
    "summary": "Weekly price history of an EU country",
    "description": "Weekly national average pump prices since 2005 for the 27 EU member states (European Commission Weekly Oil Bulletin), with the price before taxes, the tax share and changes versus 4, 13 and 52 weeks earlier.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": true,
      "description": "EU member state, ISO 3166-1 alpha-2.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$"
      },
      "example": "DE"
     },
     {
      "name": "fuel",
      "in": "query",
      "required": true,
      "description": "`gasoline_95`, `diesel` or `lpg`.",
      "schema": {
       "type": "string",
       "enum": [
        "gasoline_95",
        "diesel",
        "lpg"
       ]
      },
      "example": "diesel"
     },
     {
      "name": "from",
      "in": "query",
      "required": false,
      "description": "First week, `YYYY-MM-DD`.",
      "schema": {
       "type": "string",
       "format": "date"
      }
     },
     {
      "name": "to",
      "in": "query",
      "required": false,
      "description": "Last week, `YYYY-MM-DD`.",
      "schema": {
       "type": "string",
       "format": "date"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Newest weeks to return (1-1500).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 1500,
       "default": 260
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FuelHistory"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fx/history": {
   "get": {
    "tags": [
     "Currency"
    ],
    "operationId": "getFxHistory",
    "summary": "Exchange rate history (ECB, 10 years)",
    "description": "Daily European Central Bank reference rates for a currency pair over the last ten years, with first, last, change, minimum, maximum and average. `base` defaults to EUR. Indicative, not for trading.",
    "parameters": [
     {
      "name": "quote",
      "in": "query",
      "required": true,
      "description": "Currency to price, ISO 4217.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}$"
      },
      "example": "USD"
     },
     {
      "name": "base",
      "in": "query",
      "required": false,
      "description": "Base currency (default `EUR`).",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}$",
       "default": "EUR"
      }
     },
     {
      "name": "from",
      "in": "query",
      "required": false,
      "description": "First day, `YYYY-MM-DD`.",
      "schema": {
       "type": "string",
       "format": "date"
      }
     },
     {
      "name": "to",
      "in": "query",
      "required": false,
      "description": "Last day, `YYYY-MM-DD`.",
      "schema": {
       "type": "string",
       "format": "date"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Newest days to return (1-3000).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 3000,
       "default": 90
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FxHistory"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/electricity": {
   "get": {
    "tags": [
     "Energy and mobility"
    ],
    "operationId": "getCountryElectricity",
    "summary": "Household electricity prices",
    "description": "Eurostat household electricity prices (2,500-4,999 kWh per year band, all taxes included and excluded) by half-year, with the cost of driving 100 km in an electric car at that price.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     },
     {
      "name": "kwh_per_100km",
      "in": "query",
      "required": false,
      "description": "Electric car consumption (5-60 kWh per 100 km).",
      "schema": {
       "type": "number",
       "minimum": 5,
       "maximum": 60,
       "default": 17
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Half-years to return (1-40).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 40,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CountryElectricity"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/crime": {
   "get": {
    "tags": [
     "Safety"
    ],
    "operationId": "getCountryCrime",
    "summary": "Intentional homicide rate of a country (UNODC)",
    "description": "Intentional homicide victims per 100,000 people by year (UNODC data, via the World Bank, CC BY 4.0) with the country's rank among reporting countries in the latest year. Reported by national authorities; recording practice differs, so comparison is indicative. Not a general safety rating.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Years to return (1-40).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 40,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CountryCrime"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/crime/homicide-rates": {
   "get": {
    "tags": [
     "Safety"
    ],
    "operationId": "getHomicideRates",
    "summary": "Countries ranked by intentional homicide rate",
    "description": "Countries ranked by intentional homicide victims per 100,000 people for a year (default: the latest year with data). UNODC data via the World Bank, CC BY 4.0.",
    "parameters": [
     {
      "name": "year",
      "in": "query",
      "required": false,
      "description": "Year (default latest).",
      "schema": {
       "type": "integer",
       "minimum": 1990,
       "maximum": 2100
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "`highest` (default) or `lowest`.",
      "schema": {
       "type": "string",
       "enum": [
        "highest",
        "lowest"
       ],
       "default": "highest"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Countries to return (1-300).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HomicideRates"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/air-quality": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirQuality",
    "summary": "Latest air quality readings near a point",
    "description": "Latest readings (PM2.5, PM10, O3, NO2, SO2, CO and others) from monitoring stations within `radius_km`, nearest first, via OpenAQ. Only stations whose data licence allows commercial use and redistribution without share-alike are included; every record names its provider and licence. Raw readings, not an official air quality index.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 48.85
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": 2.35
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-25).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 25,
       "default": 15
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max stations (1-10).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 10,
       "default": 3
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirQualityList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/air-quality": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportAirQuality",
    "summary": "Latest air quality readings near an airport",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "CDG"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-25).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 25,
       "default": 15
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max stations (1-10).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 10,
       "default": 3
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirQualityList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/borders/wait-times": {
   "get": {
    "tags": [
     "Travel conditions"
    ],
    "operationId": "getBorderWaitTimes",
    "summary": "Land border crossing wait times (US and Canada)",
    "description": "Current wait times for travellers (standard, NEXUS/SENTRI, Ready lane, pedestrians) and commercial traffic at the US land ports of entry (U.S. CBP, into the US) and Canada-US crossings (CBSA, both directions). Times change constantly and some lanes report no data; every lane carries the agency's status text.",
    "parameters": [
     {
      "name": "entering",
      "in": "query",
      "required": false,
      "description": "Direction: `US` (entering the United States) or `CA` (entering Canada).",
      "schema": {
       "type": "string",
       "enum": [
        "US",
        "CA"
       ]
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Crossing or town name, e.g. `Peace Bridge`, `Detroit`.",
      "schema": {
       "type": "string",
       "maxLength": 60
      }
     },
     {
      "name": "border",
      "in": "query",
      "required": false,
      "description": "`Canada`, `Mexico` (CBP) or `Canada-US`.",
      "schema": {
       "type": "string",
       "maxLength": 20
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max crossings (1-300).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300,
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BorderWaitList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fires/nearby": {
   "get": {
    "tags": [
     "Travel conditions"
    ],
    "operationId": "getFiresNearby",
    "summary": "Satellite wildfire detections near a point",
    "description": "VIIRS active fire detections of the last hours (NASA FIRMS, about 375 m) around a coordinate, nearest first, with a summary. Satellite thermal detections, not an official fire report or evacuation notice; an empty answer does not prove there is no fire.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 37.8
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": -122.4
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-200).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 200,
       "default": 50
      }
     },
     {
      "name": "hours",
      "in": "query",
      "required": false,
      "description": "Look back this many hours (1-48).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 48,
       "default": 24
      }
     },
     {
      "name": "min_confidence",
      "in": "query",
      "required": false,
      "description": "`high` to drop nominal-confidence detections.",
      "schema": {
       "type": "string",
       "enum": [
        "nominal",
        "high"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max detections listed (1-500); the summary counts all.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 500,
       "default": 50
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FireList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/fires": {
   "get": {
    "tags": [
     "Travel conditions"
    ],
    "operationId": "getAirportFires",
    "summary": "Satellite wildfire detections near an airport",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "SFO"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-200).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 200,
       "default": 50
      }
     },
     {
      "name": "hours",
      "in": "query",
      "required": false,
      "description": "Look back this many hours (1-48).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 48,
       "default": 24
      }
     },
     {
      "name": "min_confidence",
      "in": "query",
      "required": false,
      "description": "`high` to drop nominal-confidence detections.",
      "schema": {
       "type": "string",
       "enum": [
        "nominal",
        "high"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max detections listed (1-500); the summary counts all.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 500,
       "default": 50
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FireList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/marine/nearby": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getMarineNearby",
    "summary": "Buoy and coastal observations near a point",
    "description": "Latest NOAA NDBC observations from the nearest buoys and coastal stations: wind, gusts, wave height and period, pressure, air and water temperature, visibility. Mostly US waters plus some international buoys. Not for navigation.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 25.8
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": -80.1
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-400).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 400,
       "default": 100
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max stations (1-20).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 5
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MarineList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/marine": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportMarine",
    "summary": "Buoy and coastal observations near an airport",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "MIA"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-400).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 400,
       "default": 100
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max stations (1-20).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 5
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MarineList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/travel-indicators": {
   "get": {
    "tags": [
     "Country indicators"
    ],
    "operationId": "getCountryTravelIndicators",
    "summary": "Road deaths, political stability and tourism figures of a country",
    "description": "Four World Bank series for one country, each with the latest value, the rank among reporting countries and a yearly series: road traffic deaths per 100,000 people (WHO), political stability and absence of violence (Worldwide Governance Indicators), international tourist arrivals and tourism receipts (UN Tourism). CC BY 4.0. Context for trip planning, not a safety rating or advisory.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Years per indicator (1-40).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 40,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CountryTravelIndicators"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/indicators": {
   "get": {
    "tags": [
     "Country indicators"
    ],
    "operationId": "listIndicators",
    "summary": "Catalogue of country indicators (World Bank, CC BY 4.0)",
    "description": "About 65 indicators per country, each checked for the CC BY 4.0 licence and for broad country coverage before publication: tourism, safety and governance, health, connectivity and infrastructure, economy and cost of living, population, environment. Every entry gives the key to use in the other indicator endpoints, the unit, the definition, the organisation that compiled the data, how many countries report it and the latest year.",
    "parameters": [
     {
      "name": "group",
      "in": "query",
      "required": false,
      "description": "One group: tourism, safety, health, infrastructure, economy, demography, environment.",
      "schema": {
       "type": "string",
       "enum": [
        "tourism",
        "safety",
        "health",
        "infrastructure",
        "economy",
        "demography",
        "environment"
       ]
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Search the key and name, e.g. `internet`.",
      "schema": {
       "type": "string",
       "maxLength": 60
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IndicatorCatalogue"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/statistics": {
   "get": {
    "tags": [
     "Country indicators"
    ],
    "operationId": "getCountryStatistics",
    "summary": "Many World Bank indicators of one country in one call",
    "description": "The latest value (with its year) of every indicator of a group, or of the indicators named in `keys`, for one country; add `years` for a yearly series and `rank=true` for the rank among reporting countries. Indicators the country does not report are left out, never estimated. CC BY 4.0.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     },
     {
      "name": "group",
      "in": "query",
      "required": false,
      "description": "Only this group (see `/v1/indicators`).",
      "schema": {
       "type": "string",
       "enum": [
        "tourism",
        "safety",
        "health",
        "infrastructure",
        "economy",
        "demography",
        "environment"
       ]
      }
     },
     {
      "name": "keys",
      "in": "query",
      "required": false,
      "description": "Comma-separated indicator keys, e.g. `life_expectancy,internet_users_pct` (up to 80).",
      "schema": {
       "type": "string",
       "maxLength": 1200
      }
     },
     {
      "name": "years",
      "in": "query",
      "required": false,
      "description": "Years of series per indicator (1-30, default 1 = latest only).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 30,
       "default": 1
      }
     },
     {
      "name": "rank",
      "in": "query",
      "required": false,
      "description": "`true` to add the rank in the latest year.",
      "schema": {
       "type": "boolean",
       "default": false
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CountryStatistics"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/indicators/ranking": {
   "get": {
    "tags": [
     "Country indicators"
    ],
    "operationId": "getIndicatorRanking",
    "summary": "Countries ranked by any indicator of the catalogue",
    "description": "Countries ranked by one indicator for a year (default: the latest year with broad coverage). CC BY 4.0. Only countries that reported for that year are listed.",
    "parameters": [
     {
      "name": "indicator",
      "in": "query",
      "required": true,
      "description": "Indicator key from `/v1/indicators`, e.g. `road_deaths`, `internet_users_pct`, `life_expectancy`.",
      "schema": {
       "type": "string"
      },
      "example": "road_deaths"
     },
     {
      "name": "year",
      "in": "query",
      "required": false,
      "description": "Year (default latest).",
      "schema": {
       "type": "integer",
       "minimum": 1990,
       "maximum": 2100
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "`highest` (default) or `lowest`.",
      "schema": {
       "type": "string",
       "enum": [
        "highest",
        "lowest"
       ],
       "default": "highest"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Countries to return (1-300).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IndicatorRanking"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/hazards/earthquakes": {
   "get": {
    "tags": [
     "Travel conditions"
    ],
    "operationId": "getEarthquakesNearby",
    "summary": "Recent earthquakes near a point (USGS)",
    "description": "Earthquakes of magnitude 2.5 and above from the last 30 days (USGS feed, worldwide) around a coordinate, newest first, with a summary. Magnitudes and locations are preliminary and can be revised. Not an early-warning service.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 35.7
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": 139.7
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-2000).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 2000,
       "default": 300
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "Look back this many days (1-30).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 30,
       "default": 7
      }
     },
     {
      "name": "min_magnitude",
      "in": "query",
      "required": false,
      "description": "Minimum magnitude (2.5 and above are available).",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 10,
       "default": 2.5
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max earthquakes listed (1-200); the summary counts all.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EarthquakeList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/earthquakes": {
   "get": {
    "tags": [
     "Travel conditions"
    ],
    "operationId": "getAirportEarthquakes",
    "summary": "Recent earthquakes near an airport (USGS)",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "SFO"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-2000).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 2000,
       "default": 300
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "Look back this many days (1-30).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 30,
       "default": 7
      }
     },
     {
      "name": "min_magnitude",
      "in": "query",
      "required": false,
      "description": "Minimum magnitude (2.5 and above are available).",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 10,
       "default": 2.5
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max earthquakes listed (1-200); the summary counts all.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EarthquakeList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/aviation/sigmets": {
   "get": {
    "tags": [
     "Aviation weather"
    ],
    "operationId": "getSigmets",
    "summary": "Active SIGMETs worldwide (volcanic ash, thunderstorms, turbulence, icing, tropical cyclones)",
    "description": "SIGMETs in effect now (NOAA Aviation Weather Center, international plus US), newest first, with polygon, altitude band, validity and movement. Hazard `VA` is volcanic ash, `TS` thunderstorms, `TURB` turbulence, `ICE` icing, `MTW` mountain wave, `TC` tropical cyclone. With `lat` and `lon` only areas covering or near the point are returned, with `contains_point` and `distance_km`. Advisory information for situational awareness only, not for flight planning or operational use.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": false,
      "description": "Latitude (with `lon`: only areas covering or near this point).",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      }
     },
     {
      "name": "lon",
      "in": "query",
      "required": false,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      }
     },
     {
      "name": "hazard",
      "in": "query",
      "required": false,
      "description": "Hazard code: VA, TS, TURB, ICE, MTW, CONV, TC.",
      "schema": {
       "type": "string",
       "maxLength": 10
      }
     },
     {
      "name": "fir",
      "in": "query",
      "required": false,
      "description": "Flight information region or issuing office ICAO code, e.g. `KZNY`.",
      "schema": {
       "type": "string",
       "maxLength": 6
      }
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "With a point: also areas whose boundary is within this distance (0-1000).",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 1000,
       "default": 100
      }
     },
     {
      "name": "geometry",
      "in": "query",
      "required": false,
      "description": "Include the area polygon as `[[lon, lat], ...]` (default true).",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max areas listed (1-300).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300,
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SigmetList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/hazards/volcanic-ash": {
   "get": {
    "tags": [
     "Aviation weather"
    ],
    "operationId": "getVolcanicAsh",
    "summary": "Active volcanic ash SIGMETs (worldwide)",
    "description": "Volcanic ash advisories as active SIGMETs with hazard `VA`: area polygon, altitude band, movement and the issuing office's text. Optional `lat`/`lon` narrow it to ash areas covering or near a point. Advisory information for situational awareness only, not for flight planning or operational use.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": false,
      "description": "Latitude (with `lon`: only areas covering or near this point).",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      }
     },
     {
      "name": "lon",
      "in": "query",
      "required": false,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      }
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "With a point: also areas whose boundary is within this distance (0-1000).",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 1000,
       "default": 100
      }
     },
     {
      "name": "geometry",
      "in": "query",
      "required": false,
      "description": "Include the area polygon as `[[lon, lat], ...]` (default true).",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max areas listed (1-300).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300,
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SigmetList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/aviation/gairmets": {
   "get": {
    "tags": [
     "Aviation weather"
    ],
    "operationId": "getGairmets",
    "summary": "G-AIRMETs for the contiguous United States (turbulence, icing, IFR, mountain obscuration)",
    "description": "Graphical AIRMETs in effect (NOAA Aviation Weather Center): one entry per hazard area and forecast hour (`valid_at`). Hazards: `IFR`, `MT_OBSC`, `TURB-HI`, `TURB-LO`, `ICE`, `FZLVL`, `M_FZLVL`, `SFC_WND`, `LLWS`. United States only. Advisory information for situational awareness only, not for flight planning or operational use.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": false,
      "description": "Latitude (with `lon`: only areas covering or near this point).",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      }
     },
     {
      "name": "lon",
      "in": "query",
      "required": false,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      }
     },
     {
      "name": "hazard",
      "in": "query",
      "required": false,
      "description": "Hazard code.",
      "schema": {
       "type": "string",
       "maxLength": 10
      }
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "With a point: also areas whose boundary is within this distance (0-1000).",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 1000,
       "default": 0
      }
     },
     {
      "name": "geometry",
      "in": "query",
      "required": false,
      "description": "Include the area polygon as `[[lon, lat], ...]` (default true).",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max areas listed (1-300).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300,
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GairmetList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/aviation/pireps": {
   "get": {
    "tags": [
     "Aviation weather"
    ],
    "operationId": "getPilotReports",
    "summary": "Recent pilot reports of turbulence or icing near a point",
    "description": "Pilot reports (PIREP and AIREP) that mention turbulence or icing within a radius, newest first, with intensity, type, altitude band and the raw report. Reports without a hazard are not included. Advisory information for situational awareness only, not for flight planning or operational use.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 40.64
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": -73.78
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (10-1500).",
      "schema": {
       "type": "number",
       "minimum": 10,
       "maximum": 1500,
       "default": 200
      }
     },
     {
      "name": "hours",
      "in": "query",
      "required": false,
      "description": "Look back this many hours (1-12).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 12,
       "default": 3
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Only this hazard.",
      "schema": {
       "type": "string",
       "enum": [
        "turbulence",
        "icing"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max reports (1-300).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300,
       "default": 50
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PirepList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/aviation-hazards": {
   "get": {
    "tags": [
     "Aviation weather"
    ],
    "operationId": "getAirportAviationHazards",
    "summary": "SIGMETs, G-AIRMETs and pilot reports around an airport in one call",
    "description": "Everything in effect around an airport: SIGMETs (incl. volcanic ash) and G-AIRMETs covering or near it, recent turbulence and icing pilot reports, and a summary with the worst reported intensity. Advisory information for situational awareness only, not for flight planning or operational use.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Area search distance (0-1000).",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 1000,
       "default": 100
      }
     },
     {
      "name": "pirep_radius_km",
      "in": "query",
      "required": false,
      "description": "Pilot report radius (10-1000).",
      "schema": {
       "type": "number",
       "minimum": 10,
       "maximum": 1000,
       "default": 200
      }
     },
     {
      "name": "pirep_hours",
      "in": "query",
      "required": false,
      "description": "Pilot report look-back hours (1-12).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 12,
       "default": 3
      }
     },
     {
      "name": "geometry",
      "in": "query",
      "required": false,
      "description": "Include area polygons (default false here).",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max entries per list (1-300).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 300,
       "default": 50
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportAviationHazards"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/hazards/space-weather": {
   "get": {
    "tags": [
     "Travel conditions"
    ],
    "operationId": "getSpaceWeather",
    "summary": "Space weather now and 3-day outlook (NOAA SWPC)",
    "description": "NOAA space weather scales (R radio blackout, S solar radiation storm, G geomagnetic storm; 0 none to 5 extreme) now, the 24-hour maximum and the 3-day outlook, the planetary Kp index and the latest alerts. Strong storms can disturb HF radio, GPS accuracy and polar flight routes.",
    "parameters": [
     {
      "name": "alerts",
      "in": "query",
      "required": false,
      "description": "Alerts to include (0-15).",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "maximum": 15,
       "default": 5
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SpaceWeather"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/hazards/tropical-cyclones": {
   "get": {
    "tags": [
     "Travel conditions"
    ],
    "operationId": "getTropicalCyclones",
    "summary": "Active tropical cyclones (NHC: Atlantic, Eastern and Central Pacific)",
    "description": "Active named storms and depressions of the National Hurricane Center area with position, intensity, pressure and movement; with `lat` and `lon` sorted by distance. An empty list means none is active in those basins; West Pacific, Indian Ocean and Southern Hemisphere storms are not covered.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": false,
      "description": "Latitude (with `lon`: only areas covering or near this point).",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      }
     },
     {
      "name": "lon",
      "in": "query",
      "required": false,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TropicalCycloneList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/alerts/weather": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getWeatherAlerts",
    "summary": "Active official weather alerts at a point (US, Canada and Germany)",
    "description": "Weather watches, warnings and advisories in effect at a coordinate, from the U.S. National Weather Service, Environment and Climate Change Canada and the Deutscher Wetterdienst (DWD, English edition, matched to the warning areas; `warncell_id`), most severe first. Texts are passed through unchanged (Canadian alerts under the ECCC data end-use licence, German warnings under DWD Open Data); US and Canada are cached for up to 5 minutes, Germany is refreshed about every 10 minutes. Locations outside the United States, Canada and Germany return 404. Not a warning service: follow the issuing agency.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 40.7
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": -74.0
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WeatherAlertList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/weather-alerts": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportWeatherAlerts",
    "summary": "Active official weather alerts at an airport (US, Canada and Germany)",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WeatherAlertList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/ports": {
   "get": {
    "tags": [
     "Maritime"
    ],
    "operationId": "searchPorts",
    "summary": "Search ports (UN/LOCODE) by country, name or distance",
    "description": "About 940 ports with a UN/LOCODE (Wikidata, CC0): filter by country or name, or pass `lat`/`lon` to list the nearest ports within `radius_km`. Compiled from Wikidata a few times a year (`built_at` shows when); names are English labels. Not for navigation.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 country code.",
      "schema": {
       "type": "string",
       "maxLength": 2
      },
      "example": "GR"
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Port name or UN/LOCODE.",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "piraeus"
     },
     {
      "name": "lat",
      "in": "query",
      "required": false,
      "description": "Latitude (with `lon`).",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      }
     },
     {
      "name": "lon",
      "in": "query",
      "required": false,
      "description": "Longitude (with `lat`).",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      }
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Radius for `lat`/`lon` (1-2000).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 2000,
       "default": 200
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max ports (1-200).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PortList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/ports/{locode}": {
   "get": {
    "tags": [
     "Maritime"
    ],
    "operationId": "getPort",
    "summary": "One port by UN/LOCODE",
    "parameters": [
     {
      "name": "locode",
      "in": "path",
      "required": true,
      "description": "Five-character UN/LOCODE, e.g. `GRPIR`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}[A-Za-z0-9]{3}$"
      },
      "example": "GRPIR"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PortOne"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/electricity/carbon-intensity": {
   "get": {
    "tags": [
     "Energy and mobility"
    ],
    "operationId": "getGbCarbonIntensity",
    "summary": "Great Britain grid carbon intensity",
    "description": "Current half-hourly carbon intensity of the Great Britain electricity grid (grams of CO2 per kWh, forecast and actual, with the index very low to very high), the generation mix by fuel and a 24-hour forecast. Great Britain only. Useful for timing electric-car charging.",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CarbonIntensity"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/passengers": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "getAirportPassengers",
    "summary": "Annual passengers (Eurostat, EU/EEA airports)",
    "description": "Passengers carried per year since 2015 with the year-on-year change, as reported to Eurostat by airports in the EU, EEA and some neighbouring countries. Complements the single passenger figure from `/v1/airports/{code}/stats`.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "FRA"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportPassengers"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/geo/lookup": {
   "get": {
    "tags": [
     "Airports"
    ],
    "operationId": "geoLookup",
    "summary": "Nearest places, country and time zone for a coordinate",
    "description": "Estimates the country and time zone of a coordinate from the nearest airports and large cities, with their distances and a confidence level. Not a boundary lookup: close to a border the country can be the neighbouring one.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 48.85
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": 2.35
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GeoLookup"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/routes/fares": {
   "get": {
    "tags": [
     "Flights (US)"
    ],
    "operationId": "getRouteFares",
    "summary": "Average airfare between two airports (US routes)",
    "description": "Average, median and quartile fares in US dollars for each direction of an airport pair over the latest survey quarters (BTS Origin and Destination Survey, a ticket sample): passenger-weighted, with the sample size. Covers routes with a US end. These are market fares from sold tickets, not bookable offers.",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": true,
      "description": "Origin IATA code.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}$"
      },
      "example": "JFK"
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "description": "Destination IATA code.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}$"
      },
      "example": "LAX"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RouteFares"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/fares": {
   "get": {
    "tags": [
     "Flights (US)"
    ],
    "operationId": "getAirportFares",
    "summary": "Average fares from or to an airport (US routes)",
    "description": "The routes from (or to) a US-connected airport in the latest survey quarter with their average fares, most-flown first, or cheapest or most expensive first.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "direction",
      "in": "query",
      "required": false,
      "description": "`from` (default) or `to`.",
      "schema": {
       "type": "string",
       "enum": [
        "from",
        "to"
       ],
       "default": "from"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "`passengers` (default), `cheapest` or `expensive`.",
      "schema": {
       "type": "string",
       "enum": [
        "passengers",
        "cheapest",
        "expensive"
       ],
       "default": "passengers"
      }
     },
     {
      "name": "market",
      "in": "query",
      "required": false,
      "description": "`domestic` or `international`.",
      "schema": {
       "type": "string",
       "enum": [
        "domestic",
        "international"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max routes (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportFares"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/safety/accidents": {
   "get": {
    "tags": [
     "Aviation safety"
    ],
    "operationId": "searchAccidents",
    "summary": "Search NTSB aviation accidents and incidents",
    "description": "Accidents and incidents from the NTSB aviation database (2008 to today; United States, its territories and waters, and some foreign events with NTSB participation) with injuries, aircraft, conditions and the NTSB probable cause. Search around a coordinate or filter by date, state, category, type and fatalities. Counts are not rates. Pilot and owner details are not included; operator and registration appear only for commercial operations.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": false,
      "description": "Latitude (with `lon`).",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      }
     },
     {
      "name": "lon",
      "in": "query",
      "required": false,
      "description": "Longitude (with `lat`).",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      }
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Radius in km (1-300).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 300,
       "default": 25
      }
     },
     {
      "name": "from",
      "in": "query",
      "required": false,
      "description": "From date `YYYY-MM-DD`.",
      "schema": {
       "type": "string",
       "format": "date"
      }
     },
     {
      "name": "to",
      "in": "query",
      "required": false,
      "description": "To date `YYYY-MM-DD`.",
      "schema": {
       "type": "string",
       "format": "date"
      }
     },
     {
      "name": "min_fatalities",
      "in": "query",
      "required": false,
      "description": "Only events with at least this many fatalities.",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "maximum": 1000,
       "default": 0
      }
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "description": "Aircraft category code: `AIR`, `HELI`, `GLI`, `BALL`...",
      "schema": {
       "type": "string",
       "maxLength": 6
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "`accident` or `incident`.",
      "schema": {
       "type": "string",
       "enum": [
        "accident",
        "incident"
       ]
      }
     },
     {
      "name": "state",
      "in": "query",
      "required": false,
      "description": "US state code, e.g. `NY`.",
      "schema": {
       "type": "string",
       "maxLength": 2
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 20
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AccidentList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/safety/accidents/{ntsb_no}": {
   "get": {
    "tags": [
     "Aviation safety"
    ],
    "operationId": "getAccident",
    "summary": "One NTSB case with findings",
    "parameters": [
     {
      "name": "ntsb_no",
      "in": "path",
      "required": true,
      "description": "NTSB number such as `DCA25MA108`, or the event id.",
      "schema": {
       "type": "string"
      },
      "example": "DCA25MA108"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AccidentOne"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/safety": {
   "get": {
    "tags": [
     "Aviation safety"
    ],
    "operationId": "getAirportSafety",
    "summary": "NTSB accidents and incidents at or near an airport",
    "description": "Summary (events, fatal events, fatalities, by aircraft category) and the most recent NTSB events associated with the airport or within 8 km of it over the last years. These are counts, not rates, and say nothing about how safe an airport is.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "years",
      "in": "query",
      "required": false,
      "description": "Look back (1-20 years).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 10
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Events listed (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 15
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportSafety"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/ev/coverage": {
   "get": {
    "tags": [
     "Energy and mobility"
    ],
    "operationId": "evCoverage",
    "summary": "EV charging data coverage and licences",
    "description": "Countries with EV charging station data, the official source, licence, attribution, station count and freshness.",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EvCoverage"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/ev/nearby": {
   "get": {
    "tags": [
     "Energy and mobility"
    ],
    "operationId": "evNearby",
    "summary": "EV charging stations near a point",
    "description": "Public charging stations around a coordinate, nearest first, from official national registers (currently France). Static register data: it tells where chargers are and what they offer, not whether one is free right now.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 48.85
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": 2.35
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (0.5-50).",
      "schema": {
       "type": "number",
       "minimum": 0.5,
       "maximum": 50,
       "default": 5
      }
     },
     {
      "name": "min_power_kw",
      "in": "query",
      "required": false,
      "description": "Minimum charging power in kW.",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 1000,
       "default": 0
      }
     },
     {
      "name": "connector",
      "in": "query",
      "required": false,
      "description": "Only stations with this connector.",
      "schema": {
       "type": "string",
       "enum": [
        "type2",
        "ccs",
        "chademo",
        "domestic"
       ]
      }
     },
     {
      "name": "free",
      "in": "query",
      "required": false,
      "description": "Only free-to-use stations.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max stations (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 20
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EvStationList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/ev": {
   "get": {
    "tags": [
     "Energy and mobility"
    ],
    "operationId": "evNearAirport",
    "summary": "EV charging stations near an airport",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "CDG"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (0.5-50).",
      "schema": {
       "type": "number",
       "minimum": 0.5,
       "maximum": 50,
       "default": 5
      }
     },
     {
      "name": "min_power_kw",
      "in": "query",
      "required": false,
      "description": "Minimum charging power in kW.",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 1000,
       "default": 0
      }
     },
     {
      "name": "connector",
      "in": "query",
      "required": false,
      "description": "Only stations with this connector.",
      "schema": {
       "type": "string",
       "enum": [
        "type2",
        "ccs",
        "chademo",
        "domestic"
       ]
      }
     },
     {
      "name": "free",
      "in": "query",
      "required": false,
      "description": "Only free-to-use stations.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max stations (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 20
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EvStationList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/tides": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getTides",
    "summary": "Tide predictions near a point (US)",
    "description": "High and low tide predictions from the nearest NOAA CO-OPS station within `radius_km` (United States and territories). Heights are metres above mean lower low water; times are in the station's local time. Not for navigation.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 40.7
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": -74.0
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Maximum distance to the tide station (1-300).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 300,
       "default": 100
      }
     },
     {
      "name": "date",
      "in": "query",
      "required": false,
      "description": "First day, `YYYY-MM-DD` (default today).",
      "schema": {
       "type": "string",
       "format": "date"
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "Number of days (1-7).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 7,
       "default": 2
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TideList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/tides": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getAirportTides",
    "summary": "Tide predictions near an airport (US)",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Maximum distance to the tide station (1-300).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 300,
       "default": 100
      }
     },
     {
      "name": "date",
      "in": "query",
      "required": false,
      "description": "First day, `YYYY-MM-DD` (default today).",
      "schema": {
       "type": "string",
       "format": "date"
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "Number of days (1-7).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 7,
       "default": 2
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TideList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fuel/national": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "fuelNational",
    "summary": "National average pump prices (30 countries)",
    "description": "National average consumer pump prices from official publications: the 27 EU member states (European Commission Weekly Oil Bulletin, weekly), the United Kingdom (DESNZ, weekly), Norway (Statistics Norway, monthly) and the United States (EIA, weekly; regular 87-octane gasoline as `gasoline_regular` and No. 2 diesel, converted to litres). Each price is given in its currency and as a euro equivalent at the ECB rate of the day, with the publication date and a `stale` flag. Filter by `country` or `fuel`; with `fuel` the list is sorted cheapest first.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 code, e.g. `DE`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$"
      }
     },
     {
      "name": "fuel",
      "in": "query",
      "required": false,
      "description": "Only this fuel (`gasoline_regular`, `gasoline_95`, `gasoline_95_e10`, `diesel`, `lpg`).",
      "schema": {
       "type": "string",
       "enum": [
        "gasoline_regular",
        "gasoline_95",
        "gasoline_95_e10",
        "gasoline_98",
        "diesel",
        "diesel_premium",
        "lpg",
        "cng",
        "e85"
       ]
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "With `fuel`: `price` (default, cheapest first by euro equivalent).",
      "schema": {
       "type": "string",
       "enum": [
        "price"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FuelNational"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/countries/{country}/fuel": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "getCountryFuel",
    "summary": "Fuel prices for one country",
    "description": "The national average prices of a country and, where station-level data exists (see `/v1/fuel/countries`), a summary of the station prices.",
    "parameters": [
     {
      "name": "country",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 (`CA`) or alpha-3 (`CAN`) country code, case-insensitive.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2,3}$"
      },
      "example": "CA"
     },
     {
      "name": "max_age_days",
      "in": "query",
      "required": false,
      "description": "Station prices older than this are ignored (1-60 days).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 60,
       "default": 7
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CountryFuel"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fuel/countries": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "fuelCoverage",
    "summary": "Fuel price coverage, sources and licences",
    "description": "Lists the countries with station-level pump prices and the countries with national averages, each with its official source, licence, attribution, counts, when it was last updated and whether it is `stale`.",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FuelCountries"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fuel/nearby": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "fuelNearby",
    "summary": "Fuel stations and prices near a point",
    "description": "Stations within a radius with their current pump prices, nearest first, or cheapest first when `fuel` is given. Prices are reproduced unaltered from the official national feeds with their last-update time; only prices updated within `max_age_days` are returned.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 43.66
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": 7.2
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (0.5-50).",
      "schema": {
       "type": "number",
       "minimum": 0.5,
       "maximum": 50,
       "default": 10
      }
     },
     {
      "name": "fuel",
      "in": "query",
      "required": false,
      "description": "Only this fuel (required for `sort=price`).",
      "schema": {
       "type": "string",
       "enum": [
        "gasoline_regular",
        "gasoline_95",
        "gasoline_95_e10",
        "gasoline_98",
        "diesel",
        "diesel_premium",
        "lpg",
        "cng",
        "e85"
       ]
      },
      "example": "diesel"
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "`distance` (default) or `price` (needs `fuel`; this is the default when `fuel` is given).",
      "schema": {
       "type": "string",
       "enum": [
        "distance",
        "price"
       ]
      }
     },
     {
      "name": "max_age_days",
      "in": "query",
      "required": false,
      "description": "Ignore prices older than this (1-60 days).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 60,
       "default": 7
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max stations (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 20
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FuelStationList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/fuel": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "fuelNearAirport",
    "summary": "Fuel stations near an airport",
    "description": "Same as `/v1/fuel/nearby`, centred on the airport: useful for returning a rental car with a full tank.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "NCE"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (0.5-50).",
      "schema": {
       "type": "number",
       "minimum": 0.5,
       "maximum": 50,
       "default": 10
      }
     },
     {
      "name": "fuel",
      "in": "query",
      "required": false,
      "description": "Only this fuel (required for `sort=price`).",
      "schema": {
       "type": "string",
       "enum": [
        "gasoline_regular",
        "gasoline_95",
        "gasoline_95_e10",
        "gasoline_98",
        "diesel",
        "diesel_premium",
        "lpg",
        "cng",
        "e85"
       ]
      },
      "example": "diesel"
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "`distance` (default) or `price` (needs `fuel`; this is the default when `fuel` is given).",
      "schema": {
       "type": "string",
       "enum": [
        "distance",
        "price"
       ]
      }
     },
     {
      "name": "max_age_days",
      "in": "query",
      "required": false,
      "description": "Ignore prices older than this (1-60 days).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 60,
       "default": 7
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max stations (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 20
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FuelStationList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fuel/cheapest": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "fuelCheapest",
    "summary": "Cheapest stations in a country, city or postcode area",
    "description": "The lowest recent prices for one fuel in a covered country, optionally limited to a city (substring) or a postcode prefix.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": true,
      "description": "Covered country, ISO 3166-1 alpha-2 (see `/v1/fuel/countries`).",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$"
      },
      "example": "FR"
     },
     {
      "name": "fuel",
      "in": "query",
      "required": true,
      "description": "Fuel type.",
      "schema": {
       "type": "string",
       "enum": [
        "gasoline_regular",
        "gasoline_95",
        "gasoline_95_e10",
        "gasoline_98",
        "diesel",
        "diesel_premium",
        "lpg",
        "cng",
        "e85"
       ]
      },
      "example": "diesel"
     },
     {
      "name": "city",
      "in": "query",
      "required": false,
      "description": "City name (substring).",
      "schema": {
       "type": "string",
       "maxLength": 60
      }
     },
     {
      "name": "postcode",
      "in": "query",
      "required": false,
      "description": "Postcode prefix.",
      "schema": {
       "type": "string",
       "maxLength": 10
      }
     },
     {
      "name": "max_age_days",
      "in": "query",
      "required": false,
      "description": "Ignore prices older than this (1-60 days).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 60,
       "default": 7
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FuelStationList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fuel/stats": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "fuelStats",
    "summary": "Price statistics for a country or area",
    "description": "Average, median, minimum, maximum and 10th/90th percentile of the recent station prices for one fuel, optionally for a city or postcode prefix.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": true,
      "description": "Covered country, ISO 3166-1 alpha-2 (see `/v1/fuel/countries`).",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$"
      },
      "example": "FR"
     },
     {
      "name": "fuel",
      "in": "query",
      "required": true,
      "description": "Fuel type.",
      "schema": {
       "type": "string",
       "enum": [
        "gasoline_regular",
        "gasoline_95",
        "gasoline_95_e10",
        "gasoline_98",
        "diesel",
        "diesel_premium",
        "lpg",
        "cng",
        "e85"
       ]
      },
      "example": "diesel"
     },
     {
      "name": "city",
      "in": "query",
      "required": false,
      "description": "City name (substring).",
      "schema": {
       "type": "string",
       "maxLength": 60
      }
     },
     {
      "name": "postcode",
      "in": "query",
      "required": false,
      "description": "Postcode prefix.",
      "schema": {
       "type": "string",
       "maxLength": 10
      }
     },
     {
      "name": "max_age_days",
      "in": "query",
      "required": false,
      "description": "Ignore prices older than this (1-60 days).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 60,
       "default": 7
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FuelStats"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/fuel/stations/{id}": {
   "get": {
    "tags": [
     "Fuel prices"
    ],
    "operationId": "fuelStation",
    "summary": "One station with all its prices",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Station id from a list response, like `FR:6000005`.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Z]{2}:[A-Za-z0-9._-]{1,24}$"
      },
      "example": "FR:6000005"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FuelStationOne"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/emissions": {
   "get": {
    "tags": [
     "Route"
    ],
    "operationId": "compareEmissions",
    "summary": "CO2 of a trip by plane, train, coach, car, taxi or ferry",
    "description": "Compare the CO2e of the same distance across transport modes with UK government (DESNZ/DEFRA) factors, sorted from lowest to highest. You supply the distance, so no routing assumption is added. Direct (tank-to-wheel) emissions; indicative.",
    "parameters": [
     {
      "name": "distance_km",
      "in": "query",
      "required": true,
      "description": "Trip distance in kilometres (0.1-25,000).",
      "schema": {
       "type": "number",
       "minimum": 0.1,
       "maximum": 25000
      },
      "example": 470
     },
     {
      "name": "passengers",
      "in": "query",
      "required": false,
      "description": "Number of travellers (1-500). Cars are assumed to seat 4.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 500,
       "default": 1
      }
     },
     {
      "name": "round_trip",
      "in": "query",
      "required": false,
      "description": "Double the distance for a return trip.",
      "schema": {
       "type": "boolean",
       "default": false
      }
     },
     {
      "name": "flight_category",
      "in": "query",
      "required": false,
      "description": "Flight factor set to use.",
      "schema": {
       "type": "string",
       "enum": [
        "domestic",
        "short_haul",
        "long_haul",
        "international"
       ],
       "default": "international"
      }
     },
     {
      "name": "modes",
      "in": "query",
      "required": false,
      "description": "Comma-separated filter, e.g. `air,national_rail,car_petrol`.",
      "schema": {
       "type": "string",
       "maxLength": 200
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EmissionsComparison"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/events": {
   "get": {
    "tags": [
     "Events"
    ],
    "operationId": "naturalEventsNear",
    "summary": "Natural events near a point",
    "description": "Recent earthquakes (USGS, M4.5+) and open natural events (NASA EONET: wildfires, storms, volcanoes, floods ...) around a coordinate, nearest first. Not an official warning service.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 41.0
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": 29.0
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-1000).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 1000,
       "default": 300
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "Look back this many days (1-30).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 30,
       "default": 7
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Event type.",
      "schema": {
       "type": "string",
       "enum": [
        "earthquake",
        "wildfires",
        "volcanoes",
        "severeStorms",
        "floods",
        "landslides",
        "seaLakeIce",
        "drought",
        "dustHaze",
        "snow",
        "tempExtremes",
        "waterColor",
        "manmade"
       ]
      }
     },
     {
      "name": "min_magnitude",
      "in": "query",
      "required": false,
      "description": "Minimum magnitude (earthquakes; other events use their own units).",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 10
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EventList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/events": {
   "get": {
    "tags": [
     "Events"
    ],
    "operationId": "naturalEventsNearAirport",
    "summary": "Natural events near an airport",
    "description": "Same as `/v1/events`, centred on the airport.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "IST"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (1-1000).",
      "schema": {
       "type": "number",
       "minimum": 1,
       "maximum": 1000,
       "default": 300
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "Look back this many days (1-30).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 30,
       "default": 7
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Event type.",
      "schema": {
       "type": "string",
       "enum": [
        "earthquake",
        "wildfires",
        "volcanoes",
        "severeStorms",
        "floods",
        "landslides",
        "seaLakeIce",
        "drought",
        "dustHaze",
        "snow",
        "tempExtremes",
        "waterColor",
        "manmade"
       ]
      }
     },
     {
      "name": "min_magnitude",
      "in": "query",
      "required": false,
      "description": "Minimum magnitude (earthquakes; other events use their own units).",
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 10
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results (1-100).",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EventList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/aerodromes": {
   "get": {
    "tags": [
     "Aerodromes"
    ],
    "operationId": "getAerodromes",
    "summary": "Heliports, seaplane bases, balloonports and airstrips",
    "description": "The landing sites airlines do not use: about 23,000 heliports and helipads (hospitals, offshore platforms, city centres), 1,300 seaplane bases, 60 balloonports and 42,000 small airfields and private strips, searchable by name, code, country and region. By default the four types `heliport`, `seaplane_base`, `balloonport` and `small_airport` are listed; `type` selects others (including airports). The summary counts the matches per type. Community-maintained data (OurAirports): coverage of heliports, private strips and seaplane bases is incomplete and can be out of date. Informational only: not for navigation, flight planning or drone and airspace compliance; use your aviation authority's official tools.",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Name, town or code (ident, ICAO, GPS or local code).",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "hospital"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "ISO 3166-1 alpha-2 country code.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$"
      },
      "example": "CA"
     },
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "ISO 3166-2 region, e.g. `CA-QC` or `US-NY`.",
      "schema": {
       "type": "string",
       "maxLength": 10
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Comma-separated types (default `heliport,seaplane_base,balloonport,small_airport`).",
      "schema": {
       "type": "string"
      },
      "example": "heliport"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Page size.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Items to skip.",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AerodromeList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/aerodromes/nearby": {
   "get": {
    "tags": [
     "Aerodromes"
    ],
    "operationId": "getAerodromesNearby",
    "summary": "Proximity check: every airport, heliport, seaplane base, balloonport and airstrip near a point",
    "description": "Everything with a landing area within a radius of a coordinate, nearest first, with distance in kilometres and nautical miles, bearing and compass direction from the point, plus a summary with counts and the nearest site of each type. Useful as a pre-flight awareness check for drone pilots, for site selection, noise and real-estate research or emergency planning. Community-maintained data (OurAirports): coverage of heliports, private strips and seaplane bases is incomplete and can be out of date. Informational only: not for navigation, flight planning or drone and airspace compliance; use your aviation authority's official tools.",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90
      },
      "example": 45.5017
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "example": -73.5673
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (0.5-50).",
      "schema": {
       "type": "number",
       "minimum": 0.5,
       "maximum": 50,
       "default": 10
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Comma-separated types to include (default: all open types). `large_airport`, `medium_airport`, `small_airport`, `heliport`, `seaplane_base`, `balloonport`.",
      "schema": {
       "type": "string"
      },
      "example": "heliport,seaplane_base"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max aerodromes listed (1-200); the summary counts all.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200,
       "default": 50
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AerodromeNearbyList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/aerodromes": {
   "get": {
    "tags": [
     "Aerodromes"
    ],
    "operationId": "getAirportAerodromes",
    "summary": "Heliports, seaplane bases and airstrips around an airport",
    "description": "Same as `/v1/aerodromes/nearby`, centred on an airport (the airport itself is left out). Community-maintained data (OurAirports): coverage of heliports, private strips and seaplane bases is incomplete and can be out of date. Informational only: not for navigation, flight planning or drone and airspace compliance; use your aviation authority's official tools.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "radius_km",
      "in": "query",
      "required": false,
      "description": "Search radius in kilometres (0.5-50).",
      "schema": {
       "type": "number",
       "minimum": 0.5,
       "maximum": 50,
       "default": 10
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Comma-separated types to include (default: all open types). `large_airport`, `medium_airport`, `small_airport`, `heliport`, `seaplane_base`, `balloonport`.",
      "schema": {
       "type": "string"
      },
      "example": "heliport,seaplane_base"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max aerodromes listed (1-200); the summary counts all.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200,
       "default": 50
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AerodromeNearbyList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/health/pollen": {
   "get": {
    "tags": [
     "Health weather"
    ],
    "operationId": "getPollenForecast",
    "summary": "Pollen forecast for Germany (DWD): 8 pollen types, 27 regions, 3 days",
    "description": "The DWD pollen hazard index for today, tomorrow and the day after: hazel, alder, ash, birch, grasses, rye, mugwort and ragweed, on a scale from `0` (none) through `0-1`, `1`, `1-2`, `2`, `2-3` to `3` (high), with an English label. One entry per DWD forecast region, with the German states (ISO 3166-2) it covers; `region` narrows it to one state. The summary lists the highest index today per pollen. Issued once a day around 11:00 German time. Source: Deutscher Wetterdienst (DWD Open Data). Germany only; not medical advice.",
    "parameters": [
     {
      "name": "region",
      "in": "query",
      "required": false,
      "description": "German state, ISO 3166-2 (e.g. `DE-BY`, `DE-HE`, `DE-BE`).",
      "schema": {
       "type": "string",
       "pattern": "^DE-[A-Za-z]{2}$"
      },
      "example": "DE-BY"
     },
     {
      "name": "pollen",
      "in": "query",
      "required": false,
      "description": "Comma-separated pollen types (default all): `hazel`, `alder`, `ash`, `birch`, `grasses`, `rye`, `mugwort`, `ragweed`.",
      "schema": {
       "type": "string"
      },
      "example": "birch,grasses"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PollenForecast"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/airports/{code}/pollen": {
   "get": {
    "tags": [
     "Health weather"
    ],
    "operationId": "getAirportPollen",
    "summary": "Pollen forecast for the region of a German airport (DWD)",
    "description": "Same as `/v1/health/pollen` for the state the airport is in (e.g. FRA: Hessen, MUC: Bayern). Airports outside Germany return 404. Source: Deutscher Wetterdienst (DWD Open Data). Germany only; not medical advice.",
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "description": "IATA, ICAO, ident or local code.",
      "schema": {
       "type": "string"
      },
      "example": "MUC"
     },
     {
      "name": "pollen",
      "in": "query",
      "required": false,
      "description": "Comma-separated pollen types (default all): `hazel`, `alder`, `ash`, `birch`, `grasses`, `rye`, `mugwort`, `ragweed`.",
      "schema": {
       "type": "string"
      },
      "example": "birch,grasses"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PollenForecast"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  },
  "/v1/health/uv-index": {
   "get": {
    "tags": [
     "Health weather"
    ],
    "operationId": "getUvIndexForecast",
    "summary": "UV index forecast for 38 places in Germany (DWD), 3 days",
    "description": "Daily maximum UV index for clear sky at 38 places in Germany (cities, coast, islands and mountains such as Zugspitze), with the WHO risk category: 0-2 low, 3-5 moderate, 6-7 high, 8-10 very high, 11+ extreme. Issued once a day. Source: Deutscher Wetterdienst (DWD Open Data). Germany only; not medical advice.",
    "parameters": [
     {
      "name": "place",
      "in": "query",
      "required": false,
      "description": "Only places whose name contains this text, e.g. `Berlin`, `Sylt`, `Zugspitze`.",
      "schema": {
       "type": "string",
       "maxLength": 60
      },
      "example": "Berlin"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UvIndexForecast"
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing parameter.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "404": {
      "description": "Not found.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     },
     "503": {
      "description": "Data not available yet.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AirportsError"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "AirportsError": {
    "type": "object",
    "properties": {
     "error": {
      "type": "string",
      "example": "not_found"
     },
     "message": {
      "type": "string"
     }
    },
    "required": [
     "error"
    ]
   },
   "AirportsPaging": {
    "type": "object",
    "properties": {
     "total": {
      "type": "integer"
     },
     "limit": {
      "type": "integer"
     },
     "offset": {
      "type": "integer"
     }
    }
   },
   "AirportsResponseMeta": {
    "type": "object",
    "properties": {
     "generated_at": {
      "type": "string",
      "format": "date-time",
      "description": "When this dataset snapshot was built."
     },
     "attribution": {
      "type": "string",
      "description": "Attribution statement to display."
     },
     "disclaimer": {
      "type": "string"
     }
    }
   },
   "AirportsAirport": {
    "type": "object",
    "properties": {
     "ident": {
      "type": "string",
      "example": "KJFK",
      "description": "Primary identifier (usually the ICAO code)."
     },
     "name": {
      "type": "string",
      "example": "John F. Kennedy International Airport"
     },
     "type": {
      "type": "string",
      "enum": [
       "large_airport",
       "medium_airport",
       "small_airport",
       "heliport",
       "seaplane_base",
       "balloonport",
       "closed"
      ]
     },
     "iata_code": {
      "type": "string",
      "nullable": true,
      "example": "JFK"
     },
     "icao_code": {
      "type": "string",
      "nullable": true,
      "example": "KJFK"
     },
     "gps_code": {
      "type": "string",
      "nullable": true
     },
     "local_code": {
      "type": "string",
      "nullable": true
     },
     "municipality": {
      "type": "string",
      "nullable": true,
      "example": "New York"
     },
     "country": {
      "type": "string",
      "example": "US"
     },
     "region": {
      "type": "string",
      "example": "US-NY"
     },
     "continent": {
      "type": "string",
      "example": "NA"
     },
     "latitude": {
      "type": "number",
      "example": 40.6394
     },
     "longitude": {
      "type": "number",
      "example": -73.7793
     },
     "elevation_ft": {
      "type": "integer",
      "nullable": true,
      "example": 13
     },
     "scheduled_service": {
      "type": "boolean"
     },
     "time_zone": {
      "type": "string",
      "nullable": true,
      "example": "America/New_York",
      "description": "IANA time zone, computed from time zone boundary polygons."
     },
     "time_zone_confidence": {
      "type": "string",
      "nullable": true,
      "enum": [
       "high",
       "low"
      ],
      "description": "`high` for zones computed from boundary polygons (nearly all airports) and for zones taken from a city within 100 km; `low` for the rare airport that is not in the polygon table yet and whose nearest city is farther away."
     },
     "utc_offset": {
      "type": "string",
      "nullable": true,
      "example": "-05:00",
      "description": "Current UTC offset of the time zone, including daylight saving time."
     },
     "advisory": {
      "type": "object",
      "nullable": true,
      "description": "Only with `include=advisory`: the country's travel advisory (null when none is available).",
      "properties": {
       "level": {
        "type": "integer",
        "example": 2
       },
       "level_label": {
        "type": "string",
        "example": "Increased caution"
       },
       "regional_advisory": {
        "type": "boolean"
       },
       "levels": {
        "type": "object",
        "description": "Level per publishing government."
       },
       "updated": {
        "type": "string",
        "format": "date-time"
       },
       "stale": {
        "type": "boolean"
       },
       "details": {
        "type": "string",
        "description": "Where to get the full advice (Travel Advisory API)."
       }
      }
     },
     "home_link": {
      "type": "string",
      "nullable": true
     },
     "wikipedia_link": {
      "type": "string",
      "nullable": true
     }
    }
   },
   "AirportsRunway": {
    "type": "object",
    "properties": {
     "length_ft": {
      "type": "integer",
      "nullable": true
     },
     "width_ft": {
      "type": "integer",
      "nullable": true
     },
     "surface": {
      "type": "string",
      "nullable": true
     },
     "lighted": {
      "type": "boolean"
     },
     "closed": {
      "type": "boolean"
     },
     "low_end": {
      "type": "object",
      "description": "Ident, position, elevation and true heading of the low-numbered end."
     },
     "high_end": {
      "type": "object",
      "description": "Same for the high-numbered end."
     }
    }
   },
   "AirportsFrequency": {
    "type": "object",
    "properties": {
     "type": {
      "type": "string",
      "example": "TWR"
     },
     "description": {
      "type": "string"
     },
     "frequency_mhz": {
      "type": "number",
      "example": 119.1
     }
    }
   },
   "AirportsAirportDetail": {
    "allOf": [
     {
      "$ref": "#/components/schemas/AirportsAirport"
     },
     {
      "type": "object",
      "properties": {
       "country_name": {
        "type": "string"
       },
       "region_name": {
        "type": "string"
       },
       "keywords": {
        "type": "string",
        "nullable": true
       },
       "runways": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/AirportsRunway"
        }
       },
       "frequencies": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/AirportsFrequency"
        }
       }
      }
     }
    ]
   },
   "AirportsNearbyAirport": {
    "allOf": [
     {
      "$ref": "#/components/schemas/AirportsAirport"
     },
     {
      "type": "object",
      "properties": {
       "distance_km": {
        "type": "number",
        "example": 12.09
       }
      }
     }
    ]
   },
   "AirportsAirportResponse": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/AirportsAirportDetail"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsAirportList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsAirport"
      }
     },
     "paging": {
      "$ref": "#/components/schemas/AirportsPaging"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsWind": {
    "type": "object",
    "properties": {
     "direction_deg": {
      "description": "Degrees, or VRB for variable.",
      "oneOf": [
       {
        "type": "integer"
       },
       {
        "type": "string"
       }
      ],
      "nullable": true
     },
     "speed_kt": {
      "type": "number",
      "nullable": true
     },
     "gust_kt": {
      "type": "number",
      "nullable": true
     }
    }
   },
   "AirportsCloudLayer": {
    "type": "object",
    "properties": {
     "cover": {
      "type": "string",
      "example": "BKN"
     },
     "base_ft_agl": {
      "type": "number",
      "nullable": true
     },
     "type": {
      "type": "string",
      "nullable": true
     }
    }
   },
   "AirportsMetar": {
    "type": "object",
    "properties": {
     "station": {
      "type": "string",
      "example": "KJFK"
     },
     "observed_at": {
      "type": "string",
      "format": "date-time"
     },
     "raw": {
      "type": "string"
     },
     "report_type": {
      "type": "string",
      "nullable": true
     },
     "flight_category": {
      "type": "string",
      "nullable": true,
      "example": "VFR"
     },
     "temperature_c": {
      "type": "number",
      "nullable": true
     },
     "dewpoint_c": {
      "type": "number",
      "nullable": true
     },
     "wind": {
      "$ref": "#/components/schemas/AirportsWind"
     },
     "visibility_sm": {
      "description": "Statute miles; may be a string such as 10+.",
      "oneOf": [
       {
        "type": "number"
       },
       {
        "type": "string"
       }
      ],
      "nullable": true
     },
     "altimeter_inhg": {
      "type": "number",
      "nullable": true
     },
     "sea_level_pressure_mb": {
      "type": "number",
      "nullable": true
     },
     "weather": {
      "type": "string",
      "nullable": true
     },
     "clouds": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsCloudLayer"
      }
     },
     "automated": {
      "type": "boolean",
      "nullable": true
     },
     "station_elevation_m": {
      "type": "number",
      "nullable": true
     },
     "age_minutes": {
      "type": "integer",
      "nullable": true
     },
     "stale": {
      "type": "boolean",
      "nullable": true,
      "description": "True when the observation is older than 6 hours."
     }
    }
   },
   "AirportsTafPeriod": {
    "type": "object",
    "properties": {
     "from": {
      "type": "string"
     },
     "to": {
      "type": "string"
     },
     "change": {
      "type": "string",
      "nullable": true,
      "description": "FM, BECMG, TEMPO, PROB or null for the base period."
     },
     "becoming_at": {
      "type": "string",
      "nullable": true
     },
     "probability": {
      "type": "integer",
      "nullable": true
     },
     "wind": {
      "$ref": "#/components/schemas/AirportsWind"
     },
     "wind_shear": {
      "type": "object",
      "nullable": true
     },
     "visibility_sm": {
      "oneOf": [
       {
        "type": "number"
       },
       {
        "type": "string"
       }
      ],
      "nullable": true
     },
     "altimeter_inhg": {
      "type": "number",
      "nullable": true
     },
     "weather": {
      "type": "string",
      "nullable": true
     },
     "clouds": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsCloudLayer"
      }
     }
    }
   },
   "AirportsTaf": {
    "type": "object",
    "properties": {
     "station": {
      "type": "string"
     },
     "issued_at": {
      "type": "string"
     },
     "bulletin_time": {
      "type": "string",
      "nullable": true
     },
     "valid_from": {
      "type": "string"
     },
     "valid_to": {
      "type": "string"
     },
     "raw": {
      "type": "string"
     },
     "remarks": {
      "type": "string",
      "nullable": true
     },
     "periods": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsTafPeriod"
      }
     },
     "station_elevation_m": {
      "type": "number",
      "nullable": true
     },
     "is_current": {
      "type": "boolean",
      "nullable": true
     }
    }
   },
   "AirportsMetarResponse": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/AirportsMetar"
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsTafResponse": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/AirportsTaf"
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsWeatherResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "metar": {
        "nullable": true,
        "$ref": "#/components/schemas/AirportsMetar"
       },
       "taf": {
        "nullable": true,
        "$ref": "#/components/schemas/AirportsTaf"
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsNavaid": {
    "type": "object",
    "properties": {
     "ident": {
      "type": "string",
      "example": "JFK"
     },
     "name": {
      "type": "string"
     },
     "type": {
      "type": "string",
      "example": "VOR-DME"
     },
     "frequency_khz": {
      "type": "number",
      "nullable": true
     },
     "dme_frequency_khz": {
      "type": "number",
      "nullable": true
     },
     "dme_channel": {
      "type": "string",
      "nullable": true
     },
     "latitude": {
      "type": "number"
     },
     "longitude": {
      "type": "number"
     },
     "elevation_ft": {
      "type": "integer",
      "nullable": true
     },
     "country": {
      "type": "string"
     },
     "magnetic_variation_deg": {
      "type": "number",
      "nullable": true
     },
     "usage": {
      "type": "string",
      "nullable": true
     },
     "power": {
      "type": "string",
      "nullable": true
     },
     "associated_airport": {
      "type": "string",
      "nullable": true
     }
    }
   },
   "AirportsNavaidList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsNavaid"
      }
     },
     "paging": {
      "$ref": "#/components/schemas/AirportsPaging"
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsSunResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "date": {
        "type": "string"
       },
       "time_zone": {
        "type": "string",
        "nullable": true
       },
       "state": {
        "type": "string",
        "enum": [
         "normal",
         "polar_day",
         "polar_night"
        ]
       },
       "daylight_minutes": {
        "type": "integer",
        "nullable": true
       },
       "sunrise": {
        "type": "object",
        "nullable": true,
        "description": "utc and local ISO 8601 timestamps"
       },
       "sunset": {
        "type": "object",
        "nullable": true
       },
       "transit": {
        "type": "object",
        "nullable": true
       },
       "civil_twilight_begin": {
        "type": "object",
        "nullable": true
       },
       "civil_twilight_end": {
        "type": "object",
        "nullable": true
       },
       "nautical_twilight_begin": {
        "type": "object",
        "nullable": true
       },
       "nautical_twilight_end": {
        "type": "object",
        "nullable": true
       },
       "astronomical_twilight_begin": {
        "type": "object",
        "nullable": true
       },
       "astronomical_twilight_end": {
        "type": "object",
        "nullable": true
       },
       "moon": {
        "type": "object",
        "description": "phase, illumination (0-1) and age_days at local noon."
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsAirline": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "example": "Air Canada"
     },
     "iata_code": {
      "type": "string",
      "nullable": true,
      "example": "AC"
     },
     "icao_code": {
      "type": "string",
      "nullable": true,
      "example": "ACA"
     },
     "callsign": {
      "type": "string",
      "nullable": true,
      "example": "AIR CANADA"
     },
     "country": {
      "type": "string",
      "nullable": true,
      "example": "CA"
     },
     "alliance": {
      "type": "string",
      "nullable": true,
      "example": "Star Alliance"
     },
     "founded": {
      "type": "integer",
      "nullable": true,
      "example": 1937
     },
     "hub_airports": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "IATA codes of hub airports."
     },
     "wikidata_id": {
      "type": "string",
      "example": "Q185339"
     }
    }
   },
   "AirportsAirlineList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsAirline"
      }
     },
     "paging": {
      "$ref": "#/components/schemas/AirportsPaging"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsAirlineResponse": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/AirportsAirline"
     },
     "matches": {
      "type": "integer"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsRouteResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "from": {
        "type": "object"
       },
       "to": {
        "type": "object"
       },
       "distance_km": {
        "type": "number",
        "example": 7480.3
       },
       "distance_mi": {
        "type": "number"
       },
       "distance_nm": {
        "type": "number"
       },
       "estimated_flight_time": {
        "type": "object",
        "description": "Rough block-time estimate: minutes, hours_minutes and a note."
       },
       "time_difference_hours": {
        "type": "number",
        "nullable": true,
        "description": "Destination minus origin UTC offset right now, in hours."
       },
       "flight_category": {
        "type": "string",
        "enum": [
         "domestic",
         "short_haul",
         "long_haul",
         "international"
        ]
       },
       "passengers": {
        "type": "integer"
       },
       "round_trip": {
        "type": "boolean"
       },
       "emissions": {
        "type": "object",
        "description": "Per cabin class: kg_co2e_with_non_co2_effects and kg_co2e_co2_only_basis.",
        "additionalProperties": {
         "type": "object",
         "properties": {
          "kg_co2e_with_non_co2_effects": {
           "type": "number"
          },
          "kg_co2e_co2_only_basis": {
           "type": "number"
          }
         }
        }
       },
       "ground_alternatives": {
        "type": "object",
        "nullable": true,
        "description": "Same-country airport pairs up to 1,500 km: CO2e of train, coach, taxi, ferry and car for the same trip (road and rail distance assumed above great-circle distance; see its assumption text). Null otherwise; use /v1/emissions with your own distance."
       },
       "method": {
        "type": "object"
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportsNearbyList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsNearbyAirport"
      }
     },
     "query": {
      "type": "object"
     },
     "found_within_radius": {
      "type": "integer"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsRunwayList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsRunway"
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsFrequencyList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AirportsFrequency"
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsCountryList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "continent": {
         "type": "string"
        },
        "airports": {
         "type": "integer"
        }
       }
      }
     },
     "count": {
      "type": "integer"
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "AirportsMetaResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "generated_at": {
        "type": "string"
       },
       "attribution": {
        "type": "string"
       },
       "source": {
        "type": "string"
       },
       "counts": {
        "type": "object",
        "additionalProperties": {
         "type": "integer"
        }
       },
       "types": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      }
     },
     "meta": {
      "$ref": "#/components/schemas/AirportsResponseMeta"
     }
    }
   },
   "TravelLevel": {
    "type": "integer",
    "minimum": 1,
    "maximum": 4,
    "description": "1 = normal precautions, 2 = increased caution, 3 = reconsider travel / avoid non-essential travel, 4 = do not travel."
   },
   "TravelError": {
    "type": "object",
    "properties": {
     "error": {
      "type": "string",
      "example": "not_found"
     },
     "message": {
      "type": "string"
     }
    },
    "required": [
     "error"
    ]
   },
   "TravelPaging": {
    "type": "object",
    "properties": {
     "total": {
      "type": "integer"
     },
     "limit": {
      "type": "integer"
     },
     "offset": {
      "type": "integer"
     }
    }
   },
   "TravelResponseMeta": {
    "type": "object",
    "properties": {
     "generated_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the data snapshot was built."
     },
     "stale": {
      "type": "boolean",
      "description": "True if any source could not be refreshed recently; data shown is the last known good."
     },
     "attribution": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Attribution statements you should display."
     },
     "disclaimer": {
      "type": "string"
     },
     "level_scale": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     }
    }
   },
   "TravelCountrySummary": {
    "type": "object",
    "properties": {
     "iso2": {
      "type": "string",
      "example": "FR"
     },
     "iso3": {
      "type": "string",
      "example": "FRA",
      "nullable": true
     },
     "name": {
      "type": "string",
      "example": "France"
     },
     "level": {
      "$ref": "#/components/schemas/TravelLevel"
     },
     "level_label": {
      "type": "string",
      "example": "Increased caution"
     },
     "regional_advisory": {
      "type": "boolean"
     },
     "updated": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "levels": {
      "type": "object",
      "description": "Level per publishing government (our 1-4 mapping of each government's own scale).",
      "additionalProperties": {
       "$ref": "#/components/schemas/TravelLevel"
      },
      "example": {
       "ca": 2,
       "uk": 1
      }
     },
     "stale": {
      "type": "boolean"
     }
    }
   },
   "TravelCountryList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/TravelCountrySummary"
      }
     },
     "paging": {
      "$ref": "#/components/schemas/TravelPaging"
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "TravelSourceAdvice": {
    "type": "object",
    "properties": {
     "level": {
      "$ref": "#/components/schemas/TravelLevel"
     },
     "label": {
      "type": "string"
     },
     "title": {
      "type": "string",
      "description": "The government's own headline."
     },
     "summary": {
      "type": "string"
     },
     "updated": {
      "type": "string",
      "format": "date-time"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "regional_advisory": {
      "type": "boolean"
     },
     "stale": {
      "type": "boolean"
     },
     "alert_status": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "UK only: FCDO alert codes."
     },
     "parts": {
      "type": "array",
      "description": "UK only: sections (titles only in the country endpoint, full text in the source endpoint).",
      "items": {
       "type": "object",
       "properties": {
        "slug": {
         "type": "string"
        },
        "title": {
         "type": "string"
        },
        "text": {
         "type": "string"
        }
       }
      }
     }
    }
   },
   "TravelCountryRecord": {
    "type": "object",
    "properties": {
     "iso2": {
      "type": "string"
     },
     "iso3": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string"
     },
     "level": {
      "$ref": "#/components/schemas/TravelLevel"
     },
     "level_label": {
      "type": "string"
     },
     "regional_advisory": {
      "type": "boolean"
     },
     "updated": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "levels": {
      "type": "object",
      "description": "Level per publishing government (our 1-4 mapping of each government's own scale).",
      "additionalProperties": {
       "$ref": "#/components/schemas/TravelLevel"
      },
      "example": {
       "ca": 2,
       "uk": 1
      }
     },
     "sources": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/TravelSourceAdvice"
      }
     },
     "attribution": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   },
   "TravelCountryResponse": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/TravelCountryRecord"
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "TravelHazardsResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "iso2": {
        "type": "string",
        "example": "JP"
       },
       "name": {
        "type": "string",
        "example": "Japan"
       },
       "source": {
        "type": "string",
        "example": "uk"
       },
       "title": {
        "type": "string",
        "example": "Extreme weather and natural disasters"
       },
       "topics": {
        "type": "array",
        "items": {
         "type": "string"
        },
        "example": [
         "Extreme Heat",
         "Tropical cyclones",
         "Earthquakes and tsunamis"
        ]
       },
       "text": {
        "type": "string",
        "description": "Full guidance text (plain text, paragraphs separated by blank lines)."
       },
       "url": {
        "type": "string",
        "description": "Official page."
       },
       "updated": {
        "type": "string",
        "format": "date-time"
       },
       "stale": {
        "type": "boolean"
       }
      }
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "TravelSectionResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "iso2": {
        "type": "string",
        "example": "JP"
       },
       "name": {
        "type": "string",
        "example": "Japan"
       },
       "source": {
        "type": "string",
        "example": "uk"
       },
       "title": {
        "type": "string",
        "example": "Laws and cultural differences"
       },
       "topics": {
        "type": "array",
        "items": {
         "type": "string"
        },
        "example": [
         "Personal ID",
         "Alcohol bans",
         "Medication bans"
        ]
       },
       "text": {
        "type": "string",
        "description": "Full guidance text (plain text, paragraphs separated by blank lines)."
       },
       "url": {
        "type": "string",
        "description": "Official page."
       },
       "updated": {
        "type": "string",
        "format": "date-time"
       },
       "stale": {
        "type": "boolean"
       }
      }
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "TravelEmergencyResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "iso2": {
        "type": "string",
        "example": "FR"
       },
       "name": {
        "type": "string",
        "example": "France"
       },
       "source": {
        "type": "string",
        "example": "uk"
       },
       "emergency_services": {
        "type": "object",
        "nullable": true,
        "properties": {
         "title": {
          "type": "string",
          "nullable": true,
          "example": "Emergency services in France"
         },
         "numbers": {
          "type": "array",
          "items": {
           "type": "object",
           "properties": {
            "label": {
             "type": "string",
             "example": "Ambulance"
            },
            "number": {
             "type": "string",
             "example": "15"
            },
            "note": {
             "type": "string",
             "nullable": true,
             "example": "ambulance, fire, police"
            }
           }
          }
         },
         "text": {
          "type": "string",
          "description": "The full emergency services section as published."
         }
        }
       },
       "consular_help_text": {
        "type": "string",
        "nullable": true,
        "description": "Full consular help guidance (UK perspective): what to do in an emergency, insurer and provider contacts, support available."
       },
       "reference_numbers": {
        "type": "object",
        "nullable": true,
        "description": "Unverified reference list of emergency numbers (Wikidata, CC0) without service assignment. Use it when `emergency_services.numbers` is empty.",
        "properties": {
         "numbers": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "example": [
           "112",
           "999"
          ]
         },
         "source": {
          "type": "string"
         },
         "license": {
          "type": "string"
         },
         "fetched": {
          "type": "string"
         },
         "note": {
          "type": "string"
         }
        }
       },
       "url": {
        "type": "string"
       },
       "updated": {
        "type": "string",
        "format": "date-time"
       },
       "stale": {
        "type": "boolean"
       }
      }
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "TravelKeyPointsResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "iso2": {
        "type": "string",
        "example": "JP"
       },
       "name": {
        "type": "string",
        "example": "Japan"
       },
       "source": {
        "type": "string",
        "example": "uk"
       },
       "scope": {
        "type": "string",
        "nullable": true,
        "description": "Introductory text. For entry requirements it states who the rules are written for (British citizens)."
       },
       "topics": {
        "type": "array",
        "items": {
         "type": "string"
        },
        "example": [
         "Passport validity requirements",
         "Visa requirements",
         "Customs rules"
        ]
       },
       "key_points": {
        "type": "object",
        "description": "The standard sections, each as plain text or null when the country has none. Entry: passport_validity, dual_nationals, visa_requirements, vaccine_requirements, customs_rules. Health: emergency_medical_number, vaccine_recommendations, medication, healthcare.",
        "additionalProperties": {
         "type": "string",
         "nullable": true
        }
       },
       "text": {
        "type": "string",
        "description": "Full text (plain text, paragraphs separated by blank lines)."
       },
       "url": {
        "type": "string"
       },
       "updated": {
        "type": "string",
        "format": "date-time"
       },
       "stale": {
        "type": "boolean"
       }
      }
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "TravelSourceResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "iso2": {
        "type": "string"
       },
       "name": {
        "type": "string"
       },
       "source": {
        "type": "string"
       },
       "advice": {
        "$ref": "#/components/schemas/TravelSourceAdvice"
       }
      }
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "TravelChange": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "format": "date-time"
     },
     "iso2": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "from_level": {
      "type": "integer",
      "nullable": true
     },
     "to_level": {
      "type": "integer",
      "nullable": true
     },
     "from_levels": {
      "type": "object",
      "description": "Level per publishing government (our 1-4 mapping of each government's own scale).",
      "additionalProperties": {
       "$ref": "#/components/schemas/TravelLevel"
      },
      "example": {
       "ca": 2,
       "uk": 1
      }
     },
     "to_levels": {
      "type": "object",
      "description": "Level per publishing government (our 1-4 mapping of each government's own scale).",
      "additionalProperties": {
       "$ref": "#/components/schemas/TravelLevel"
      },
      "example": {
       "ca": 2,
       "uk": 1
      }
     }
    }
   },
   "TravelChangeList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/TravelChange"
      }
     },
     "paging": {
      "$ref": "#/components/schemas/TravelPaging"
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "TravelMetaResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "generated_at": {
        "type": "string",
        "format": "date-time"
       },
       "countries": {
        "type": "integer"
       },
       "last_update_run": {
        "type": "string",
        "format": "date-time",
        "nullable": true
       },
       "last_run_had_problems": {
        "type": "boolean"
       },
       "level_scale": {
        "type": "object",
        "additionalProperties": {
         "type": "string"
        }
       },
       "sources": {
        "type": "object",
        "additionalProperties": {
         "type": "object",
         "properties": {
          "name": {
           "type": "string"
          },
          "url": {
           "type": "string"
          },
          "license": {
           "type": "string"
          },
          "license_url": {
           "type": "string",
           "nullable": true
          },
          "statement": {
           "type": "string"
          },
          "published": {
           "type": "boolean"
          },
          "stale": {
           "type": "boolean"
          },
          "last_confirmed": {
           "type": "string",
           "format": "date-time",
           "nullable": true
          },
          "age_hours": {
           "type": "number",
           "nullable": true
          }
         }
        }
       }
      }
     },
     "meta": {
      "$ref": "#/components/schemas/TravelResponseMeta"
     }
    }
   },
   "CountryFacts": {
    "type": "object",
    "properties": {
     "iso2": {
      "type": "string",
      "example": "CA"
     },
     "iso3": {
      "type": "string",
      "example": "CAN"
     },
     "name": {
      "type": "string"
     },
     "flag": {
      "type": "string"
     },
     "capital": {
      "type": "string",
      "nullable": true
     },
     "continent": {
      "type": "string",
      "nullable": true
     },
     "population": {
      "type": "integer",
      "nullable": true
     },
     "area_km2": {
      "type": "number",
      "nullable": true
     },
     "latitude": {
      "type": "number",
      "nullable": true
     },
     "longitude": {
      "type": "number",
      "nullable": true
     },
     "driving_side": {
      "type": "string",
      "enum": [
       "left",
       "right"
      ],
      "nullable": true
     },
     "calling_codes": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "internet_domains": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "currencies": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "rate_per_eur": {
         "type": "number",
         "nullable": true
        }
       }
      }
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string",
         "nullable": true
        },
        "name": {
         "type": "string"
        }
       }
      }
     },
     "next_holidays": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "neighbors": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "ISO alpha-2 codes of neighbouring countries."
     },
     "weekend_days": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   },
   "CountryFactsList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/CountryFacts"
      }
     },
     "paging": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "CountryFactsResponse": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/CountryFacts"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "HolidayList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "date": {
         "type": "string",
         "example": "2026-12-25"
        },
        "name": {
         "type": "string"
        },
        "weekday": {
         "type": "string"
        }
       }
      }
     },
     "country": {
      "type": "object"
     },
     "scope": {
      "type": "object"
     },
     "name_language": {
      "type": "string",
      "enum": [
       "en",
       "local"
      ],
      "nullable": true
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "HealthNoticeList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "level": {
         "type": "integer"
        },
        "topic": {
         "type": "string"
        },
        "title": {
         "type": "string"
        },
        "summary": {
         "type": "string"
        },
        "published": {
         "type": "string",
         "nullable": true
        },
        "url": {
         "type": "string"
        }
       }
      }
     },
     "country": {
      "type": "object"
     },
     "level_scale": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FxLatestResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "base": {
        "type": "string"
       },
       "date": {
        "type": "string"
       },
       "rates": {
        "type": "object",
        "additionalProperties": {
         "type": "number"
        }
       }
      }
     },
     "supported_currencies": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FxConvertResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "from": {
        "type": "string"
       },
       "to": {
        "type": "string"
       },
       "amount": {
        "type": "number"
       },
       "rate": {
        "type": "number"
       },
       "result": {
        "type": "number"
       },
       "date": {
        "type": "string"
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "City": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     },
     "country": {
      "type": "string"
     },
     "latitude": {
      "type": "number"
     },
     "longitude": {
      "type": "number"
     },
     "population": {
      "type": "integer"
     },
     "wikidata_id": {
      "type": "string"
     }
    }
   },
   "CityList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/City"
      }
     },
     "paging": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "CityAirportsResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "city": {
        "$ref": "#/components/schemas/City"
       },
       "radius_km": {
        "type": "number"
       },
       "airports": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "distance_km": {
           "type": "number"
          },
          "iata_code": {
           "type": "string"
          },
          "icao_code": {
           "type": "string",
           "nullable": true
          },
          "name": {
           "type": "string"
          },
          "type": {
           "type": "string"
          },
          "municipality": {
           "type": "string",
           "nullable": true
          },
          "country": {
           "type": "string"
          },
          "scheduled_service": {
           "type": "boolean"
          }
         }
        }
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "ForecastResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "updated_at": {
        "type": "string"
       },
       "fetched_at": {
        "type": "string"
       },
       "units": {
        "type": "object"
       },
       "daily": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "date": {
           "type": "string"
          },
          "temperature_min_c": {
           "type": "number"
          },
          "temperature_max_c": {
           "type": "number"
          },
          "precipitation_mm": {
           "type": "number",
           "nullable": true
          },
          "symbol": {
           "type": "string",
           "nullable": true
          }
         }
        }
       },
       "hourly": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "outlook": {
        "type": "array",
        "items": {
         "type": "object"
        }
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "ClimateResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "months": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "month": {
           "type": "integer"
          },
          "name": {
           "type": "string"
          },
          "mean_temperature_c": {
           "type": "number"
          },
          "approx_daily_high_c": {
           "type": "number"
          },
          "approx_daily_low_c": {
           "type": "number"
          },
          "precipitation_mm": {
           "type": "integer"
          },
          "relative_humidity_pct": {
           "type": "number"
          }
         }
        }
       },
       "summary": {
        "type": "object",
        "properties": {
         "warmest_month": {
          "type": "integer"
         },
         "coldest_month": {
          "type": "integer"
         },
         "wettest_month": {
          "type": "integer"
         },
         "driest_month": {
          "type": "integer"
         }
        }
       },
       "period": {
        "type": "string"
       },
       "note": {
        "type": "string"
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "LongWeekendResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "long_weekends": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "start": {
           "type": "string"
          },
          "end": {
           "type": "string"
          },
          "days": {
           "type": "integer"
          },
          "holidays": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       },
       "bridge_opportunities": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "start": {
           "type": "string"
          },
          "end": {
           "type": "string"
          },
          "days": {
           "type": "integer"
          },
          "leave_day": {
           "type": "string"
          },
          "holidays": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       }
      }
     },
     "country": {
      "type": "object"
     },
     "year": {
      "type": "integer"
     },
     "region": {
      "type": "string",
      "nullable": true
     },
     "weekend_days": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "IndicatorsResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "value": {
         "type": "number"
        },
        "year": {
         "type": "integer"
        },
        "description": {
         "type": "string"
        }
       }
      }
     },
     "country": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "TimeZoneResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "time_zone": {
        "type": "string"
       },
       "local_time": {
        "type": "string"
       },
       "utc_offset": {
        "type": "string"
       },
       "utc_offset_hours": {
        "type": "number"
       },
       "abbreviation": {
        "type": "string"
       },
       "is_dst": {
        "type": "boolean"
       },
       "next_transition": {
        "type": "object",
        "nullable": true
       },
       "upcoming_transitions": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "observes_dst": {
        "type": "boolean"
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "TimeConvertResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "from": {
        "type": "object"
       },
       "to": {
        "type": "object"
       },
       "difference_hours": {
        "type": "number"
       },
       "instant_utc": {
        "type": "string"
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "RankingResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "rank": {
         "type": "integer"
        },
        "iata_code": {
         "type": "string"
        },
        "icao_code": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "municipality": {
         "type": "string",
         "nullable": true
        },
        "country": {
         "type": "string"
        },
        "passengers": {
         "type": "integer"
        },
        "passengers_year": {
         "type": "integer",
         "nullable": true
        }
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportStatsResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "passengers": {
        "type": "integer",
        "nullable": true
       },
       "passengers_year": {
        "type": "integer",
        "nullable": true
       },
       "opened_year": {
        "type": "integer",
        "nullable": true
       },
       "operator": {
        "type": "string",
        "nullable": true
       },
       "runways": {
        "type": "object",
        "properties": {
         "count": {
          "type": "integer"
         },
         "longest_ft": {
          "type": "integer",
          "nullable": true
         }
        }
       },
       "elevation_ft": {
        "type": "integer",
        "nullable": true
       },
       "type": {
        "type": "string"
       },
       "scheduled_service": {
        "type": "boolean"
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportDelaysResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "has_delays": {
        "type": "boolean"
       },
       "items": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "type": {
           "type": "string"
          },
          "reason": {
           "type": "string"
          },
          "reason_category": {
           "type": "string",
           "nullable": true
          },
          "details": {
           "type": "object"
          }
         }
        }
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "faa_update_time": {
      "type": "string",
      "nullable": true
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "BestTimeResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "activity": {
        "type": "string"
       },
       "months": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "month": {
           "type": "integer"
          },
          "name": {
           "type": "string"
          },
          "score": {
           "type": "integer"
          },
          "rating": {
           "type": "string",
           "enum": [
            "excellent",
            "good",
            "fair",
            "poor"
           ]
          },
          "mean_temperature_c": {
           "type": "number"
          },
          "precipitation_mm": {
           "type": "integer"
          }
         }
        }
       },
       "best_months": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "worst_months": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "method": {
        "type": "string"
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "LuftflyMetaResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "datasets": {
        "type": "object",
        "additionalProperties": {
         "type": "object"
        }
       },
       "name_languages": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "RouteCarriersResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "from": {
        "type": "object"
       },
       "to": {
        "type": "object"
       },
       "served": {
        "type": "boolean"
       },
       "carriers": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "carrier_code": {
           "type": "string"
          },
          "carrier_name": {
           "type": "string",
           "nullable": true
          },
          "flights": {
           "type": "integer"
          },
          "average_flights_per_month": {
           "type": "number"
          },
          "distance_mi": {
           "type": "number",
           "nullable": true
          },
          "average_elapsed_min": {
           "type": "integer",
           "nullable": true
          },
          "arrivals_delayed_15min_pct": {
           "type": "number",
           "nullable": true
          },
          "cancelled_pct": {
           "type": "number",
           "nullable": true
          }
         }
        }
       },
       "international_carriers": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "carrier_code": {
           "type": "string"
          },
          "carrier_name": {
           "type": "string",
           "nullable": true
          },
          "departures": {
           "type": "integer"
          },
          "average_departures_per_month": {
           "type": "number"
          },
          "passengers": {
           "type": "integer"
          },
          "seats": {
           "type": "integer"
          },
          "load_factor_pct": {
           "type": "number",
           "nullable": true
          },
          "distance_mi": {
           "type": "number",
           "nullable": true
          }
         }
        }
       }
      }
     },
     "period": {
      "type": "string"
     },
     "scope": {
      "type": "string"
     },
     "international_period": {
      "type": "string"
     },
     "international_scope": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirlinePerformanceResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "carrier_code": {
        "type": "string"
       },
       "carrier_name": {
        "type": "string",
        "nullable": true
       },
       "flights": {
        "type": "integer"
       },
       "arrivals_delayed_15min_pct": {
        "type": "number",
        "nullable": true
       },
       "departures_delayed_15min_pct": {
        "type": "number",
        "nullable": true
       },
       "cancelled_pct": {
        "type": "number",
        "nullable": true
       },
       "diverted_pct": {
        "type": "number",
        "nullable": true
       },
       "monthly": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "top_routes": {
        "type": "array",
        "items": {
         "type": "object"
        }
       }
      }
     },
     "period": {
      "type": "string"
     },
     "scope": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportPerformanceResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "departures": {
        "type": "object"
       },
       "arrivals": {
        "type": "object"
       },
       "delay_cause_share_pct": {
        "type": "object"
       },
       "monthly": {
        "type": "array",
        "items": {
         "type": "object"
        }
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "period": {
      "type": "string"
     },
     "scope": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportRoutesResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "to": {
         "type": "string"
        },
        "from": {
         "type": "string"
        },
        "type": {
         "type": "string",
         "enum": [
          "domestic",
          "international"
         ]
        },
        "airport_name": {
         "type": "string",
         "nullable": true
        },
        "municipality": {
         "type": "string",
         "nullable": true
        },
        "country": {
         "type": "string",
         "nullable": true
        },
        "passengers": {
         "type": "integer",
         "nullable": true
        },
        "average_passengers_per_month": {
         "type": "integer",
         "nullable": true
        },
        "flights": {
         "type": "integer"
        },
        "average_flights_per_month": {
         "type": "number"
        },
        "distance_mi": {
         "type": "number",
         "nullable": true
        },
        "carriers": {
         "type": "array",
         "items": {
          "type": "object"
         }
        }
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "direction": {
      "type": "string"
     },
     "destinations_total": {
      "type": "integer"
     },
     "period": {
      "type": "string"
     },
     "scope": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AttractionsResponse": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "distance_km": {
         "type": "number"
        },
        "name": {
         "type": "string"
        },
        "country": {
         "type": "string",
         "nullable": true
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "inscribed": {
         "type": "integer",
         "nullable": true
        },
        "localized_name": {
         "type": "string",
         "nullable": true
        },
        "wikidata_id": {
         "type": "string"
        }
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "radius_km": {
      "type": "number"
     },
     "found_within_radius": {
      "type": "integer"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FuelPrice": {
    "type": "object",
    "properties": {
     "fuel": {
      "type": "string",
      "enum": [
       "gasoline_regular",
       "gasoline_95",
       "gasoline_95_e10",
       "gasoline_98",
       "diesel",
       "diesel_premium",
       "lpg",
       "cng",
       "e85"
      ]
     },
     "price": {
      "type": "number",
      "example": 1.849
     },
     "currency": {
      "type": "string",
      "example": "EUR"
     },
     "unit": {
      "type": "string",
      "enum": [
       "L",
       "kg"
      ]
     },
     "updated_at": {
      "type": "string",
      "description": "When the authority recorded this price."
     }
    }
   },
   "FuelStation": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "example": "FR:6000005"
     },
     "coverage": {
      "type": "string",
      "enum": [
       "station"
      ],
      "description": "Level of detail of this record."
     },
     "country": {
      "type": "string"
     },
     "brand": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "type": "string"
     },
     "city": {
      "type": "string"
     },
     "postcode": {
      "type": "string",
      "nullable": true
     },
     "latitude": {
      "type": "number"
     },
     "longitude": {
      "type": "number"
     },
     "distance_km": {
      "type": "number"
     },
     "prices": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FuelPrice"
      }
     }
    }
   },
   "FuelSource": {
    "type": "object",
    "properties": {
     "country": {
      "type": "string"
     },
     "publisher": {
      "type": "string"
     },
     "licence": {
      "type": "string"
     },
     "licence_url": {
      "type": "string"
     },
     "attribution": {
      "type": "string"
     },
     "source_updated_at": {
      "type": "string",
      "nullable": true
     },
     "checked_at": {
      "type": "string",
      "nullable": true
     },
     "stations": {
      "type": "integer"
     },
     "prices": {
      "type": "integer"
     },
     "stale": {
      "type": "boolean"
     }
    }
   },
   "FuelHistory": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "country": {
        "type": "string"
       },
       "fuel": {
        "type": "string"
       },
       "currency": {
        "type": "string"
       },
       "unit": {
        "type": "string"
       },
       "latest": {
        "type": "object"
       },
       "change_pct": {
        "type": "object"
       },
       "min": {
        "type": "number"
       },
       "max": {
        "type": "number"
       },
       "weeks": {
        "type": "integer"
       },
       "series": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "week": {
           "type": "string"
          },
          "price": {
           "type": "number"
          },
          "price_without_tax": {
           "type": "number",
           "nullable": true
          },
          "tax_share_pct": {
           "type": "number",
           "nullable": true
          }
         }
        }
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FxHistory": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "base": {
        "type": "string"
       },
       "quote": {
        "type": "string"
       },
       "from": {
        "type": "string"
       },
       "to": {
        "type": "string"
       },
       "points": {
        "type": "integer"
       },
       "first": {
        "type": "number"
       },
       "last": {
        "type": "number"
       },
       "change_pct": {
        "type": "number"
       },
       "min": {
        "type": "number"
       },
       "max": {
        "type": "number"
       },
       "average": {
        "type": "number"
       },
       "series": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "date": {
           "type": "string"
          },
          "rate": {
           "type": "number"
          }
         }
        }
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "CountryElectricity": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "country": {
        "type": "object"
       },
       "band": {
        "type": "string"
       },
       "latest": {
        "type": "object"
       },
       "electric_car": {
        "type": "object"
       },
       "series": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "period": {
           "type": "string"
          },
          "price_incl_tax_per_kwh": {
           "type": "number"
          },
          "price_excl_tax_per_kwh": {
           "type": "number",
           "nullable": true
          },
          "currency": {
           "type": "string"
          }
         }
        }
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "CountryCrime": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "country": {
        "type": "object"
       },
       "indicator": {
        "type": "string"
       },
       "latest": {
        "type": "object"
       },
       "rank_in_latest_year": {
        "type": "object"
       },
       "note": {
        "type": "string"
       },
       "series": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "year": {
           "type": "integer"
          },
          "homicides_per_100k": {
           "type": "number"
          }
         }
        }
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "HomicideRates": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "year": {
        "type": "integer"
       },
       "sort": {
        "type": "string"
       },
       "indicator": {
        "type": "string"
       },
       "note": {
        "type": "string"
       },
       "countries": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "iso3": {
           "type": "string"
          },
          "iso2": {
           "type": "string",
           "nullable": true
          },
          "name": {
           "type": "string"
          },
          "homicides_per_100k": {
           "type": "number"
          }
         }
        }
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "EvStation": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "country": {
      "type": "string"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "operator": {
      "type": "string",
      "nullable": true
     },
     "network": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "type": "string"
     },
     "city": {
      "type": "string"
     },
     "postcode": {
      "type": "string"
     },
     "latitude": {
      "type": "number"
     },
     "longitude": {
      "type": "number"
     },
     "distance_km": {
      "type": "number"
     },
     "points": {
      "type": "integer"
     },
     "max_power_kw": {
      "type": "number"
     },
     "connectors": {
      "type": "object",
      "properties": {
       "type2": {
        "type": "boolean"
       },
       "ccs": {
        "type": "boolean"
       },
       "chademo": {
        "type": "boolean"
       },
       "domestic": {
        "type": "boolean"
       }
      }
     },
     "free": {
      "type": "boolean"
     },
     "open_24_7": {
      "type": "boolean"
     },
     "public_access": {
      "type": "boolean"
     },
     "updated": {
      "type": "string",
      "nullable": true
     }
    }
   },
   "EvStationList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/EvStation"
      }
     },
     "query": {
      "type": "object"
     },
     "total_in_radius": {
      "type": "integer"
     },
     "airport": {
      "type": "object"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "EvCoverage": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "countries": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "note": {
        "type": "string"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirQualityList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "integer"
        },
        "name": {
         "type": "string"
        },
        "provider": {
         "type": "string",
         "nullable": true
        },
        "owner": {
         "type": "string",
         "nullable": true
        },
        "distance_km": {
         "type": "number"
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "last_updated": {
         "type": "string"
        },
        "licence": {
         "type": "object",
         "properties": {
          "name": {
           "type": "string"
          },
          "attribution": {
           "type": "string",
           "nullable": true
          }
         }
        },
        "measurements": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "parameter": {
            "type": "string",
            "example": "pm25"
           },
           "name": {
            "type": "string",
            "nullable": true
           },
           "value": {
            "type": "number"
           },
           "unit": {
            "type": "string"
           },
           "time": {
            "type": "string"
           }
          }
         }
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "locations_found_nearby": {
      "type": "integer"
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "BorderWaitList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "crossing": {
         "type": "string"
        },
        "location": {
         "type": "string"
        },
        "border": {
         "type": "string"
        },
        "entering": {
         "type": "string",
         "enum": [
          "US",
          "CA"
         ]
        },
        "source": {
         "type": "string",
         "enum": [
          "BUS",
          "BCA"
         ]
        },
        "port_status": {
         "type": "string",
         "nullable": true
        },
        "hours": {
         "type": "string",
         "nullable": true
        },
        "updated": {
         "type": "string",
         "nullable": true
        },
        "travellers": {
         "type": "object",
         "additionalProperties": {
          "type": "object",
          "properties": {
           "delay_minutes": {
            "type": "integer",
            "nullable": true
           },
           "status": {
            "type": "string",
            "nullable": true
           }
          }
         }
        },
        "commercial": {
         "type": "object",
         "additionalProperties": {
          "type": "object",
          "properties": {
           "delay_minutes": {
            "type": "integer",
            "nullable": true
           },
           "status": {
            "type": "string",
            "nullable": true
           }
          }
         }
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "count": {
      "type": "integer"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FireList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "distance_km": {
         "type": "number"
        },
        "detected_at": {
         "type": "string"
        },
        "fire_radiative_power_mw": {
         "type": "number"
        },
        "brightness_k": {
         "type": "number"
        },
        "confidence": {
         "type": "string"
        },
        "satellite": {
         "type": "string"
        },
        "day_night": {
         "type": "string"
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "detections": {
        "type": "integer"
       },
       "nearest_km": {
        "type": "number",
        "nullable": true
       },
       "total_fire_radiative_power_mw": {
        "type": "number"
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "MarineList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "station": {
         "type": "string"
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "distance_km": {
         "type": "number"
        },
        "observed_at": {
         "type": "string"
        },
        "age_minutes": {
         "type": "integer"
        },
        "wind_direction_deg": {
         "type": "number",
         "nullable": true
        },
        "wind_speed_ms": {
         "type": "number",
         "nullable": true
        },
        "wind_gust_ms": {
         "type": "number",
         "nullable": true
        },
        "wave_height_m": {
         "type": "number",
         "nullable": true
        },
        "dominant_wave_period_s": {
         "type": "number",
         "nullable": true
        },
        "average_wave_period_s": {
         "type": "number",
         "nullable": true
        },
        "pressure_hpa": {
         "type": "number",
         "nullable": true
        },
        "air_temp_c": {
         "type": "number",
         "nullable": true
        },
        "water_temp_c": {
         "type": "number",
         "nullable": true
        },
        "dewpoint_c": {
         "type": "number",
         "nullable": true
        },
        "visibility_nmi": {
         "type": "number",
         "nullable": true
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "stations_found": {
      "type": "integer"
     },
     "airport": {
      "type": "object"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "CarbonIntensity": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "region": {
        "type": "string"
       },
       "period": {
        "type": "object"
       },
       "intensity": {
        "type": "object",
        "properties": {
         "forecast_gco2_per_kwh": {
          "type": "number",
          "nullable": true
         },
         "actual_gco2_per_kwh": {
          "type": "number",
          "nullable": true
         },
         "index": {
          "type": "string",
          "nullable": true
         }
        }
       },
       "generation_mix": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "fuel": {
           "type": "string"
          },
          "percent": {
           "type": "number"
          }
         }
        }
       },
       "forecast_next_24h": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "from": {
           "type": "string"
          },
          "forecast_gco2_per_kwh": {
           "type": "number",
           "nullable": true
          },
          "index": {
           "type": "string",
           "nullable": true
          }
         }
        }
       },
       "note": {
        "type": "string"
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "IndicatorValue": {
    "type": "object",
    "properties": {
     "year": {
      "type": "integer"
     },
     "value": {
      "type": "number"
     }
    }
   },
   "CountryTravelIndicators": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "country": {
        "type": "object"
       },
       "indicators": {
        "type": "object",
        "additionalProperties": {
         "type": "object",
         "properties": {
          "label": {
           "type": "string"
          },
          "unit": {
           "type": "string"
          },
          "latest": {
           "allOf": [
            {
             "$ref": "#/components/schemas/IndicatorValue"
            }
           ],
           "nullable": true
          },
          "rank_in_latest_year": {
           "type": "object",
           "nullable": true,
           "properties": {
            "position": {
             "type": "integer"
            },
            "of_countries": {
             "type": "integer"
            },
            "note": {
             "type": "string"
            }
           }
          },
          "series": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/IndicatorValue"
           }
          },
          "note": {
           "type": "string"
          }
         }
        }
       },
       "note": {
        "type": "string"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "IndicatorCatalogue": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "key": {
         "type": "string",
         "example": "internet_users_pct"
        },
        "name": {
         "type": "string"
        },
        "unit": {
         "type": "string",
         "nullable": true
        },
        "group": {
         "type": "string"
        },
        "definition": {
         "type": "string",
         "nullable": true
        },
        "source": {
         "type": "string",
         "nullable": true
        },
        "reporting_countries": {
         "type": "integer"
        },
        "latest_year": {
         "type": "integer"
        },
        "licence": {
         "type": "string"
        }
       }
      }
     },
     "count": {
      "type": "integer"
     },
     "groups": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "CountryStatistics": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "country": {
        "type": "object"
       },
       "indicators": {
        "type": "object",
        "additionalProperties": {
         "type": "object",
         "properties": {
          "name": {
           "type": "string"
          },
          "unit": {
           "type": "string",
           "nullable": true
          },
          "group": {
           "type": "string"
          },
          "latest": {
           "$ref": "#/components/schemas/IndicatorValue"
          },
          "series": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/IndicatorValue"
           }
          },
          "rank_in_latest_year": {
           "type": "object",
           "nullable": true
          }
         }
        }
       },
       "indicators_available": {
        "type": "integer"
       },
       "indicators_requested": {
        "type": "integer"
       },
       "note": {
        "type": "string"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "IndicatorRanking": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "indicator": {
        "type": "string"
       },
       "group": {
        "type": "string"
       },
       "label": {
        "type": "string"
       },
       "unit": {
        "type": "string"
       },
       "year": {
        "type": "integer"
       },
       "sort": {
        "type": "string"
       },
       "countries": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "iso3": {
           "type": "string"
          },
          "iso2": {
           "type": "string",
           "nullable": true
          },
          "name": {
           "type": "string"
          },
          "value": {
           "type": "number"
          }
         }
        }
       },
       "note": {
        "type": "string"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "EarthquakeList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "time": {
         "type": "string"
        },
        "magnitude": {
         "type": "number"
        },
        "place": {
         "type": "string",
         "nullable": true
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "depth_km": {
         "type": "number"
        },
        "distance_km": {
         "type": "number"
        },
        "tsunami_flag": {
         "type": "boolean"
        },
        "pager_alert": {
         "type": "string",
         "nullable": true
        },
        "felt_reports": {
         "type": "integer",
         "nullable": true
        },
        "url": {
         "type": "string",
         "nullable": true
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "earthquakes": {
        "type": "integer"
       },
       "strongest_magnitude": {
        "type": "number",
        "nullable": true
       },
       "most_recent": {
        "type": "string",
        "nullable": true
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "SigmetList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "fir": {
         "type": "string",
         "nullable": true
        },
        "fir_name": {
         "type": "string",
         "nullable": true
        },
        "issuer": {
         "type": "string",
         "nullable": true
        },
        "series": {
         "type": "string",
         "nullable": true
        },
        "kind": {
         "type": "string",
         "nullable": true,
         "description": "OBS (observed), FCST (forecast position)"
        },
        "hazard": {
         "type": "string",
         "example": "VA"
        },
        "hazard_name": {
         "type": "string"
        },
        "qualifier": {
         "type": "string",
         "nullable": true
        },
        "base_ft": {
         "type": "integer",
         "nullable": true
        },
        "top_ft": {
         "type": "integer",
         "nullable": true
        },
        "issued": {
         "type": "string"
        },
        "valid_from": {
         "type": "string"
        },
        "valid_to": {
         "type": "string"
        },
        "movement_direction": {
         "type": "string",
         "nullable": true
        },
        "movement_speed_kt": {
         "type": "integer",
         "nullable": true
        },
        "contains_point": {
         "type": "boolean"
        },
        "distance_km": {
         "type": "number"
        },
        "polygon": {
         "type": "array",
         "items": {
          "type": "array",
          "items": {
           "type": "number"
          }
         }
        },
        "raw": {
         "type": "string",
         "nullable": true
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "sigmets": {
        "type": "integer"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "GairmetList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "product": {
         "type": "string",
         "example": "SIERRA"
        },
        "tag": {
         "type": "string"
        },
        "hazard": {
         "type": "string",
         "example": "IFR"
        },
        "hazard_name": {
         "type": "string"
        },
        "severity": {
         "type": "string",
         "nullable": true
        },
        "issued": {
         "type": "string"
        },
        "expires": {
         "type": "string",
         "nullable": true
        },
        "valid_at": {
         "type": "string"
        },
        "due_to": {
         "type": "string",
         "nullable": true
        },
        "base_ft": {
         "type": "integer",
         "nullable": true
        },
        "top_ft": {
         "type": "integer",
         "nullable": true
        },
        "contains_point": {
         "type": "boolean"
        },
        "distance_km": {
         "type": "number"
        },
        "polygon": {
         "type": "array",
         "items": {
          "type": "array",
          "items": {
           "type": "number"
          }
         }
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "gairmets": {
        "type": "integer"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "PirepList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "time": {
         "type": "string"
        },
        "aircraft": {
         "type": "string",
         "nullable": true
        },
        "report_type": {
         "type": "string",
         "nullable": true
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "distance_km": {
         "type": "number"
        },
        "altitude_ft": {
         "type": "integer",
         "nullable": true
        },
        "turbulence": {
         "type": "object",
         "nullable": true,
         "properties": {
          "intensity": {
           "type": "string",
           "example": "MOD"
          },
          "type": {
           "type": "string",
           "nullable": true
          },
          "base_ft": {
           "type": "integer",
           "nullable": true
          },
          "top_ft": {
           "type": "integer",
           "nullable": true
          }
         }
        },
        "icing": {
         "type": "object",
         "nullable": true,
         "properties": {
          "intensity": {
           "type": "string",
           "example": "LGT"
          },
          "type": {
           "type": "string",
           "nullable": true
          },
          "base_ft": {
           "type": "integer",
           "nullable": true
          },
          "top_ft": {
           "type": "integer",
           "nullable": true
          }
         }
        },
        "wind_direction_deg": {
         "type": "integer",
         "nullable": true
        },
        "wind_speed_kt": {
         "type": "integer",
         "nullable": true
        },
        "temperature_c": {
         "type": "number",
         "nullable": true
        },
        "raw": {
         "type": "string"
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "pilot_reports": {
        "type": "integer"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportAviationHazards": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "sigmets": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "gairmets": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "pilot_reports": {
        "type": "array",
        "items": {
         "type": "object"
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "sigmets": {
        "type": "integer"
       },
       "sigmets_covering_point": {
        "type": "integer"
       },
       "volcanic_ash_sigmets": {
        "type": "integer"
       },
       "gairmets": {
        "type": "integer"
       },
       "gairmets_covering_point": {
        "type": "integer"
       },
       "pilot_reports": {
        "type": "integer"
       },
       "worst_reported_turbulence": {
        "type": "string",
        "nullable": true
       },
       "worst_reported_icing": {
        "type": "string",
        "nullable": true
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "SpaceWeather": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "current": {
        "type": "object"
       },
       "last_24h_maximum": {
        "type": "object"
       },
       "forecast": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "kp_index": {
        "type": "object",
        "properties": {
         "latest": {
          "type": "object"
         },
         "history": {
          "type": "array",
          "items": {
           "type": "object"
          }
         }
        }
       },
       "alerts": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "issued": {
           "type": "string"
          },
          "product_id": {
           "type": "string"
          },
          "message": {
           "type": "string"
          }
         }
        }
       }
      }
     },
     "summary": {
      "type": "object",
      "properties": {
       "geomagnetic_storm_scale": {
        "type": "integer",
        "nullable": true
       },
       "latest_kp": {
        "type": "number",
        "nullable": true
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "TropicalCycloneList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string",
         "example": "al012026"
        },
        "name": {
         "type": "string",
         "nullable": true
        },
        "basin": {
         "type": "string",
         "nullable": true
        },
        "classification": {
         "type": "string",
         "nullable": true
        },
        "max_wind_kt": {
         "type": "integer",
         "nullable": true
        },
        "pressure_mb": {
         "type": "integer",
         "nullable": true
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "movement_direction_deg": {
         "type": "integer",
         "nullable": true
        },
        "movement_speed_kt": {
         "type": "integer",
         "nullable": true
        },
        "updated": {
         "type": "string",
         "nullable": true
        },
        "advisory_url": {
         "type": "string",
         "nullable": true
        },
        "distance_km": {
         "type": "number"
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "active_storms": {
        "type": "integer"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "WeatherAlertList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "source": {
         "type": "string",
         "enum": [
          "NWS",
          "ECCC",
          "DWD"
         ]
        },
        "event": {
         "type": "string",
         "nullable": true
        },
        "event_fr": {
         "type": "string",
         "nullable": true
        },
        "severity": {
         "type": "string",
         "nullable": true
        },
        "urgency": {
         "type": "string",
         "nullable": true
        },
        "certainty": {
         "type": "string",
         "nullable": true
        },
        "colour": {
         "type": "string",
         "nullable": true
        },
        "headline": {
         "type": "string",
         "nullable": true
        },
        "area": {
         "type": "string",
         "nullable": true
        },
        "warncell_id": {
         "type": "string",
         "nullable": true,
         "description": "DWD warning cell (Germany only)."
        },
        "province": {
         "type": "string",
         "nullable": true
        },
        "effective": {
         "type": "string",
         "nullable": true
        },
        "onset": {
         "type": "string",
         "nullable": true
        },
        "ends": {
         "type": "string",
         "nullable": true
        },
        "expires": {
         "type": "string",
         "nullable": true
        },
        "issuer": {
         "type": "string",
         "nullable": true
        },
        "description": {
         "type": "string",
         "nullable": true
        },
        "description_fr": {
         "type": "string",
         "nullable": true
        },
        "instruction": {
         "type": "string",
         "nullable": true
        },
        "language": {
         "type": "string"
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "active_alerts": {
        "type": "integer"
       },
       "services_answered": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "services_unavailable": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "Port": {
    "type": "object",
    "properties": {
     "locode": {
      "type": "string",
      "example": "GRPIR"
     },
     "name": {
      "type": "string"
     },
     "country": {
      "type": "string",
      "example": "GR"
     },
     "latitude": {
      "type": "number"
     },
     "longitude": {
      "type": "number"
     },
     "distance_km": {
      "type": "number"
     },
     "wikidata": {
      "type": "string",
      "example": "Q127409"
     }
    }
   },
   "PortList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Port"
      }
     },
     "count": {
      "type": "integer"
     },
     "query": {
      "type": "object"
     },
     "built_at": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "PortOne": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/Port"
     },
     "built_at": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportPassengers": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "airport": {
        "type": "object"
       },
       "eurostat_name": {
        "type": "string"
       },
       "latest": {
        "type": "object"
       },
       "definition": {
        "type": "string"
       },
       "series": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "year": {
           "type": "integer"
          },
          "passengers": {
           "type": "integer"
          },
          "change_pct": {
           "type": "number",
           "nullable": true
          }
         }
        }
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "GeoLookup": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "query": {
        "type": "object"
       },
       "country_estimate": {
        "type": "string",
        "nullable": true
       },
       "country_confidence": {
        "type": "string",
        "enum": [
         "high",
         "medium",
         "low"
        ],
        "nullable": true
       },
       "time_zone_estimate": {
        "type": "string",
        "nullable": true
       },
       "nearest_cities": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "nearest_airports": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "method": {
        "type": "string"
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FareQuarter": {
    "type": "object",
    "properties": {
     "year": {
      "type": "integer"
     },
     "quarter": {
      "type": "integer"
     },
     "average_fare_usd": {
      "type": "number"
     },
     "median_fare_usd": {
      "type": "number"
     },
     "p25_fare_usd": {
      "type": "number"
     },
     "p75_fare_usd": {
      "type": "number"
     },
     "sample_passengers": {
      "type": "integer"
     },
     "average_distance_mi": {
      "type": "integer"
     },
     "market": {
      "type": "string",
      "enum": [
       "domestic",
       "international"
      ]
     }
    }
   },
   "RouteFares": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "from": {
        "type": "string"
       },
       "to": {
        "type": "string"
       },
       "definition": {
        "type": "string"
       },
       "outbound": {
        "type": "object",
        "nullable": true,
        "properties": {
         "latest": {
          "$ref": "#/components/schemas/FareQuarter"
         },
         "change_pct_vs_previous_quarter": {
          "type": "number",
          "nullable": true
         },
         "quarters": {
          "type": "array",
          "items": {
           "$ref": "#/components/schemas/FareQuarter"
          }
         }
        }
       },
       "return_direction": {
        "type": "object",
        "nullable": true,
        "properties": {
         "latest": {
          "$ref": "#/components/schemas/FareQuarter"
         },
         "change_pct_vs_previous_quarter": {
          "type": "number",
          "nullable": true
         },
         "quarters": {
          "type": "array",
          "items": {
           "$ref": "#/components/schemas/FareQuarter"
          }
         }
        }
       }
      }
     },
     "min_sample_passengers": {
      "type": "integer"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportFares": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "allOf": [
        {
         "type": "object",
         "properties": {
          "other_airport": {
           "type": "string"
          }
         }
        },
        {
         "$ref": "#/components/schemas/FareQuarter"
        }
       ]
      }
     },
     "airport": {
      "type": "object"
     },
     "direction": {
      "type": "string"
     },
     "sort": {
      "type": "string"
     },
     "quarter": {
      "type": "string"
     },
     "min_sample_passengers": {
      "type": "integer"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "Accident": {
    "type": "object",
    "properties": {
     "distance_km": {
      "type": "number"
     },
     "ntsb_no": {
      "type": "string"
     },
     "event_id": {
      "type": "string"
     },
     "date": {
      "type": "string"
     },
     "type": {
      "type": "string",
      "enum": [
       "accident",
       "incident"
      ]
     },
     "location": {
      "type": "object"
     },
     "airport": {
      "type": "object",
      "nullable": true
     },
     "aircraft": {
      "type": "object"
     },
     "injuries": {
      "type": "object",
      "properties": {
       "fatal": {
        "type": "integer"
       },
       "serious": {
        "type": "integer"
       },
       "minor": {
        "type": "integer"
       },
       "uninjured": {
        "type": "integer"
       },
       "highest": {
        "type": "string",
        "nullable": true
       }
      }
     },
     "conditions": {
      "type": "object"
     },
     "probable_cause": {
      "type": "string",
      "nullable": true
     },
     "findings": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   },
   "AccidentList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Accident"
      }
     },
     "query": {
      "type": "object"
     },
     "total_matching": {
      "type": "integer"
     },
     "codes": {
      "type": "string"
     },
     "data_as_of": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AccidentOne": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/Accident"
     },
     "codes": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AirportSafety": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Accident"
      }
     },
     "airport": {
      "type": "object"
     },
     "period": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "events": {
        "type": "integer"
       },
       "accidents": {
        "type": "integer"
       },
       "incidents": {
        "type": "integer"
       },
       "events_with_fatalities": {
        "type": "integer"
       },
       "fatalities": {
        "type": "integer"
       },
       "by_category": {
        "type": "object",
        "additionalProperties": {
         "type": "integer"
        }
       }
      }
     },
     "scope": {
      "type": "string"
     },
     "codes": {
      "type": "string"
     },
     "data_as_of": {
      "type": "string"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "TideList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "time": {
         "type": "string"
        },
        "type": {
         "type": "string",
         "enum": [
          "high",
          "low"
         ]
        },
        "height_m": {
         "type": "number"
        }
       }
      }
     },
     "station": {
      "type": "object"
     },
     "query": {
      "type": "object"
     },
     "datum": {
      "type": "string"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FuelNationalRow": {
    "type": "object",
    "properties": {
     "country": {
      "type": "string",
      "example": "DE"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "coverage": {
      "type": "string",
      "enum": [
       "national"
      ],
      "description": "Level of detail: a national average, not a station price."
     },
     "source": {
      "type": "string",
      "enum": [
       "EU",
       "GB",
       "NO",
       "US"
      ]
     },
     "price_date": {
      "type": "string",
      "example": "2026-11-23"
     },
     "stale": {
      "type": "boolean"
     },
     "prices": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "fuel": {
         "type": "string"
        },
        "price": {
         "type": "number"
        },
        "currency": {
         "type": "string"
        },
        "unit": {
         "type": "string"
        },
        "price_eur": {
         "type": "number",
         "nullable": true
        }
       }
      }
     }
    }
   },
   "FuelNational": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FuelNationalRow"
      }
     },
     "query": {
      "type": "object"
     },
     "count": {
      "type": "integer"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "CountryFuel": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "country": {
        "type": "object"
       },
       "coverage": {
        "type": "string",
        "enum": [
         "station",
         "national"
        ],
        "description": "Most detailed level available for this country."
       },
       "coverage_levels": {
        "type": "array",
        "items": {
         "type": "string",
         "enum": [
          "national",
          "station"
         ]
        }
       },
       "national_average": {
        "$ref": "#/components/schemas/FuelNationalRow"
       },
       "station_level": {
        "type": "object"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FuelCountries": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "station_level": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/FuelSource"
        }
       },
       "national_average": {
        "type": "array",
        "items": {
         "type": "object"
        }
       },
       "fuel_codes": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "note": {
        "type": "string"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FuelSource"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FuelStationList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FuelStation"
      }
     },
     "query": {
      "type": "object"
     },
     "total_in_radius": {
      "type": "integer"
     },
     "airport": {
      "type": "object"
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FuelSource"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FuelStationOne": {
    "type": "object",
    "properties": {
     "data": {
      "$ref": "#/components/schemas/FuelStation"
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FuelSource"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "FuelStats": {
    "type": "object",
    "properties": {
     "data": {
      "type": "object",
      "properties": {
       "country": {
        "type": "string"
       },
       "fuel": {
        "type": "string"
       },
       "currency": {
        "type": "string"
       },
       "unit": {
        "type": "string"
       },
       "stations_with_price": {
        "type": "integer"
       },
       "average": {
        "type": "number"
       },
       "median": {
        "type": "number"
       },
       "min": {
        "type": "number"
       },
       "max": {
        "type": "number"
       },
       "p10": {
        "type": "number"
       },
       "p90": {
        "type": "number"
       },
       "filter": {
        "type": "object"
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FuelSource"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "EmissionsComparison": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "mode": {
         "type": "string",
         "example": "national_rail"
        },
        "label": {
         "type": "string"
        },
        "distance_km_used": {
         "type": "number"
        },
        "kg_co2e_total": {
         "type": "number"
        },
        "kg_co2e_per_passenger": {
         "type": "number"
        },
        "kg_co2e_co2_only_basis": {
         "type": "number"
        },
        "assumption": {
         "type": "string"
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "method": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "Event": {
    "type": "object",
    "properties": {
     "distance_km": {
      "type": "number"
     },
     "id": {
      "type": "string"
     },
     "source": {
      "type": "string",
      "enum": [
       "usgs",
       "eonet"
      ]
     },
     "type": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "magnitude": {
      "type": "number",
      "nullable": true
     },
     "magnitude_unit": {
      "type": "string",
      "nullable": true
     },
     "latitude": {
      "type": "number"
     },
     "longitude": {
      "type": "number"
     },
     "depth_km": {
      "type": "number",
      "nullable": true
     },
     "time": {
      "type": "string",
      "nullable": true
     },
     "url": {
      "type": "string",
      "nullable": true
     }
    }
   },
   "EventList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Event"
      }
     },
     "query": {
      "type": "object"
     },
     "found": {
      "type": "integer"
     },
     "data_updated_at": {
      "type": "string",
      "nullable": true
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AerodromeList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "ident": {
         "type": "string",
         "example": "CSN2"
        },
        "type": {
         "type": "string",
         "enum": [
          "large_airport",
          "medium_airport",
          "small_airport",
          "heliport",
          "seaplane_base",
          "balloonport"
         ]
        },
        "type_name": {
         "type": "string",
         "example": "Heliport or helipad"
        },
        "name": {
         "type": "string"
        },
        "municipality": {
         "type": "string",
         "nullable": true
        },
        "country": {
         "type": "string",
         "example": "CA"
        },
        "region": {
         "type": "string",
         "nullable": true
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "elevation_ft": {
         "type": "integer",
         "nullable": true
        },
        "iata_code": {
         "type": "string",
         "nullable": true
        },
        "icao_code": {
         "type": "string",
         "nullable": true
        },
        "gps_code": {
         "type": "string",
         "nullable": true
        },
        "local_code": {
         "type": "string",
         "nullable": true
        },
        "scheduled_service": {
         "type": "boolean"
        },
        "home_link": {
         "type": "string",
         "nullable": true
        },
        "wikipedia_link": {
         "type": "string",
         "nullable": true
        }
       }
      }
     },
     "paging": {
      "type": "object",
      "properties": {
       "total": {
        "type": "integer"
       },
       "limit": {
        "type": "integer"
       },
       "offset": {
        "type": "integer"
       }
      }
     },
     "summary": {
      "type": "object",
      "properties": {
       "by_type": {
        "type": "object",
        "additionalProperties": {
         "type": "integer"
        }
       }
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "AerodromeNearbyList": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "distance_km": {
         "type": "number"
        },
        "distance_nm": {
         "type": "number"
        },
        "bearing_deg": {
         "type": "integer",
         "description": "True bearing from the query point, 0-359."
        },
        "direction": {
         "type": "string",
         "example": "NNE"
        },
        "ident": {
         "type": "string",
         "example": "CSN2"
        },
        "type": {
         "type": "string",
         "enum": [
          "large_airport",
          "medium_airport",
          "small_airport",
          "heliport",
          "seaplane_base",
          "balloonport"
         ]
        },
        "type_name": {
         "type": "string",
         "example": "Heliport or helipad"
        },
        "name": {
         "type": "string"
        },
        "municipality": {
         "type": "string",
         "nullable": true
        },
        "country": {
         "type": "string",
         "example": "CA"
        },
        "region": {
         "type": "string",
         "nullable": true
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "elevation_ft": {
         "type": "integer",
         "nullable": true
        },
        "iata_code": {
         "type": "string",
         "nullable": true
        },
        "icao_code": {
         "type": "string",
         "nullable": true
        },
        "gps_code": {
         "type": "string",
         "nullable": true
        },
        "local_code": {
         "type": "string",
         "nullable": true
        },
        "scheduled_service": {
         "type": "boolean"
        },
        "home_link": {
         "type": "string",
         "nullable": true
        },
        "wikipedia_link": {
         "type": "string",
         "nullable": true
        }
       }
      }
     },
     "query": {
      "type": "object"
     },
     "summary": {
      "type": "object",
      "properties": {
       "total": {
        "type": "integer"
       },
       "by_type": {
        "type": "object",
        "additionalProperties": {
         "type": "integer"
        }
       },
       "nearest_by_type": {
        "type": "object",
        "additionalProperties": {
         "type": "object"
        }
       },
       "nearest_km": {
        "type": "number",
        "nullable": true
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "PollenForecast": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "region_id": {
         "type": "integer"
        },
        "region": {
         "type": "string",
         "example": "Bayern"
        },
        "partregion_id": {
         "type": "integer",
         "nullable": true
        },
        "partregion": {
         "type": "string",
         "nullable": true
        },
        "states": {
         "type": "array",
         "items": {
          "type": "string",
          "example": "DE-BY"
         }
        },
        "pollen": {
         "type": "object",
         "additionalProperties": {
          "type": "object",
          "properties": {
           "today": {
            "type": "object",
            "properties": {
             "index": {
              "type": "string",
              "nullable": true,
              "example": "1-2"
             },
             "level": {
              "type": "string",
              "nullable": true,
              "example": "low to moderate"
             }
            }
           },
           "tomorrow": {
            "type": "object",
            "properties": {
             "index": {
              "type": "string",
              "nullable": true,
              "example": "1-2"
             },
             "level": {
              "type": "string",
              "nullable": true,
              "example": "low to moderate"
             }
            }
           },
           "day_after": {
            "type": "object",
            "properties": {
             "index": {
              "type": "string",
              "nullable": true,
              "example": "1-2"
             },
             "level": {
              "type": "string",
              "nullable": true,
              "example": "low to moderate"
             }
            }
           }
          }
         }
        }
       }
      }
     },
     "days": {
      "type": "object",
      "properties": {
       "today": {
        "type": "string",
        "format": "date"
       },
       "tomorrow": {
        "type": "string",
        "format": "date"
       },
       "day_after": {
        "type": "string",
        "format": "date"
       }
      }
     },
     "issued": {
      "type": "string"
     },
     "next_update": {
      "type": "string"
     },
     "summary": {
      "type": "object",
      "properties": {
       "regions": {
        "type": "integer"
       },
       "highest_today": {
        "type": "object",
        "additionalProperties": {
         "type": "object",
         "properties": {
          "index": {
           "type": "string",
           "nullable": true,
           "example": "1-2"
          },
          "level": {
           "type": "string",
           "nullable": true,
           "example": "low to moderate"
          }
         }
        }
       }
      }
     },
     "legend": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "index": {
         "type": "string",
         "nullable": true,
         "example": "1-2"
        },
        "level": {
         "type": "string",
         "nullable": true,
         "example": "low to moderate"
        }
       }
      }
     },
     "airport": {
      "type": "object"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   },
   "UvIndexForecast": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "place": {
         "type": "string",
         "example": "Berlin"
        },
        "today": {
         "type": "object",
         "properties": {
          "uv_index": {
           "type": "integer",
           "nullable": true
          },
          "risk": {
           "type": "string",
           "nullable": true,
           "example": "moderate"
          }
         }
        },
        "tomorrow": {
         "type": "object",
         "properties": {
          "uv_index": {
           "type": "integer",
           "nullable": true
          },
          "risk": {
           "type": "string",
           "nullable": true,
           "example": "moderate"
          }
         }
        },
        "day_after": {
         "type": "object",
         "properties": {
          "uv_index": {
           "type": "integer",
           "nullable": true
          },
          "risk": {
           "type": "string",
           "nullable": true,
           "example": "moderate"
          }
         }
        }
       }
      }
     },
     "days": {
      "type": "object",
      "properties": {
       "today": {
        "type": "string",
        "format": "date"
       },
       "tomorrow": {
        "type": "string",
        "format": "date"
       },
       "day_after": {
        "type": "string",
        "format": "date"
       }
      }
     },
     "forecast_day": {
      "type": "string"
     },
     "issued": {
      "type": "string"
     },
     "next_update": {
      "type": "string"
     },
     "summary": {
      "type": "object",
      "properties": {
       "places": {
        "type": "integer"
       },
       "highest_today": {
        "type": "integer",
        "nullable": true
       },
       "highest_today_risk": {
        "type": "string",
        "nullable": true
       }
      }
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "meta": {
      "type": "object"
     }
    }
   }
  }
 }
}