The meteorological big data platform is affiliated to Beijing Tianyi Technology Co., Ltd. It is the official carrier of China Weather Network to provide meteorological data product services through API interface for universities, research institutes, users and individual developers in various industries.With the gradual improvement of the meteorological big data platform, more abundant meteorological data will be provided to the majority of users to meet the different needs of different users.Through the customized data of the meteorological big data platform, users can freely select more than 40000 county and township stations nationwide, 180000 city stations worldwide, and freely select any element, forecast duration, and update frequency of the six major meteorological products, which is convenient and intuitive.
The meteorological big data platform has several packages for the public to choose from. At present, there are free packages, domestic packages, domestic travel packages, foreign packages, foreign travel packages. The Chinese weather and meteorological big data platform has more different packages to serve the public.Since its operation, the meteorological big data platform has successively established partnerships with well-known domestic enterprises. Among them, Tencent, Qihoo 360, Baidu and other domestic first-line Internet companies have long-term business cooperation, as well as providing weather data support for new companies, such as Ali Mama, Go Skiing GOSKI and so on.The meteorological big data platform is the preferred development platform for ordinary weather application enthusiasts, and it is also a good choice for all walks of life to explore weather value, improve service quality, and promote the better development of the industry.
Product features
The data categories involved in the meteorological big data platform include forecast, live data, early warning, air quality, index, graphic products, grid data, etc.The use of data sources is simple, convenient and cross platform.
Application scenarios
The website national urban weather forecast, weather forecast service APP application, TV box weather forecast application, game scene and weather combination, agricultural disaster prevention, insurance industry and weather combination, medical units and disease prevention and control center and weather service combination improve and optimize the service quality, and single car travel application service users travel.
Service telephone
Business phone: 010-68408994
Technical support telephone: 010-58991542
instructions
Use process
Register and apply for meteorological big data platform account
Log in to the official website of the meteorological big data platformhttp://www.weatherdt.comClick the "Register" button in the upper right corner to register and activate the account, as shown in the following figure:
developer's guide
Interface URL
http://api.weatherdt.com/common/?area=Station table ID&type=weather data category&key=741c428fc7116c6f718cb14f2dda49sm
Site assembly rules
http://api.weatherdt.com/common/?area=Station table ID | Station table ID | Station table ID&type=weather data category&key=741c428fc7116c6f718cb14f2dda49sm
Single site
Request URL:http://api.weatherdt.com/common/?area=Station table ID&type=weather data category&key=741c428fc7116c6f718cb14f2dda49sm
multistation
The site type can only be one of four types (Chinese sites, foreign sites, tourist attractions, airports), and can't be mixed. You can only ask for an error
Number of stations N (2<=N<=20), out of range error report
Request URL:http://api.weatherdt.com/common/?area=areaId|AreaId&type=weather data category&key=741c428fc7116c6f718cb14f2dda49sm
Element assembly rules
Single site request can request all data categories and all elements(Recommended, concise)
Station numbers. Multiple stations are separated by |. Up to 20 station numbers are supported
type
must
Type=forecast | alarm | air | observe or a single data category
Request data type, use | to separate multiple categories
key
must
741c428fc7116c6f718cb14f2dda49sm
Key, corresponding to the order
Interface error code table
code
Error description
remarks
CC1000
Parameter error
Check parameter spelling
CC1003
Order Expiration
Please purchase the service again
CC1004
Access times exceeded
Please access the interface reasonably
CC1005
Too many sites error
Please visit less than 20 sites in a single visit
CC1006
Provider path error
Provider path error
CC1100
connection timed out
Please visit later
CC1101
Key error
Check key
CC1102
No response from the system
Please visit later
CC1200
Request invalid site error
Check request site
CC1201
Error requesting too many sites and elements
Check the number of stations or elements
CC1300
Request element format error
Check feature request format
CC1301
Request Uncustomized Type Data
Check custom type data
CC1302
Request type customization days exceeded error
Check the customized days of the request type
CC1303
Request multi site and index multi element errors
Check the number of stations or index elements
Interface returns JSON example
{
"Air": {//Air quality
"101010100": {//Station No
"2001006": {//Data category
"006": "2.0",//SO2
"007": "32.0",//CO
"003": "65.0",//NO2
"004": "2.0",//O3
"000": "201611041000",//Update time
"001": "290.0",//PM2.5
"005": "166.0",//PM10
"002": "290.0"//AQI
}
}
},
"Alarm": {//Alert
"101010100": {//Station No
"1001003": [//data category
{
"006": "02",//Alert level number
"010": "201611032200545111 Fog yellow",//Warning information
"008": "2016-11-03 22:00",//Alert release time
"011": "10101-20161103220000-1202. html",//The jump address of the weather website
"009": "The Beijing Meteorological Observatory issued a yellow fog warning at 22:00 on the 3rd. It is estimated that there will be fog in the city from now to around 10:00 on the 4th. The visibility in some areas is less than 500 meters. Please take precautions."//The content of the warning release
"001": "Beijing",//The provincial name of the alert issuing unit
"005": "Fog",//Alert category name
"004": "12",//Alert category number
"003": "",//The county name of the alert publishing company
"007": "yellow",//Alert level name
"002": ""//The city level name of the alert publishing company
},
{
"006": "03",//Alert level number
"010": "201611031750545111 haze orange",//warning information
"008": "2016-11-03 17:50",//Alert release time
"011": "10101-20161103175000-1303. html",//The jump address of the weather website
"009": "At 17:50 on the 3rd, the Beijing Meteorological Observatory updated and issued an orange haze warning. It is expected that moderate to severe haze will occur in the city from the night of the 3rd to the 4th, with low visibility. Please take precautions."//The content of the warning release
"001": "Beijing",//The provincial name of the alert issuing unit
"005": "Haze",//Alert category name
"004": "13",//Alert category number
"003": "",//The county name of the alert publishing company
"007": "orange",//Alert level name
"002": ""//The city level name of the alert publishing company
}
]
}
},
"Forecast": {//forecast
"24h": {//Every 24 hours
"101010100": {//Station No
"1001001": [//data category
{
"006": "0",//Night wind
"008": "0",//Night direction
"007": "0",//daytime direction
"003": "15",//daytime temperature
"004": "4",//Night temperature
"001": "53",//daytime weather phenomenon code
"005": "0",//daytime wind
"002": "53"//Weather phenomenon code at night
},
{
"006": "0",//Night wind
"008": "0",//Night direction
"007": "0",//daytime direction
"003": "17",//daytime temperature
"004": "3",//Night temperature
"001": "01",//daytime weather phenomenon code
"005": "0",//daytime wind
"002": "02"//Weather phenomenon code at night
},
{
"006": "0",//Night wind
"008": "0",//Night direction
"007": "0",//daytime direction
"003": "10",//daytime temperature
"004": "4",//Night temperature
"001": "02",//daytime weather phenomenon code
"005": "0",//daytime wind
"002": "07"//Weather phenomenon code at night
}
],
"000": "201611040800"//Update time
}
}
},
"Observe": {//Live
"101010100": {//Station No
"1001002": {//Data category
"006": "0",//Current precipitation (unit: mm)
"007": "1004",//Current air pressure (in hPa)
"003": "1",//Current wind force (unit: level, no transcoding)
"004": "2",//Current wind direction number
"000": "10:25",//Live release time
"005": "79",//Current humidity (unit:%)
"002": "7"//Current temperature (unit: ℃)
}
}
},
"Index": {//Index
"24h": {//Every 24 hours
"101010100": {//Station No
"1001004": [//data category
{
"002": {
"002002": "colder",//index grade
"002003": "It is recommended to wear thick coats and sweaters. The elderly and the infirm should wear coats and woolen coats and sweaters.",//Index interpretation
"002001": "Clothing index"//Index name
},
"000": "20161104",
"005": {
"005001": "Traffic index",//index name
"005003": "The weather is good, but the visibility is very low, the traffic meteorological conditions are very poor, the vehicles drive slowly, and the travel should be minimized.",//Index interpretation
"005002": "Very poor"//Index grade
},
"004": {
"004001": "Cold Index",//Index name
"004003": "The temperature difference between day and night is large, and the air humidity is high, so it is easy to catch a cold. Please pay attention to the appropriate increase or decrease of clothing, and strengthen self-protection to avoid catching a cold.",//Definition of index
"004002": "vulnerable"//Index grade
}
},
{
"002": {
"002002": "colder",//index grade
"002003": "It is recommended to wear thick coats and sweaters. The elderly and the infirm should wear coats and woolen coats and sweaters.",//Index interpretation
"002001": "Clothing index"//Index name
},
"000": "20161105",
"005": {
"005001": "Traffic index",//index name
"005003": "The weather is good, the road surface is dry, the traffic weather conditions are good, and the vehicles can run normally.",//Index interpretation
"005002": "Good"//Index grade
},
"004": {
"004001": "Cold Index",//Index name
"004003": "The temperature difference between day and night is very large, and colds are easy to occur. Please pay attention to the appropriate increase or decrease of clothing, and strengthen self-protection to avoid colds.",//Index definition
"004002": "vulnerable"//Index grade
}
},
{
"002": {
"002002": "colder",//index grade
"002003": "It is recommended to wear thick coats and sweaters. The elderly and the infirm should wear coats and woolen coats and sweaters.",//Index interpretation
"002001": "Clothing index"//Index name
},
"000": "20161106",
"005": {
"005001": "Traffic index",//index name
"005003": "On cloudy days, the road is dry, the traffic weather conditions are good, and the vehicle can run normally.",//Index interpretation
"005002": "Good"//Index grade
},
"004": {
"004001": "Cold Index",//Index name
"004003": "Various meteorological conditions are suitable, there is no obvious cooling process, and the probability of colds is low."//Index interpretation
"004002": "seldom issued"//Index grade
}
}
],
"000": "201611040800"//Update time
}
}
}
}
Data encoding
Product Category Code Table
code
Chinese name
English name
001
prediction
forecast
002
Live
observe
003
early warning
alarm
004
index
index
006
air quality
air
Data frequency table
data type
update frequency
Conventional forecast
Three times a day at 08:00, 12:00 and 18:00
Live
Update every hour
early warning
It is updated irregularly. In order to ensure the timeliness of early warning, it is recommended that the procedure should be rotated every 10 minutes after starting
A: In User Center [Order Management], [My Order], [Interface Details], click the link to download the purchased station number, elements, and instructions on a new page.
Q: Can I renew or add elements and sites to the original order?
A: User center [Order Management], [My Order], click order change or order renewal, add elements and sites can only use the order change function
Q: Can invoices be provided?
A: Invoices can be provided.When submitting an order, please submit the invoice information at the same time.If no invoice information is submitted at the time of purchase, it will be deemed as waiver of the right to issue invoices, and no invoice of any nature will be issued later.If the invoice is issued by an individual user, the "taxpayer identification number" shall also be provided if it is a company name. If it is not uploaded, the invoice cannot be issued.If a 'VAT invoice' is to be issued, the payment amount must be more than 1000 yuan.The invoicing cycle of this website: the users of the previous calendar month will invoice from the 10th to the 20th of each month, and the invoicing cycle of the next month is needed to complete the transaction in this month.The user can log in to the user center to inquire about the mailing of invoices.
Q: Why does the forecast updated at night have no daytime data?
A: The day has passed, and it is meaningless to forecast the day again when updating the forecast at night.If necessary, users can cache data in the daytime.
Q: Consultation on data beyond the sales scope?
A: If you need data that has not been launched on the platform, you can call 010-68408994 for consultation.
Q: Can the data purchased from the smart weather service cloud platform be resold?
A: According to the electronic contract, the data provided by the platform cannot be sold for the second time without authorization.
Q: How to get the weather phenomenon picture of the weather interface?
A: You can download it from the Help Center - Download icon.
Q: What is the difference between the interface data and the data displayed on the China Weather Network during the test?
A: First, please confirm whether the data of the same site, the same time and the same update time.The data provided by the smart weather service cloud platform and the data from China Weather Network are the same data source.If you have any questions, please call the after-sales support hotline 010-58991542.
Q: How to view your own key?
A: There are two ways: one is to view it on Order Management, My Order and Interface Details in the user center;One is [Order Management], in the product name column of [My Order], click the domestic site, and the details will pop up to see the key.
This document is used to describe the downloading of authorized data by cloud platform users after they are authorized.
Download range
Users can download all files from the date of authorization after they are authorized by a certain type of data.
File download
Download Preparation
Log in through the user login buttonUser Center - Usage Record, find the aid and akey of the current account, and find the code bucketName of this type of data in the authorized data list.
Download process
Note: This platform supports two ways to download files, one is interface calling, the other is shell script execution.Download source code
1、 Interface process demonstration:
1. Open the downloaded source code package ->Interface calling method ->FlieDownloadProcess.java, and import the associated jar package
2. Modify the variable of main method in java file
① Aid: the user's aid;
② Akey: user's akey;
③ BucketName: the user's authorized data code;
④ DownloadPathPre: the target path of the file download.
3. Execute the main method of FlieDownloadProcess.java to obtain the downloaded file
//2. Obtain an example of downloadable file information. The return type is JSONArray, which may be null. Null value judgment is required to avoid null pointers