Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Open-Meteo Previous Model Runs

Dokumentacja 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.

Cena
$0.0001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
2 wymaganych · 13 opcjonalnych

Playground

Wejście
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`.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Open-Meteo$0.0001 za wywołanieJSON
Open-Meteo$0.0001 za wywołanieJSON
Open-Meteo$0.0001 za wywołanieJSON
Open-Meteo$0.0001 za wywołanieJSON
Open-Meteo$0.0001 za wywołanieJSON
Open-Meteo$0.0001 za wywołanieJSON

Pytania

FAQ

Jak używać API Open-Meteo Previous Model Runs?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/open-meteo/previous-runs z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Open-Meteo Previous Model Runs?

$0.0001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Open-Meteo Previous Model Runs?

Wymagane: latitude (string) i longitude (string). Opcjonalne: cell_selection (jedna z opcji: land, sea, nearest), daily (string), end_date (string), forecast_days (integer), hourly (string) i models (string) i jeszcze 7. Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Open-Meteo Previous Model Runs?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Open-Meteo lub klucza API?

Nie. Open-Meteo Previous Model Runs działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Open-Meteo.