China weather forecast Data API Collection

Source: Internet
Author: User

Weather forecast only for the day and the next few days of data interface, if you want to know the historical weather, I have not found OH.

There are three weather data API interfaces for the Central Meteorological Bureau:

1:http://www.weather.com.cn/data/sk/101010100.html

[Mw_shl_code=java,true] {"Weatherinfo": {"City": "Beijing", "Cityid": "101010100", "temp": "$", "WD": "North Wind", "WS": "Level 2", "SD": "19%", "WSE": "2", "Time": " 16:05 "," Isradar ":" 1 "," Radar ":" JC_RADAR_AZ9010_JB "}}[/mw_shl_code]

2:http://www.weather.com.cn/data/cityinfo/101010100.html

[Mw_shl_code=java,true] {"Weatherinfo": {"City": "Beijing", "Cityid": "101010100", "Temp1": "24 ℃", "Temp2": "11 ℃", "Weather": "Thundershowers to Cloudy ", "img1 ":" D4.gif "," Img2 ":" N1.gif "," Ptime ":" 11:00am "}}[/mw_shl_code]

3:http://m.weather.com.cn/data/101110101.html

{"Weatherinfo": {"City": "Xi ' an", "city_en": "Xian", "date_y": "March 4, 2014", "date": "", "Week": "Tuesday", "Fchh": "One", "Cityid": "101110101", "Temp1": "13℃~3℃", "Temp2": "8℃~2℃", "Temp3": "8℃~3℃", "Temp4": "7℃~1℃", "TEMP5": "13℃~3℃", "TEMP6": "14℃~4℃" , "tempF1": "55.4℉~37.4℉", "tempF2": "46.4℉~35.6℉", "tempF3": "46.4℉~37.4℉", "tempF4": "44.6℉~33.8℉", "tempF5": "55.4℉~ 37.4℉ "," tempF6 ":" 57.2℉~39.2℉ "," Weather1 ":"Cloudy"," Weather2 ":"Light Rain"," Weather3 ":" Yin Turn Light Rain "," weather4 ":" Drizzle Turn yin "," weather5 ":" Cloudy "," Weather6 ":" Cloudy "," IMG1 ":" 1 "," Img2 ":" "," IMG3 ":" 7 "," IMG4 " : "Img5": "2", "Img6": "7", "Img7": "7", "Img8": "2", "Img9": "1", "IMG10": "", "img11": "1", "Img12": "The", "Img_single ":" 1 "," Img_title1 ":" Cloudy "," Img_title2 ":" Cloudy "," img_title3 ":" Drizzle "," img_title4 ":" Drizzle "," img_title5 ":" Yin "," img_title6 ":" Drizzle "," img_title7 ":" Light Rain "," Img_title8 ":" Yin "," img_title9 ":"Cloudy"," Img_title10 ":" Cloudy "," Img_title11 ":" Cloudy "," img_title12 ":" Cloudy "," Img_title_single ":" Cloudy "," Wind1 ":" Dongfeng is less than 3 levels "," Wind2 ":" Dongfeng less than 3 "," Wind3 ":" Dongfeng is less than 3 "," Wind4 ":" Dongfeng less than 3 "," Wind5 ":" Dongfeng is less than 3 "," Wind6 ":" Dongfeng is less than 3 "," FX1 ":" Dongfeng "," FX2 ":" Dongfeng "," FL1 ":" Less than 3 levels " , "FL2": "Less than 3 levels", "FL3": "Less than 3 levels", "FL4": "Less than 3 levels", "FL5": "Less than 3 levels", "fl6": "Less than 3", "Index": "Cold", "index_d": cold weather, recommended cotton clothing,Down jacket, leather jacket PlusSweaterand other winter clothing. The frail and infirm are suitable for thick coat, winter coat or thick down jacket. "," index48 ":" Colder "," index48_d ":" suggest a thick coat and sweater and other clothing. " The frail and infirm are advised to coat, coat and cardigan. "," INDEX_UV ":" Weakest "," INDEX48_UV ":" Weakest "," INDEX_XC ":" Not Appropriate "," INDEX_TR ":" Appropriate "," Index_co ":" More Comfortable "," St1 ":" 3 "," St2 ":" "," ST3 " ":" 6 "," St4 ":" 2 "," ST5 ":" 9 "," St6 ":" 3 "," INDEX_CL ":" More Appropriate "," Index_ls ":" Basic Fit "," Index_ag ":" Very easy to send "}}


This data is much richer than the above two, only a pity, unstable, and since March 4 this year the data is not updated, the explanation is to go to smart weather (http://smart.weather.com.cn/) to apply for trial free API, but so-called free, Also only tentative free, later will not charge is unknown.

Integrated three API, the first two data is too thin, but also is real-time weather, no future days of weather data, can not meet the demand, the previous general third also can not be used. By the way, the API of the China Meteorological Bureau has free and charge mode, the number of free is limited, cannot afford. If you do not have the money, you have to spend money directly to know the weather SDK is not more convenient, but it is not cheap. Go see the price, http://www.thinkpage.cn/weather/pricing.aspx.

Do not lose heart, always have the ability to use, or so many apps how the data

Http://www.weather.com.cn/data/zs/101010100.html

China Perpetual Calendar:

Http://wthrcdn.etouch.cn/weather_mini?city= Beijing
Get weather data by city name, JSON data
http://wthrcdn.etouch.cn/weather_mini?citykey=101010100
Get weather data by City ID, JSON data


Jinshan Navigation:

Http:\\pm25.moji001.com\aqi\index-1623.html

Millet:

Http://weatherAPI. market.xiaomi.com/wtr-v2/weather?cityid=101121301

Central Weather Forecast:

Http://weather.51wnl.com/weatherinfo/GetMoreWeather?cityCode=101040100&weatherType=0

Http://weather.51wnl.com/weatherinfo/GetMoreWeather?cityCode=101040100&weatherType=1

Other Address:

http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100
Get weather data by City ID, XML file data,
There will be <error> nodes when errors occur
Http://wthrcdn.etouch.cn/WeatherApi?city= Beijing

China weather forecast Data API Collection

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.