Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Open-Meteo Previous Model Runs

Documentazione API
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.

Prezzo
$0.0001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
2 obbligatori · 13 opzionali

Playground

Input
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`.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Open-Meteo$0.0001 per chiamataJSON
Open-Meteo$0.0001 per chiamataJSON
Open-Meteo$0.0001 per chiamataJSON
Open-Meteo$0.0001 per chiamataJSON
Open-Meteo$0.0001 per chiamataJSON
Open-Meteo$0.0001 per chiamataJSON

Domande

FAQ

Come uso l'API Open-Meteo Previous Model Runs?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/open-meteo/previous-runs con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Open-Meteo Previous Model Runs?

$0.0001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Open-Meteo Previous Model Runs?

Richiesti: latitude (string) e longitude (string). Facoltativi: cell_selection (uno tra land, sea, nearest), daily (string), end_date (string), forecast_days (integer), hourly (string) e models (string) e altri 7. La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Open-Meteo Previous Model Runs?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Open-Meteo?

No. Open-Meteo Previous Model Runs funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Open-Meteo.