Weather Alert
Get officially issued real-time severe weather alert data around the world.
Hint: For the implementation of weather alert, see Resource - Alert Info in advance.
Endpoint#
GET /weatheralert/v1/current/{latitude}/{longitude}Parameters#
Path parameters
-
latitude(required) The latitude of the desired location. Decimal format, up to 2 decimal places. For example39.92 -
longitude(required) The longitude of the desired location. Decimal format, up to 2 decimal places. For example116.41
Query parameters
-
localTimeWhether to return local time for the requested location.truereturns local time;falsereturns UTC time (default). -
langMulti-language setting, please see Language to find out how our multi-language works and how to set up.
Request example#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/weatheralert/v1/current/39.92/116.41?localTime=false&lang=en'
Replace your_token and your_api_host with your JWT Authentication and API Host
Response#
{
"metadata": {
"tag": "0940b1221a969f15219673d1eaef532ec683bde88522f32155e6025d63fa1747",
"zeroResult": false,
"attributions": [
"https://developer.qweather.com/attribution.html",
"Alert data may be delayed or out of date. Refer to official sources for the latest data."
]
},
"alerts": [
{
"id": "202510162100007104337971",
"senderName": "Meteorological Service of New Zealand Limited",
"issuedTime": "2025-10-16T21:00Z",
"messageType": {
"code": "update",
"supersedes": [
"202510160638008946296098"
]
},
"latestChange": null,
"eventType": {
"name": "wind",
"code": "2551"
},
"urgency": "future",
"severity": "moderate",
"certainty": "likely",
"icon": "2551",
"color": {
"code": "orange",
"red": 255,
"green": 13,
"blue": 24,
"alpha": 1
},
"effectiveTime": "2025-10-17T10:00Z",
"onsetTime": "2025-10-17T10:00Z",
"expireTime": "2025-10-18T00:00Z",
"headline": "Strong Wind Warning - Orange",
"description": "Severe gale northwesterlies gusting 130km/h in exposed places. Impact: Damage to trees, powerlines, and unsecured structures possible. Driving may be difficult, especially for high-sided vehicles and motorcycles. Chance of upgrading to a Red Warning: Minimal. Changes: Watch upgraded to an Orange Warning.",
"criteria": "Widespread severe gales with a minimum mean speed of 90km/h or frequent gusts exceeding 110km/h.",
"responseTypes": [
"monitor"
],
"instruction": "Action: Prepare your property by securing items that can be picked up by strong winds. Drive cautiously."
}
]
}
-
metadataobject Metadata for this response-
tagstring Unique tag for this data -
zeroResultbooleantrueindicates the request is successful but no data is available, e.g. no alert data for the queried location -
attributionsarray Data attribution list that must be displayed with the current data
-
-
alertsarray Weather alert list-
idstring The ID of this alert message -
senderNamestring The name of the agency or authority issuing this alert, may be null -
issuedTimedate-time The time when the original alert message was generated. The actual release or receipt time may be slightly delayed -
-
codestring Nature code -
supersedesarray Alert IDs that are superseded by this message, return null when it is a new alert.
-
-
-
namestring Name of the alert event -
codestring Code of the alert event
-
-
colorobject RGBA color for this alert.-
rednumber Red component in RGBA, [0, 255] -
greennumber Green component in RGBA, [0, 255] -
bluenumber Blue component in RGBA, [0, 255] -
alphanumber Alpha (opacity) in RGBA, [0, 1]
-
effectiveTimedate-time The effective time of the alert message, may be null -
onsetTimedate-time The expected time of the beginning of this alert event, may be null -
expireTimedate-time The expiry time of the alert message -
headlinestring Headline or brief of the alert message -
descriptionstring Description of the alert message -
criteriastring The criteria or condition for triggering this alert. This is for reference only and may out of date with official standard. May be null -
responseTypesarray Type code of recommended action for this alert, may be null -
instructionstring The recommended action for this alert, may be null
-