Query forecast data (auto-routed)
General forecast query. Routes automatically to operational (latest) or historical handling depending on the requested period.
Raw API key (no Bearer prefix).
In: header
Query Parameters
Model identifier. A single model, or several joined with + (multi-model queries allow only post-processed variables and forecast-horizon=latest).
"DWD_ICON-EU" | "DWD_ICON-D2" | "NCEP_GFS" | "MetNo_MEPS" | "MetNo_HIRESMEPS" | "SMHI_MESAN" | "ECMWF_ERA5" | "ECMWF_ERA5-land" | "ECMWF_HRES" | "ECMWF_HRES_OPERATIONAL" | "ECMWF_IFS_OPER" | "ECMWF_HRES_MIX" | "MeteoFrance_ARPEGE-EU" | "MeteoFrance_ARPEGE-GL" | "MeteoFrance_AROME" | "MeteoFrance_AROME-HD" | "MetOffice_GlobalHiRes" | "KNMI_HARMONIE-NL" | "KNMI_HARMONIE-EU" | "Rebase_AI"A single latitude or a comma-separated list (points), or the grid latitude axis (type=grid).
A single longitude or a comma-separated list.
Comma-separated variable names. Use Variable:height for a specific height level (e.g. WindSpeed:100).
Start of the requested period (YYYY-MM-DD or YYYY-MM-DD HH:MM), interpreted in timezone.
End of the requested period. May be in the future for operational forecasts.
Timezone for request parameters and returned timestamps.
"UTC"Frequency of forecast runs to include (e.g. 6H, 12H, 24H). Clamped up to the model's native run frequency.
"6H"Output time resolution within a forecast (e.g. 1H). Values are interpolated to this frequency.
latest (continuous latest-value time series), full (entire horizon of each run), or a custom list of lead-time hours, e.g. [0, 1, 2, 6, 12].
"latest"If true, spatially interpolate to the requested coordinates; otherwise return the nearest grid point.
falseResponse container — inline json or a pre-signed URL to a netcdf file.
"json""json" | "netcdf"JSON shape — list (pandas-style, array of per-point objects) or xarray (Dataset dict).
"list""list" | "xarray"Query geometry — points (paired lat/lon) or grid (lat × lon mesh).
"points""points" | "grid"For NetCDF output, block until the file is fully generated before returning.
falseHistorical requests only: whether an answer computed earlier for the same request may be reused. incompatible (default) reuses it, and recomputes it once the model has published a newer run inside the requested period; always recomputes on every request; never is accepted and currently behaves like always. Leave the default unless your job must never receive an answer computed before its own request (e.g. it re-fetches the same period right as each run is published); then send always, at the cost of a full recomputation every time.
"incompatible""always" | "incompatible" | "never"Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.rebase.energy/weather/v2/query?model=DWD_ICON-EU&latitude=60.1%2C+61.2%2C+59.33&longitude=16.5%2C+17.0%2C+18.1&variables=Temperature%2C+WindSpeed%2C+WindDirection&start-date=2023-08-01&end-date=2023-08-03"[
{
"ref_datetime": [
"2023-08-01T00:00:00Z",
"2023-08-01T00:00:00Z"
],
"valid_datetime": [
"2023-08-01T00:00:00Z",
"2023-08-01T01:00:00Z"
],
"Temperature": [
17.4,
17.1
],
"WindSpeed": [
5.2,
5
]
}
]{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}