DEV Community

Cover image for 5 Weather APIs for a Rainy Day Project ☔️
Kera Cudmore
Kera Cudmore

Posted on • Updated on • Originally published at codu.co

5 Weather APIs for a Rainy Day Project ☔️

Weather API's are one of the most common APIs used by developers to get to grips with making calls to an API and working with the data returned. I've rounded up 5 weather related API's below for you to give a try on your next project.

Weatherstack

🔐 API Key Required? - Yes

💰 Cost - Free

The Weatherstack API provides weather data for any location in the world. With real-time updates, accurate forecasts, and historical weather information. It also supports a number of languages - including Python, JavaScript, Ruby, and PHP. Display current weather conditions, historical data, or future forecasts with this API. Data is returned in a lightweight JSON format.


Open-Meteo

🔐 API Key Required? - No

💰 Cost - Free

An open-source weather API with free access for non-commercial use. It provides real-time, up-to-date data such as temperature, wind speed, precipitation, humidity, atmospheric pressure, and much more. It also supports a number of languages - including Python, Ruby, and JavaScript.


Weather API

🔐 API Key Required? - Yes

💰 Cost - Free

Provides real-time and historical weather data for thousands of locations worldwide and several weather parameters: temperature, precipitation, wind speed, pressure to name a few. Data can be returned for different time intervals: hourly, daily and weekly. It also supports a number of languages - including Python, PHP and JavaScript. The free plan allows up to 1 million calls per month.


OpenUV

🔐 API Key Required? - Yes

💰 Cost - Free

Provides real-time UV Index, ozone level, and maximum UV exposure time based on location input. You can also access historical data on UV levels. It supports several popular languages - including Python, Java, and Ruby.


Weatherbit

🔐 API Key Required? - Yes

💰 Cost - Free

Provides data for several weather parameters including temperature, precipitation, wind speed, humidity and more based on location input. It supports several popular languages - including Python and Java. The free tier provides 7 Day/Daily forecasts and current weather observations for any location from over 50,000 stations worldwide.


Have you ever used a weather API? If so I'd love to see your project - feel free to share in the comments below 😊

Top comments (0)