Share a weather forecast API that can get 7 days and 24 hours, including data such as PM2.5

Source: Internet
Author: User




API Address:

PM2.5 API

http://api.lib360.net/open/pm2.5.json?city= Luoyang

7 days 24 Hours weather API

http://api.lib360.net/open/weather.json?city= Suzhou

GET Request

Parameters

Prov optional provinces such as: Jiangsu, Hebei

City name: Suzhou, Shanghai

Return Data format JSON


The data field returns 7 days of weather conditions, including today

Data24 back to today's forecast in 24 hours.

PM25 returns the PM25 value of the current city


{"Data"  : [{"Areaid"  :  "101190401",   //Region ID "Year"  : 2015, //years " Month " : 3,  //month" Day " : 19, //" Weather " : " Yin turn drizzle ",  //weather conditions" Weathericon " : " d02 ",   //weather icon" Tempmax " : 16,  //maximum temperature  " Tempmin "  : 10,  //minimum Temperature "Winda"  :  "ne",  //wind Direction "windb"  :  "Dongfeng",//Wind  :  "Breeze",  //wind Speed "Date"  :  "\/date (1426694400000) \"   //Time}, {"Areaid"  :  "101190401", "Year"  : 2015, "Month"  : 3, "Day"  : 20, "Weather"  :   "Light rain Turns Cloudy", "Weathericon"  :  "d07", "Tempmax"  : 14, "Tempmin"  : 10, "Winda"  :   "Northeast", "Windb"  :  "Dongfeng", "Wind"  :  "Breeze", "Date"  :  "\/date (1426780800000) \"},  {"Areaid"  :  "101190401", "Year"  : 2015, "Month"  : 3, "Day"  : 21, " Weather " : " Cloudy "," WeatheriCON " : " D01 "," Tempmax " : 19," Tempmin " : 11," Winda " : " westerly "," Windb "  :  "westerly", "Wind"  :  "Breeze", "Date"  :  "\/date (1426867200000) \"}, {"Areaid"  :   "101190401", "Year"  : 2015, "Month"  : 3, "Day"  : 22, "Weather"  :  "Cloudy "," Weathericon " : " D01 "," Tempmax " : 17," Tempmin " : 9," Winda " : " Dongfeng "," Windb " : ", "Wind"  :  "Level 3-4", "Date"  :  "\/date (1426953600000) \"}, {"Areaid " : " 101190401 "," Year " : 2015," Month " : 3," Day " : 23," Weather " :   "Cloudy", "Weathericon"  :  "D01", "Tempmax"  : 14, "Tempmin"  : 8, "Winda"  :   "Dongfeng", "Windb"  :  "Dongfeng", "Wind"  :  "level 4-5 to Breeze", "Date"  :  "\/date (1427040000000) \"} ,  {"Areaid"  :  "101190401", "Year"  : 2015, "Month"  : 3, "Day"  : 24, " Weather " : " Cloudy "," Weathericon " : " D01 "," Tempmax " : 15," Tempmin " : 6," Winda " : " Dongfeng ", "Windb"  :  "Dongfeng", "Wind"  :  "Breeze", "Date"  :  "\/date (1427126400000) \"}, {"Areaid"  :  "101190401", "Year"  : 2015, "Month"  : 3, "Day"  : 25, "Weather"  :   "Cloudy", "Weathericon"  :  "D01", "Tempmax"  : 15, "Tempmin"  : 6, "Winda"  :   "Dongfeng", "Windb"  :  "Dongfeng", "Wind"  :  "Breeze", "Date"  :  "\/date (1427212800000) \"}], " Data24 " : [{" Areaid " : " 101190401 "," Year " : 2015," Month " : 3," Day "  : 19, "Beginhour"  : 5, "Endhour"  : 8, "Weather"  :  "drizzle", "Weathericon"  :  "D07", "Tempmax"  : 11, "Tempmin"  : 11, "Wind"  :  "Breeze", "windd"  :   "Dongfeng", "Date"  :  "\/date (1426694400000) \"}, {"Areaid"  :  "101190401", "Year"  :  2015, "Month"  :&NBsp;3, "Day"  : 19, "Beginhour"  : 8, "Endhour"  : 11, "Weather"  :  "Yin", " Weathericon " : " d02 "," Tempmax " : 14," Tempmin " : 11," Wind " : " Breeze "," Windd " : " ne "," Date " : " \/date (1426694400000) \ "}, {" Areaid " : " 101190401 " , "Year"  : 2015, "Month"  : 3, "Day"  : 19, "Beginhour"  : 11, "Endhour"   :  14, "Weather"  :  "Cloudy", "Weathericon"  :  "D01", "Tempmax"  : 16, "Tempmin"  :  14, "Wind"  :  "Breeze", "windd"  :  "Northeast", "Date"  :  "\/date (1426694400000) \"},  {"Areaid"  :  "101190401", "Year"  : 2015, "Month"  : 3, "Day"  : 19, " Beginhour " : 14," Endhour " : 17," Weather " : " clear "," Weathericon " : " d00 "," Tempmax " : 16," Tempmin " : 16," Wind " : " Breeze "," windd " : " Northeast "," Date "  :  "\/date (1426694400\ "}]," Datanow " : {" Areaid " : " 101190401 "," Year " : 2015," Month " :  3, "Day"  : 19, "Beginhour"  : 14, "Endhour"  : 17, "Weather"  :  "Sunny", " Weathericon " : " d00 "," Tempmax " : 16," Tempmin " : 16," Wind " : " Breeze "," Windd " : " ne "," Date " : " \/date (1426694400000) \ "}," Pm25 " : 133}


Share a weather forecast API that can get 7 days and 24 hours, including data such as PM2.5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.