Weather Alerts
Retrieves weather alerts for a given country and zip/postal code.
Endpoint GET
https://api.ttgtoolbox.com/v1/weather/country_code/postal_code/alerts
Required parameters
This endpoint uses the GET
method and has the following required parameters.
country_coderequired
We support the following country codes.
Country | Code |
---|---|
United States | US |
Canada | CA |
postal_coderequired
A valid zip / postal code is required.
Example request URL
https://api.ttgtoolbox.com/v1/weather/US/49010/alerts
Response
json
[
{
"sender_name": "NWS Mount Holly NJ",
"event": "Wind Advisory",
"start": 1710176940,
"end": 1710201600,
"description": "* WHAT...Northwest winds 20 to 30 mph with gusts up to 55 mph.\n\n* WHERE...Delaware, northeast Maryland, New Jersey and eastern\nPennsylvania.\n\n* WHEN...Until 8 PM EDT this evening.\n\n* IMPACTS...Gusty winds could blow around unsecured objects.\nTree limbs could be blown down and a few power outages may\nresult.\n\n* ADDITIONAL DETAILS...The saturated ground may make it easier for\nsome trees to fall, especially weaker or shallow rooted trees..",
"tags": ["Wind"]
}
]