Introduction

Weather forecasts and reanalysis from the major NWP models, through one REST API.

The Rebase Weather API gives you programmatic access to numerical weather prediction (NWP) forecasts and reanalysis datasets through a small set of HTTP endpoints. You query by model, location, variables and time, and receive the data as JSON (pandas- or xarray-shaped) or as a NetCDF file.

  • Base URL: https://api.rebase.energy
  • Current version: v2 (all paths are under /weather/v2/)
  • Auth: an API key in the Authorization header (see Authentication)

What you can query

  • Forecasts from global and regional NWP models (e.g. ECMWF HRES, GFS, ICON, AROME): the latest run as a continuous time series, a full forecast horizon, or specific lead times.
  • Reanalysis datasets (e.g. ERA5, MESAN) for historical analysis.
  • Points (one or more lat/lon pairs) or a grid (a latitude × longitude mesh).
  • Native model variables or post-processed (harmonized) variables that are consistent across models; see Post-processed variables.

Models lists every model with its coverage, resolution, run times and the variables it supports.

Quickstart

Fetch the latest temperature and wind-speed forecast for two points:

curl -G "https://api.rebase.energy/weather/v2/point/operational" \
  -H "Authorization: your_api_key" \
  --data-urlencode "model=DWD_ICON-EU" \
  --data-urlencode "latitude=60.1, 59.3" \
  --data-urlencode "longitude=16.5, 18.1" \
  --data-urlencode "variables=Temperature, WindSpeed"
import requests
import pandas as pd

resp = requests.get(
    "https://api.rebase.energy/weather/v2/point/operational",
    headers={"Authorization": "your_api_key"},
    params={
        "model": "DWD_ICON-EU",
        "latitude": "60.1, 59.3",
        "longitude": "16.5, 18.1",
        "variables": "Temperature, WindSpeed",
    },
)
resp.raise_for_status()

# Default output is one JSON object per point (pandas-friendly):
points = resp.json()
df = pd.DataFrame(points[0])
print(df.head())

Where to go next

On this page