Comparative evaluation of the best 6 free weather API interfaces

Time:2022-5-7

This article starts with:Comparative evaluation of the best 6 free weather API interfaces – karayun

Weather APIIt contains rich weather data, including not only basic data such as real-time temperature, humidity, wind speed and precipitation, but also historical weather data and future weather prediction data,Top level weather API interfaceIt will also include weather disaster warning, air quality index, sunrise, sunset, tide, moon phase related astronomical and meteorological data.The weather API is not difficult to obtain. This tutorial will introduce 6 free weather APIs at home and abroad, and teach you how to build your own weather data kanban.

Free weather API Overview – how to choose a free and stable weather API interface

The weather APIs introduced in this article are all accessed and used by myself. They are six high-quality free weather APIs selected from many weather APIs. These six APIs are based on the business model of free value-added payment, which ensures that free users can use them stably for a long time without worrying about the data source hanging up. In particular, the global weather API introduced in this article is very friendly to free users. Free and open data are more diverse and less limited. I will introduce it in detail in the second half of this article.

This article explains in detail the characteristics and access methods of the following six free weather APIs

  • Gaode weather API – free, stable and minimalist, suitable for the basic needs of weather forecast
  • Xinzhi weather API – free, portable and professional, suitable for the primary needs of weather forecasting
  • Hefeng weather API – free and paid with the same authority, non-commercial unlimited free, including air quality, astronomy and meteorology
  • Openweather – Free 1 million times / month minute real-time forecast, weather cloud map
  • Accuweather – the world’s largest meteorological data service provider, with a long history and accurate data, is the king of weather API
  • Visual crossing – non developer friendly 50 year history meteorological data free call

I Gaode map weather API – stable, free and minimalist

Comparative evaluation of the best 6 free weather API interfaces

Gaude mapThe weather service is for developers who only need stable real-time weather and simple forecast service for the next few days. Compared with other weather APIs introduced in this article, Gaode weather is a little simple, but if your demand for weather is real-time and simple future forecast, Gaode must be a good choice for you. No detours, just give you what you need most.

1. Available resources of Gaode map weather API free version

  • 300000 times / day, 200 times / second concurrent
  • Real time weather forecast
  • Weather forecast for the next four days
  • Maximum and minimum temperature, wind direction and humidity
  • Integrated with Gaode map data, extremely rich location map path data

2. Gaode map weather API access minimalist tutorial

Comparative evaluation of the best 6 free weather API interfaces

https://restapi.amap.com/v3/weather/weatherInfo?key= [your _api _key] 8 & city = 110000 & extensions = all
  • Gaode weather API example: Beijing weather forecast for the next three days (see Gaode weather)City Code)The city code of Beijing is 110000

Comparative evaluation of the best 6 free weather API interfaces

This tutorial uses “karayun” as an example of an interface tool. In karayun, you can directly call Gaode weather API to query the data and return success.

Comparative evaluation of the best 6 free weather API interfaces

You can quickly build your own “weather forecast data Kanban” by simply dragging karayun. The last chapter of this article explains it in detail.

II Know the weather API – free, lightweight and professional

Comparative evaluation of the best 6 free weather API interfaces

Knowing the weatherIt feels light and easy to use as a whole. There is no limit on the number of visits for users of the free version, and they can access unlimited. This has exceeded most domestic weather APIs. The free version can call the weather forecast for the next three days, including two elements: weather and temperature. Put it in the second introduction because Xinzhi weather has room for upgrading compared with Gaode weather mentioned above.

1. Available resources of free version of Xinzhi weather API

  • Permanently free, unlimited access, 20 times / minute
  • Data of 370 major cities in China
  • Live weather data
  • Weather forecast for the next 3 days

API access to extreme weather 2

  • openKnowing the weatherRegistered account
  • Create your product in Xinzhi weather console and get API key

Comparative evaluation of the best 6 free weather API interfaces

https://api.seniverse.com/v3/weather/daily.json?key= [your _api_key] & location = Beijing & language = zh Hans & unit = C & start = - 1 & days = 5
  • API example of knowing weather: weather conditions in Beijing in the next three days

Comparative evaluation of the best 6 free weather API interfaces

The above figure shows the return data of karayun’s successful call to “knowing the weather API”.

This tutorial uses “karayun” as an interface tool for demonstration. Compared with other interface testing tools, karayun can directly complete the construction of background tools while testing the interface.

How to quickly build your own “weather forecast data Kanban” with karayun is explained in detail in the last chapter of this paper.

III Hefeng weather API – free payment with the same authority, non-commercial unlimited free

Comparative evaluation of the best 6 free weather API interfaces

I have to recommend itWindy weather, Hefeng weather API is completely free for non-commercial users without permission, which means that commercial users can read any weather data, and free users can read any weather data. Natural disasters, air quality, extreme weather warning and astronomical information are very rare in the free version of domestic weather API. The free and paid business model of Hefeng weather allows you to use all data indefinitely, and charge after your project grows into a commercial project.

1. Available resources of Hefeng weather Free Edition

  • Non commercial users can access the SDK unlimited 1000 times / day
  • Locate and display the corresponding weather information according to coordinates, city names and grid points
  • Real time, three-day and seven day weather forecast
  • Disaster extreme weather warning information
  • National air quality information
  • Tropical Typhoon Information
  • Astronomical and meteorological data (sunrise, sunset, lunar phase, solar angle, etc.)

2. Wind weather API access minimalist tutorial

Comparative evaluation of the best 6 free weather API interfaces

https://devapi.qweather.com/v7/weather/now?location=101010100&key= [your _api _key]

! [this tutorial uses “karacloud” as an interface tool for demonstration (03-03-kalacloud. JPG)

The above figure shows the return data of karayun’s successful call to “Hefeng weather API”.

This tutorial uses “karayun” as an interface tool for demonstration. Compared with other interface testing tools, karayun can directly complete the construction of background tools while testing the interface.

How to quickly build your own “weather forecast data Kanban” with karayun is explained in detail in the last chapter of this paper.

Next, let’s talk about the global weather API

IV Openweather – 1 million times / month minute real-time weather forecast cloud chart

Comparative evaluation of the best 6 free weather API interfaces

The free files of international weather API service providers will provide more free data than those in China,OpenWeatherAs an old weather information API service provider, it can be said that it has a very good conscience. It not only gives 1 million times / month in the number of calls, but also provides free 60 minute level forecast and 48 hour hourly forecast in the accuracy of forecast. It is very practical for weather sensitive industries.

1. Available resources of openweather Free Edition

  • 1 million calls per month, 60 times / minute
  • Locate and display the corresponding weather information according to coordinates, city names and grid points
  • Real time weather information
  • Weather forecast in 60 minutes
  • Hourly weather forecast within 48 hours
  • 7-day daily weather forecast
  • Historical weather data for the past 5 days
  • Basic weather cloud chart
  • Global air quality information

2. Openweather API access minimalist tutorial

http://api.openweathermap.org/data/2.5/forecast?q=beijing&appid=【Your_APP_Key】
  • weather: current weather forecast
  • q: geographic location (city name)

Comparative evaluation of the best 6 free weather API interfaces

The above figure shows the return data of karayun’s successful call to “openweather API”.

This tutorial uses “karayun” as an interface tool for demonstration. Compared with other interface testing tools, karayun can directly complete the construction of background tools while testing the interface.

How to quickly build your own “weather forecast data Kanban” with karayun is explained in detail in the last chapter of this paper.

V Accuweather – the world’s largest meteorological data service provider with a long history and accurate data

Comparative evaluation of the best 6 free weather API interfaces

AccuWeatherFounded in 1962, Joel was a doctor of meteorology at Penn University. Now accuweather is the largest and most authoritative meteorological data station in the world. Most of the weather query data used by Android machines in the world come from accuweather.

In fact, accuweather is not friendly to free users and has very few calls per day. However, because it is the king of the global weather API and provides accurate, detailed and authoritative weather data, disaster forecast and other data, I still put it in this list. If you are selecting the weather API and use accuweather now or not, I think you must know what the world’s most authoritative and best weather API looks like, The world’s top enterprises, especially roads, aviation and field operations with high weather requirements, will choose accuweather as weather data support.

1. Available resources of accuweather Free Edition

  • Locate and display the corresponding weather information according to coordinates, city names and grid points
  • Real time meteorological data
  • 24-hour historical meteorological data
  • Daily weather forecast for the next five days
  • Hourly forecast within 12 hours
  • Life index forecast in the next 5 days
  • 50 API calls per day

2. Accuweather API access minimalist tutorial

  • openAccuweather developer station, register and activate the account via email
  • openMy APPSPage, create your app and get the API key
    Comparative evaluation of the best 6 free weather API interfaces
  • Read the accuweather API documentation
  • Open the API interface tool. This tutorial uses karayun as an example demonstration. Register and log in to karayun, and fill in the baseurl of accuweather in the “data source”
http://dataservice.accuweather.com/locations/v1/cities/geoposition/search?q=39.9,116.4&language=zh-cn&apikey=【Your_app_key】
  • q: the city name can be written here, or the longitude and latitude can be used to query the location as in this example

Comparative evaluation of the best 6 free weather API interfaces

The above figure shows the return data of karayun’s successful call to accuweather API.

This tutorial uses “karayun” as an interface tool for demonstration. Compared with other interface testing tools, karayun can directly complete the construction of background tools while testing the interface.

How to quickly build your own “weather forecast data Kanban” with karayun is explained in detail in the last chapter of this paper.

Vi Visual crossing – non developer friendly 50 year history meteorological data free call

Comparative evaluation of the best 6 free weather API interfaces

Visual CrossingFacing the academic and enterprise meteorological analysis fields such as data scientists, data analysts and meteorological researchers, that is to say, visual crossing does not assume that users are programmers who can write code like other weather APIs, so it provides an unusually friendly visual meteorological analysis tool for non programmers on its website. For exampleAPI builder, you only need to enter your own requirements. It helps you generate the corresponding API URL. You only need to copy this URL to your API interface tool for easy use.

1. Available resources of visual crossing Free Edition

  • Call 1000 times / day
  • 50 year historical meteorological data
  • 15 day future weather forecast
  • Extreme weather warning
  • Current weather conditions
  • Astronomical and meteorological data

2. Visual crossing API access minimalist tutorial

Comparative evaluation of the best 6 free weather API interfaces

Comparative evaluation of the best 6 free weather API interfaces

  • We can directly enter the location we want to query here, and the website will help us generate the corresponding API
https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/BeiJing?unitGroup=metric&key=【Your_api_key】&contentType=json

Comparative evaluation of the best 6 free weather API interfaces

The above figure shows the return data of karayun’s successful call to “visual crossing API”.

This tutorial uses “karayun” as an interface tool for demonstration. Compared with other interface testing tools, karayun can directly complete the construction of background tools while testing the interface.

How to quickly build your own “weather forecast data Kanban” with karayun is explained in detail in the last chapter of this paper.

VII Use “karayun” to quickly build a weather data Kanban and export weather data to CSV

Karayun is a set of low code development tools. Compared with postman interface testing tools, karayun’s advantage is that while doing API interface testing, it directly builds the background tools. Moreover, developers do not need to know any front-end technology at all. They can quickly build a set of weather forecast data Kanban by simply filling in the API URL and dragging with the mouse, and can share the data Kanban with other partners.

This article takes “using visual crossing weather API friendly to non programmers” to access karayun as an example. The steps of accessing other weather APIs are exactly the same.

Step 1: register the visual crossing account and obtain the API key and API URL

Comparative evaluation of the best 6 free weather API interfaces

After registering and logging in the account, click here to get itWeather conditions in Beijing in the next 15 days

Step 2: register and log in to karayun, and add visual crossing API to “data source”

Comparative evaluation of the best 6 free weather API interfaces

Note: the baseurl of visual crossing API is filled in here, as follows:

https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/

Step 3: create a new application in karayun, create a new query, and select the resource “visual_crossing_api”

Comparative evaluation of the best 6 free weather API interfaces

  • new query
  • Select the visual crossing API resource we just added to the data source
  • Fill in the endpoint section at the HTTP endpoint
beijing?unitGroup=metric&contentType=json&key=【Your_app_key】

Step 4: get weather API test interface

Comparative evaluation of the best 6 free weather API interfaces

Click “run and preview”, and you can see the successful value returned by the weather API in the pop-up box.

Step 5: drag the appropriate component from the “component list” and map the data to the component

Comparative evaluation of the best 6 free weather API interfaces

  • Table data of forecast in the next 15 days:
{{VisualCrossingAPI.data.days}}

Note: the visual crossing API reads the days data in the API for the query we created in step 3

  • Daily weather forecast
###Maximum temperature: {{table1. Selectedrow. Data. Tempmax}}
###Minimum temperature: {{table1. Selectedrow. Data. Tempmin}}
###Wind speed: {{table1. Selectedrow. Data. Windspeed}}
###Wind: {{table1. Selectedrow. Data. Windgust}}
###Sunrise time: {{table1. Selectedrow. Data. Sunrise}}
###Sunset time: {{table1. Selectedrow. Data. Sunset}}

Note: table1 refers to the table name of “forecast for the next 15 days”. If the mouse selects which column, the weather forecast of which column will be displayed on that day.

  • Time sharing details table data:
{{table1.selectedRow.data.hours}}

Note: table1 refers to the table name of “forecast for the next 15 days”. The mouse selects which column to display the 24-hour time-sharing forecast of the current day

Step 6: export weather forecast data to CSV file

Comparative evaluation of the best 6 free weather API interfaces

Sometimes, the data we get through weather API needs to be imported into other software or downloaded locally for data analysis, or sent to partners for use. At this time, you don’t have to worry about the export data format, Chinese garbled code and other problems. Just drag and drop an “Export button” in the karayun group database.

Karayun has a built-in “Export button”. Just drag a button to form a canvas, and you can export data to CSV / Excel / JSON format files with one click.

Completion: use karayun to build a weather data Kanban in six simple steps

Comparative evaluation of the best 6 free weather API interfaces

After skilled use, such a data Kanban can be built in up to 5 minutes by using karayun, and can also be shared with your friends.

More Kara cloud usage tutorials are available atKarayunCheck the official website.

Extended reading:

If my article is helpful to you, please like it before you go. Any questions are welcome to communicate with the comment area.