Introduction
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
Authorizationheader (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.
See Models for the full catalogue with coverage, resolution, run times, and the variables each model supports.
Quickstart
Fetch the latest temperature and wind-speed forecast for two points:
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
- Authentication — how to authenticate every request.
- Querying data — all parameters, points vs grid, forecast horizons.
- Output formats — JSON (list / xarray) and NetCDF, with parsing code.
- Models — the full model catalogue.
- API Reference — the complete endpoint and schema reference.