Real-time Weather
Get real-time weather data for 500,000+ cities around the world, including temperature, wind, humidity, pressure, precipitation, visibility, etc.
Note: The real-time data are all near real-time data. Compared with the real physical world, it will be delayed by 5-20 minutes. Please determine the accurate time corresponding to the data according to the
obsTimein the data.
Endpoint#
GET /v7/weather/nowParameters#
Query parameters
-
location(required) The location to be queried, support LocationID or comma-separated longitude and latitude (decimal, up to 2 decimal places), LocationID can be obtained by GeoAPI. Example:location=101010100orlocation=116.41,39.92 -
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/v7/weather/now?location=116.41%2C39.92&lang=en'
Replace your_token and your_api_host with your JWT Authentication and API Host
Response#
{
"code": "200",
"updateTime": "2023-04-12T18:27+08:00",
"fxLink": "https://www.qweather.com/en/weather/beijing-101010100.html",
"now": {
"obsTime": "2023-04-12T18:22+08:00",
"temp": "26",
"feelsLike": "28",
"icon": "501",
"text": "Fog",
"wind360": "180",
"windDir": "S",
"windScale": "1",
"windSpeed": "5",
"humidity": "74",
"precip": "0.0",
"pressure": "1004",
"vis": "4",
"cloud": "91",
"dew": "23"
},
"refer": {
"sources": [
"https://developer.qweather.com/attribution.html"
],
"license": [
"QWeather Developers License"
]
}
}-
fxLinkuri Responsive web page of this data, for embedded in website or APP -
nowobject Current weather data-
obsTimedate-time Observation time -
tempstring Temperature, default unit: Celsius -
textstring Weather condition description -
humiditystring Relative humidity in percent -
precipstring Precipitation, default unit: millimeters -
pressurestring Station pressure, default unit: hPa -
cloudstring Cloud cover in percent -
dewstring Dew point temperature -
feelsLikestring Feels like temperature -
visstring Visibility, KM
-
-
referobject Data sources and licensing information-
sourcesarray Data source and other statements, may be null -
licensearray Data license, may be null
-