🌐
Reddit
reddit.com › r/learnpython › best weather api
r/learnpython on Reddit: Best Weather API
August 24, 2023 - I found weatherapi.com easy to use, but they limit free API calls to 3 days of data. I wanted to use NOAA's API, but couldn't make the returns usable before the project due date. Maybe you'll have better luck. ... I went to two python courses and both used https://openweathermap.org in their lessons. ... The best weather api that I have ever used is easily Weatherbit.
🌐
Meteosource
meteosource.com › blog › weather-api-for-python
The Best Weather API for Python
The final verdict was easy to make. From those high-quality weather data providers we have selected, only Meteosource provides a Python wrapper library called pymeteosource that makes it very easy to use the weather API in your Python applications.
Discussions

Python Weather API - Stack Overflow
How do I import weather data into a Python program? ... The OpenWeatherMap service provides free weather data and forecast API suitable for any cartographic services like web and smartphones applications. Ideology is inspired by OpenStreetMap and Wikipedia that make information free and available ... More on stackoverflow.com
🌐 stackoverflow.com
November 3, 2014
API for weather forecast data gathering
Hi, I am trying to get data from a weather api, actually the website is called “weatherapi.com” I want to get max temperature and min temperature for 3 days in the future. The api allows you to query a forecast for 3 days. I will paste what the api sends back. More on discuss.python.org
🌐 discuss.python.org
0
0
February 16, 2024
Is there a free and accurate weather API
I use VisualCrossing for work and we use the paid edition but it says you can use the free tier without a credit card. More on reddit.com
🌐 r/learnprogramming
8
1
December 29, 2024
Best weather forecast API
The National Weather Service offers a free API, I don't think its the best but it might be the cheapest (else maybe a free tier somewhere else is better). I built on it for a "get current temp" chatbot feature and it's been ok so far (though when I was researching I read it can be spotty/unreliable). More on reddit.com
🌐 r/webdev
15
9
July 28, 2024
🌐
Open-Meteo
open-meteo.com
🌤️ Free Open-Source Weather API | Open-Meteo.com
Whether you're using Python, R, Julia, PHP, JavaScript, React, Flutter, Java, or any other programming language, our APIs are designed to work effortlessly with your application. We're constantly evolving and expanding. We're dedicated to providing you with the latest features, weather variables, ...
🌐
PyPI
pypi.org › project › python-weather
python-weather · PyPI
A free and asynchronous weather Python API wrapper made in Python, for Python.
      » pip install python-weather
    
Published   Jan 23, 2026
Version   2.1.2
🌐
Medium
medium.com › @ajeet214 › 9-free-weather-apis-for-ai-data-projects-6bfc66022e46
9 Free Weather APIs for AI & Data Projects | by Ajeet Verma | Medium
May 13, 2025 - Best for: Fast access to free historical weather — no strings attached. ✅ Free and open-source · ❌ No API key required · 🌍 Global coverage · 📊 JSON output format · 📅 Supports time-specific queries · Example: https://archive-api.open-meteo.com/v1/archive?latitude=52.52&longitude=13.41&start_date=2022-01-01&end_date=2022-01-01&hourly=temperature_2m · 🔗 Docs · Best for: Long-term historical data with Python integration.
🌐
Meteomatics
meteomatics.com › home › weather api › python weather api
Python Weather API | Meteomatics
December 18, 2025 - Meteomatics offers the best weather API for Python, thanks to its exceptional Python connector, available to all users. Keep reading to discover how to use it.
🌐
Meteomatics
meteomatics.com › home › weather api › best weather apis 2026
Best Weather APIs 2026: a Comparison | Meteomatics
January 13, 2026 - 09/06/2023 / Meteomatics offers the best weather API for Python, thanks to its exceptional Python connector, available to all users for free.
🌐
OpenWeatherMap
openweathermap.org › api
Weather API
Explore OpenWeather's vast range of weather APIs including the versatile One Call API 3.0. Ideal for both beginners and professionals, our APIs offer current weather, minute-by-minute forecasts, historical data archives, and future predictions.
Find elsewhere
🌐
Temok
temok.com › blog › python-weather-api
Python Weather API: How To Use It For Precise Forecasts
November 24, 2025 - Since the need for accurate weather data increases in sectors of businesses and sciences, the skill of managing Python weather API becomes beneficial.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-find-current-weather-of-any-city-using-openweathermap-api
Find current weather of any city using OpenWeatherMap API in Python - GeeksforGeeks
July 11, 2025 - The OpenWeatherMap is a service that provides weather data, including current weather data, forecasts, and historical data to the developers of web services and mobile applications.
Top answer
1 of 1
70

Since Google has shut down its weather API, I suggest to check out OpenWeatherMap:

The OpenWeatherMap service provides free weather data and forecast API suitable for any cartographic services like web and smartphones applications. Ideology is inspired by OpenStreetMap and Wikipedia that make information free and available for everybody. OpenWeatherMap provides wide range of weather data such as map with current weather, week forecast, precipitation, wind, clouds, data from weather Stations and many others. Weather data is received from global Meteorological broadcast services and more than 40 000 weather stations.

It's not a Python library, but it's super easy to use, because you can get results in JSON format.

Here's an example using Requests:

>>> from pprint import pprint
>>> import requests
>>> r = requests.get('http://api.openweathermap.org/data/2.5/weather?q=London&APPID={APIKEY}')
>>> pprint(r.json())
{u'base': u'cmc stations',
 u'clouds': {u'all': 68},
 u'cod': 200,
 u'coord': {u'lat': 51.50853, u'lon': -0.12574},
 u'dt': 1383907026,
 u'id': 2643743,
 u'main': {u'grnd_level': 1007.77,
           u'humidity': 97,
           u'pressure': 1007.77,
           u'sea_level': 1017.97,
           u'temp': 282.241,
           u'temp_max': 282.241,
           u'temp_min': 282.241},
 u'name': u'London',
 u'sys': {u'country': u'GB', u'sunrise': 1383894458, u'sunset': 1383927657},
 u'weather': [{u'description': u'broken clouds',
               u'icon': u'04d',
               u'id': 803,
               u'main': u'Clouds'}],
 u'wind': {u'deg': 158.5, u'speed': 2.36}}

And here's an example using PyOWM, a Python wrapper around the OpenWeatherMap web API:

>>> import pyowm
>>> owm = pyowm.OWM()
>>> observation = owm.weather_at_place('London,uk')
>>> w = observation.get_weather()
>>> w.get_wind()
{u'speed': 3.1, u'deg': 220}
>>> w.get_humidity()
76

The official API documentation is available here.

To get the API key sign up to open weather map here

🌐
Weatherbit Blog
blog.weatherbit.io › python-weather-api
Python Weather API - Weatherbit Blog
February 28, 2024 - Python Weather API is a Python library that provides a convenient and user-friendly way to interact with weather data. It abstracts away the complexities of working directly with weather APIs, making it easier for developers to integrate weather information into their applications.
🌐
GitHub
github.com › null8626 › python-weather
GitHub - null8626/python-weather: A free and asynchronous weather API wrapper made in python, for python. · GitHub
The measuring unit used defaults to the metric system (celcius, km/h, etc.) async with python_weather.Client(unit=python_weather.IMPERIAL) as client: # Fetch a weather forecast from a city. weather = await client.get('New York') # Fetch the temperature for today. print(weather.temperature) # Fetch weather forecast for upcoming days.
Starred by 113 users
Forked by 31 users
Languages   Python
🌐
RapidAPI
rapidapi.com › blog › weather-api-python
Estimate Weather Forecasts (OpenWeatherMap) [Python]
September 3, 2020 - Rapid Blog, developers #1 source for API tutorials, industry news, and more. One API key. One dashboard.
🌐
Visual Crossing
visualcrossing.com › home › the easiest weather api
The Easiest Weather API | Visual Crossing
May 15, 2025 - Simply follow our tutorials and sample code, and get started with entirely free access. Our weather data API allows 1000 completely free weather records per day. ... RESTful APIs are ideal for integration in any programming language such as Java, Google Go, VB.NET C#, Python & Perl.
🌐
Tomorrow.io
tomorrow.io › home › weather api
Free Weather API - 60+ Data Layers, 99.9% Uptime | Tomorrow.io
August 13, 2025 - Tomorrow.io’s free Weather API combines traditional weather data sources with new sensing technologies and proprietary modeling to deliver best-in-class weather data, with hyperlocal observations, ground-level tracking, up-to-date data delivery, and by-minute forecasting.
🌐
PyPI
pypi.org › project › weather-api
weather-api · PyPI
This is the new API for weather forecasting. You must have Python 2 >=2.7.9 or Python 3 >=3.4 installed on your system to install and run this SDK. This SDK package depends on other Python packages like nose, jsonpickle etc. These dependencies are defined in the requirements.txt file that comes ...
      » pip install weather-api
    
Published   Dec 17, 2020
Version   1.0
🌐
Python.org
discuss.python.org › python help
API for weather forecast data gathering - Python Help - Discussions on Python.org
February 16, 2024 - Hi, I am trying to get data from a weather api, actually the website is called “weatherapi.com” I want to get max temperature and min temperature for 3 days in the future. The api allows you to query a forecast for 3 …
🌐
Tomorrow.io
tomorrow.io › home › how to create daily forecasts with a python weather api
How To Create Daily Forecasts with A Python Weather API
July 24, 2024 - Learn how to create simple daily weather forecasts in just a few steps and a few lines of code with Python using a weather API.
🌐
Medium
dimasyotama.medium.com › build-an-ai-powered-weather-api-with-python-flask-openweathermap-and-gemini-8e5cbf87af5d
Build an AI-Powered Weather API with Python, Flask, OpenWeatherMap, and Gemini | by Dimas Yoga Pratama | Medium
May 8, 2025 - In this tutorial, we’ll do just that! We’ll create a Python Flask API that fetches weather data from OpenWeatherMap and then uses Google’s powerful Gemini AI to generate insightful summaries.