This site uses cookies to personalise content, adverts, and to analyse traffic. I'm ok with that Learn More

TAF Hazards API Documentation

This is the documentation to access the TAF Hazards API. It returns any hazards calculated in house based on the latest Airport Terminal Aerodrome Forecast (TAF).

The API Platform is only available via a REST API, in which you have to let your application grab a URL with parameters and it returns all output in either JSON format. This makes it easy to grab the data using any Programming Language of your choice.

The root URL for the API is:

GET https://aviation.flights/api/taf-hazards

Rate Limits

For the longest time it didn't need to be done but as of February 4, 2025 there is now a temporary rate limit of one request per 5 seconds.

Required Header Request

The following header is required on all requests:

x-api-key: The API key provided to you

Required URL Parameters

The following parameters are all required:

Parameter
Description
icao
The ICAO code of the Airport you want to get the TAF Hazards for

Output Values for JSON

The following output values are returned after successful query:

Field
Description
hazard
The description of the hazard

Error Codes for JSON

The following are all error codes that can be returned with this function:

Error Message
Description
No API key provided!
No API key has been provided.
API key invalid!
The API key is invalid.

Sample Output

{
    "status": "success",
    "results": [
        {
            "icao": "CYYZ",
            "taf_hazards": [
                {
                    "hazard": "+TSRA BR possible 21-00Z"
                }
                {
                    "hazard": "Wind Gusts to 35 kn possible 21-00Z"
                }
            ]
        }
    ]
}
Chat