Weather Indices Forecast
Get weather indices forecast data for cities in China and around the world.
- Weather Indices in China: Comfort Indices, Car Wash Indices, Dressing Indices, Cold Indices, Sports Indices, Travel Indices, UV Indices, Air Pollution Indices, Air Conditioning Indices, Allergy Indices, Sunglasses Indices, Makeup Indices, Sunshine Indices, Traffic Indices, Fishing Indices, Sun Protection Indices
- Weather Indices worldwide: Sports Indices, Car Wash Indices, UV Indices, Fishing Indices
Endpoint#
GET /v7/indices/{days}Parameters#
Path parameters
-
days(required) Forecast days, supports up to 3 days, available value:1d,3d
Query parameters
-
type(required) Weather indices type ID, including car wash index, clothing index, fishing index, etc. You can get multiple types of weather indices at one time, and multiple types are separated by comma, e.g.,type=3,5, and all indices type see Indices Info. -
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/indices/1d?type=1&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": "2021-12-16T18:35+08:00",
"fxLink": "https://www.qweather.com/en/indices/chaoyang-101010300.html",
"daily": [
{
"date": "2021-12-16",
"type": "1",
"name": "Sports",
"level": "3",
"category": "Poor",
"text": "The weather is generally good, but it is cold and windy. Indoor exercise is recommended. If exercising outdoors, keep warm and prepare properly."
},
{
"date": "2021-12-16",
"type": "2",
"name": "Car Wash",
"level": "3",
"category": "Poor",
"text": "Car washing is not recommended. No rain is expected in the next day, but strong winds may cover your car with dust after washing."
}
],
"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 -
dailyarray Daily forecast data-
datedate Forecast date -
typestring Weather indices forecast type ID -
namestring Name of weather indices type -
levelstring Weather indices level -
categorystring Weather indices category name -
textstring Description of the weather indices, may be null
-
-
referobject Data sources and licensing information-
sourcesarray Data source and other statements, may be null -
licensearray Data license, may be null
-