Learn R Programming

openmeteo

An Open Meteo SDK for R

openmeteo provides functions for accessing the Open-Meteo weather API, enabling the desired weather data or forecasts to be retrieved in a tidy data format. An API key is not required to access the Open-Meteo API.

Install and load with: install.packages("openmeteo") library(openmeteo)
Getting current weather for a location is as easy as: weather_now('tokyo')
Explore the documentation with ?openmeteo

Open-Meteo provides several API endpoints through the following functions:

Core Weather APIs

  • weather_forecast() - retrieve weather forecasts for a location
  • weather_history() - retrieve historical weather observations for a

location

  • weather_now() - simple function to return current weather for a

location

  • weather_variables() - retrieve a shortlist of valid forecast or

historical weather variables provided

Other APIs

  • geocode() - return the co-ordinates and other data for a location name
  • climate_forecast() - return long-range climate modelling for a location
  • river_discharge() - return flow volumes for the nearest river
  • marine_forecast() - return ocean conditions data for a location
  • air_quality() - return air quality data for a location

Please review the API documentation at Open-Meteo.com for details regarding the data available, its types, units, and other caveats and considerations.

Please feel free to raise any issues / pull requests if your use case is not supported.

Copy Link

Version

Install

install.packages('openmeteo')

Monthly Downloads

530

Version

0.2.4

License

GPL (>= 3)

Maintainer

Tom Pisel

Last Published

October 25th, 2023

Functions in openmeteo (0.2.4)

geocode

Geocode a location using the Open-Meteo geocoding API
weather_now

Retrieve Current Weather from the Open-Meteo API
air_quality

Retrieve air quality data from the Open-Meteo API
weather_history

Retrieve historical weather data from the Open-Meteo API
marine_forecast

Retrieve marine conditions data from the Open-Meteo API
weather_variables

Retrieve valid hourly and daily weather variables
climate_forecast

Retrieve climate change forecasts from the Open-Meteo API
weather_forecast

Retrieve weather forecasts from the Open-Meteo API
river_discharge

Retrieve river discharge data from the Open-Meteo API
openmeteo

openmeteo: retrieve weather data from the Open-Meteo API