Skip to main content

Download Meteorological Data from OPEN-METEO API (

Project description



Download Meteorological Data from OPEN-METEO API (

Open-Meteo collaborates with National Weather Services providing Open Data with 11 to 2 km resolution. Our high performance APIs select the best weather model for your location and provide data as a simple JSON API.

APIs are free without any API key for open-source developers and non-commercial use. You can embed them directly into your app.

What is it?

openmeteopy is a client Python wrapper library for Open-Meteo web API. It allows quick and easy consumption of OM data from Python applications via a simple object model and in a human-friendly fashion.

openmeteopy runs on Python 3.6+.


Options input parameters

  1. latitude - Latitude (float)
  2. longitude - Longitude (float)
  3. windspeed_unit - wind speed unit (string, optional)
  4. precipitation_unit - precipitation amount units (string, optional)
  5. timeformat - If format unixtime is selected, all time values are returned in UNIX epoch time in seconds. Please note that all time is then in UTC! For daily values with unix timestamp, please apply utc_offset_seconds again to get the correct date. (string, optional)
  6. timezone - If timezone is set, all timestamps are returned as local-time and data is returned starting at 0:00 local-time. Any time zone name from the time zone database is available under . (string, optional)
  7. past_days - If past_days is set, yesterdays or the day before yesterdays data are also returned.


git clone
cd openmeteopy-main/
pip3 install .


Download Meteorological data

from openmeteo_py.Hourly import Hourly,Daily,Options,OWmanager

# Latitude, Longitude for Rabat,Morocco
latitude = 33.9842
longitude = -6.8675

hourly = Hourly()
daily = Daily()
options = Options(latitude,longitude)

mgr = OWmanager(options,

# Download data
meteo = mgr.get_data()


_Contributors (coding, testing, packaging, reporting issues) are welcome!

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openmeteo_py-0.0.1.tar.gz (13.9 kB view hashes)

Uploaded source

Built Distribution

openmeteo_py-0.0.1-py3-none-any.whl (14.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page