airports

Get weather forecast for given airport

Returns the weather forecast for an airport in the form of a decoded TAF (Terminal Area Forecast). Only a single result is returned.

get/airports/{id}/weather/forecast

Request

Path parameters

idstring required

ICAO, IATA or LID ID of destination airport to fetch. ICAO is highly preferred to prevent ambiguity.

Query parameters

timestampstring date-time
Example:2021-12-31T19:59:59Z

Timestamp from which to begin returning weather data in a 1 day range. Because weather data is returned in reverse chronological order, all returned weather reports will be from before this timestamp. If unspecified, weather is returned starting from now up to or less than the user history limit, normally 14 days.

return_nearby_weatherboolean

If the requested airport does not have a weather conditions report then the weather for the nearest airport within 30 miles will be returned instead.

Response

OK

airport_codestring required

The airport code of the report. LID/IATA will be used if airport lacks an ICAO code.

raw_forecaststring[] required

Array of raw forecast lines from the TAF

timestring date-time required

Datetime that the forecast was generated.

Example response

{
  "time": "2021-12-31T19:59:59Z",
  "decoded_forecast": {
    "start": "2021-12-31T19:59:59Z",
    "end": "2021-12-31T19:59:59Z",
    "lines": [
      {
        "start": "2021-12-31T19:59:59Z",
        "end": "2021-12-31T19:59:59Z"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.