Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Open-Meteo Previous Model Runs

API-Dokumentation
https://api.sandbase.ai/v1/api/open-meteo/previous-runs

Weather forecasts from earlier model runs for the same coordinates, to compare how forecasts changed day by day.

Preis
$0.0001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
2 erforderlich · 13 optional

Playground

Eingabe
WGS84 latitude of the location. Multiple coordinates can be comma-separated.
WGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.
Grid-cell preference for the coordinate. Default `land`.
Comma-separated list of daily aggregation variables to return. Requires `timezone`. Common values: `temperature_2m_max`, `temperature_2m_min`, `temperature_2m_mean`, `precipitation_sum`, `rain_sum`, `snowfall_sum`, `weather_code`, `sunrise`, `sunset`, `sunshine_duration`, `wind_speed_10m_max`, `uv_i
End of the interval, `yyyy-mm-dd` (ISO 8601).
Number of forecast days to return (0-16). Default 7.
Comma-separated list of hourly variables to return. Common values: `temperature_2m`, `relative_humidity_2m`, `dew_point_2m`, `apparent_temperature`, `precipitation`, `rain`, `showers`, `snowfall`, `weather_code`, `pressure_msl`, `cloud_cover`, `wind_speed_10m`, `wind_direction_10m`, `wind_gusts_10m`
Comma-separated forecast models. Default best match.
Number of past days to include (0-92). Default 0.
Precipitation unit. Default `mm`.
Start of the interval, `yyyy-mm-dd` (ISO 8601).
Temperature unit. Default `celsius`.
Time output format. Default `iso8601`.
IANA time zone name (e.g. `Europe/Berlin`) or `auto` to resolve from coordinates. Defaults to `GMT`.
Wind speed unit. Default `kmh`.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

Open-Meteo Previous Model Runs API

Returns weather forecasts that earlier model runs produced for a coordinate, so you can see what was predicted one or more days ahead. It needs latitude and longitude, plus the variables you want in hourly or daily.

Use cases

  • Compare the temperature_2m forecast made one day ahead with the forecast from other lead times to see how much it shifted.
  • Check how stable a precipitation forecast was for a planned outdoor event in a given city.
  • Build a chart of forecast error by lead time for a single location.
  • Test whether a previous_day forecast would have given a different result for a past decision.

Request

curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/previous-runs" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude": "52.52", "longitude": "13.41", "hourly": "temperature_2m_previous_day1", "forecast_days": 1}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
latitudestringYesWGS84 latitude of the location. Multiple coordinates can be comma-separated.
longitudestringYesWGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.
cell_selectionstringNoGrid-cell preference for the coordinate. Default land.
dailystringNoComma-separated list of daily aggregation variables to return. Requires timezone. Common values: temperature_2m_max, temperature_2m_min, temperature_2m_mean, precipitation_sum, rain_sum, snowfall_sum, `weat
end_datestringNoEnd of the interval, yyyy-mm-dd (ISO 8601).
forecast_daysintegerNoNumber of forecast days to return (0-16). Default 7.
hourlystringNoComma-separated list of hourly variables to return. Common values: temperature_2m, relative_humidity_2m, dew_point_2m, apparent_temperature, precipitation, rain, showers, snowfall, weather_code, `pressu
modelsstringNoComma-separated forecast models. Default best match.
past_daysintegerNoNumber of past days to include (0-92). Default 0.
precipitation_unitstringNoPrecipitation unit. Default mm.
start_datestringNoStart of the interval, yyyy-mm-dd (ISO 8601).
temperature_unitstringNoTemperature unit. Default celsius.
timeformatstringNoTime output format. Default iso8601.
timezonestringNoIANA time zone name (e.g. Europe/Berlin) or auto to resolve from coordinates. Defaults to GMT.
wind_speed_unitstringNoWind speed unit. Default kmh.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "elevation": 38.0,
  "generationtime_ms": 7.387995719909668,
  "hourly": {
    "temperature_2m_previous_day1": [
      6.9
    ],
    "time": [
      "2026-11-03T00:00"
    ]
  },
  "hourly_units": {
    "temperature_2m_previous_day1": "°C",
    "time": "iso8601"
  },
  "latitude": 52.512604,
  "longitude": 13.419517,
  "timezone": "GMT",
  "timezone_abbreviation": "GMT",
  "utc_offset_seconds": 0
}

Response fields

FieldMeaning
hourly.timeHour timestamps for each value, in the format given by hourly_units.time (iso8601 here). They are in the response timezone.
hourly.temperature_2m_previous_day1Hourly temperature at 2 m as forecast one day earlier. Each value lines up with the same index in hourly.time. The name follows the requested variable, so other variables appear under their own names.
hourly_units.temperature_2m_previous_day1Unit of the hourly temperature values, °C in this response.
latitude / longitudeCoordinates of the grid cell used for the forecast. They can differ slightly from the coordinates you sent.
elevationElevation of the selected grid cell, in the same call result as the coordinates.
timezone / timezone_abbreviationTime zone used for the timestamps. It is GMT here because no timezone was sent.
utc_offset_secondsOffset of the response time zone from UTC, in seconds.
generationtime_msTime the server took to produce the response, in milliseconds.

Notes

  • Add _previous_day1 and similar suffixes to a variable name, for example temperature_2m_previous_day1, to ask for an earlier run. Use the same pattern in daily, for example temperature_2m_max_previous_day1.
  • daily needs timezone. Use an IANA name such as Europe/Berlin or auto.
  • Choose the time range with forecast_days and past_days, or with start_date and end_date in yyyy-mm-dd format.
  • For current forecasts without lead-time suffixes, call Open-Meteo Weather Forecast. For past forecasts stored by date range, see Open-Meteo Historical Forecast.

Pricing

$0.0001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON
Open-Meteo$0.0001 pro AufrufJSON

Fragen

FAQ

Wie verwende ich die Open-Meteo Previous Model Runs API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/open-meteo/previous-runs mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Open-Meteo Previous Model Runs API?

$0.0001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Open-Meteo Previous Model Runs API?

Erforderlich: latitude (string) und longitude (string). Optional: cell_selection (eines von land, sea, nearest), daily (string), end_date (string), forecast_days (integer), hourly (string) und models (string) und 7 weitere. Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Open-Meteo Previous Model Runs API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Open-Meteo-Entwicklerkonto oder einen API-Schlüssel?

Nein. Open-Meteo Previous Model Runs läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Open-Meteo API beantragen.