Weather Alert
Endpoint#
GET /weatheralert/v1/current/{latitude}/{longitude}Parameters#
Path parameters
-
latitude requirednumberLatitude of the requested location in decimal degrees
-
longitude requirednumberLongitude of the requested location in decimal degrees
Query parameters
-
localTimeboolean
Whether to return local time for the requested location
Possible values:
falseUTC time (default),truelocation's local time -
langstringLanguage setting. See Language for behavior, configuration, and data availability
Request example#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/weatheralert/v1/current/39.92/116.41'
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."
}
]
}
-
metadataobjectMetadata for this response
-
tagstringUnique data identifier
-
attributionsarrayData attribution or statements that must be displayed with the response data
-
zeroResultboolean
trueindicates the request is successful but no data is available, e.g. no alert data for the queried location
-
-
alertsarrayWeather alert list
-
idstringThe ID of this alert message
-
senderNamestringThe name of the agency or authority issuing this alert, may be null
-
issuedTimedate-timeThe time when the original alert message was generated. The actual release or receipt time may be slightly delayed
-
messageTypeobject
-
codestring
Message type code. Available values:
alertThe initial, active alert messageupdateUpdates and supersedes the alert messages identified inmessageType.supersedescancelCancels the alert messages identified inmessageType.supersedes. A message with the cancel type remains valid for 1 hour
-
supersedesarrayPrevious alert messages superseded by this message
-
-
eventTypeobject
-
namestringName of the alert event
-
codestringCode of the alert event
-
-
urgencystring
Urgency of the alert message. Available values:
immediateImmediate action is requiredexpectedAction should be taken soon, usually within 1 hourfutureAction should be taken in the near futurepastThe event is no longer occurringunknownThe urgency is unknown
-
severitystring
Severity of the alert message. Available values:
unknownThe severity is unknownminorMinimal or no known threat to life or propertymoderatePossible threat to life or propertysevereSignificant threat to life or propertyextremeExtreme threat to life or property
-
certaintystring
Certainty of the alert message. Available values:
observedThe event has occurred or is occurringlikelyThe probability of occurrence is at least 50%possibleThe event may occur, with a probability of no more than 50%unlikelyThe event is not expected, with a probability close to 0unknownThe certainty is unknown
-
iconstringIcon code for this alert
-
colorobjectRGBA color for this alert.
-
codestringColor code. Available values:
white,gray,green,blue,yellow,amber,orange,red,purple, andblack -
rednumberRed component, range [0, 255]
-
greennumberGreen component, range [0, 255]
-
bluenumberBlue component, range [0, 255]
-
alphanumberAlpha component, range [0, 1]
-
-
effectiveTimedate-timeThe effective time of the alert message
-
onsetTimedate-timeThe expected time of the beginning of this alert event, maybe null
-
expireTimedate-timeThe expiry time of the alert message
-
headlinestringHeadline or brief of the alert message
-
descriptionstringDescription of the alert message
-
criteriastringThe criteria or conditions that triggered this alert. For reference only and may lag behind official standards, may be null
-
responseTypesarrayType code of recommended action for this alert, may be null
-
instructionstringThe recommended action for this alert, may be null
-