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

Open-Meteo Flood Forecast

Dokumentacja API
https://api.sandbase.ai/v1/api/open-meteo/flood

Daily river discharge forecast and history for any coordinates from the GloFAS flood model.

Cena
$0.0001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
2 wymaganych · 9 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 `nearest`.
Comma-separated list of daily aggregation variables to return. Requires `timezone`. Common values: `river_discharge`, `river_discharge_mean`, `river_discharge_median`, `river_discharge_max`, `river_discharge_min`, `river_discharge_p25`, `river_discharge_p75`.
End of the interval, `yyyy-mm-dd` (ISO 8601).
Return all ensemble members instead of the aggregate. Default `false`.
Number of forecast days to return (0-210). Default 92.
Comma-separated GloFAS models. Default best match.
Number of past days to include (0-92). Default 0.
Start of the interval, `yyyy-mm-dd` (ISO 8601).
Time output format. Default `iso8601`.
WyjścieGotowe

Twój wynik pojawi się tutaj

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

README API

Open-Meteo Flood Forecast API

Returns daily river discharge values in cubic meters per second for a pair of coordinates, from the GloFAS flood model. It needs latitude and longitude. Add daily to choose which discharge variables come back.

Use cases

  • Chart the expected river flow near a site over the next weeks to spot rising water.
  • Compare recent past discharge with the forecast using past_days and forecast_days.
  • Add a river flow value to a flood risk score for a property or a project location.
  • Pull the same discharge series for several coordinates by passing comma-separated latitude and longitude values.

Request

curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/flood" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude": "52.52", "longitude": "13.41", "daily": "river_discharge"}'

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 nearest.
dailystringNoComma-separated list of daily aggregation variables to return. Requires timezone. Common values: river_discharge, river_discharge_mean, river_discharge_median, river_discharge_max, river_discharge_min, `river
end_datestringNoEnd of the interval, yyyy-mm-dd (ISO 8601).
ensemblebooleanNoReturn all ensemble members instead of the aggregate. Default false.
forecast_daysintegerNoNumber of forecast days to return (0-210). Default 92.
modelsstringNoComma-separated GloFAS models. Default best match.
past_daysintegerNoNumber of past days to include (0-92). Default 0.
start_datestringNoStart of the interval, yyyy-mm-dd (ISO 8601).
timeformatstringNoTime output format. Default iso8601.

Example response

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

{
  "daily": {
    "river_discharge": [
      0.45
    ],
    "time": [
      "2026-11-03"
    ]
  },
  "daily_units": {
    "river_discharge": "m³/s",
    "time": "iso8601"
  },
  "elevation": 38.0,
  "generationtime_ms": 0.18489360809326172,
  "latitude": 52.525,
  "longitude": 13.425003,
  "timezone": "GMT",
  "timezone_abbreviation": "GMT",
  "utc_offset_seconds": 0
}

Response fields

FieldMeaning
daily.time[]Date of each daily value, in yyyy-mm-dd format when timeformat is iso8601. It lines up by position with the values in daily.river_discharge[].
daily.river_discharge[]Forecast river discharge for each date in daily.time[]. The unit is given in daily_units.river_discharge.
daily_units.river_dischargeUnit of the discharge values, shown as m³/s in this response.
latitude / longitudeCoordinates of the grid cell the data comes from. They can differ slightly from the requested point, for example 52.525 and 13.425003 for a request of 52.52 and 13.41.
elevationElevation of the selected grid cell, in the same call as the discharge data.
timezone / timezone_abbreviation / utc_offset_secondsTime zone used for the daily dates, here GMT with an offset of 0 seconds.
generationtime_msTime the server took to build the response, in milliseconds.

Notes

  • Get coordinates for a place name with Open-Meteo Geocoding.
  • Use start_date and end_date for a fixed date range, or past_days and forecast_days for a window around today.
  • Other discharge variables for daily include river_discharge_mean, river_discharge_median, river_discharge_max, river_discharge_min, river_discharge_p25 and river_discharge_p75.
  • Set ensemble to true to get all ensemble members instead of the aggregate.

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 Flood Forecast?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/open-meteo/flood 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 Flood Forecast?

$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 Flood Forecast?

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

Co zwraca API Open-Meteo Flood Forecast?

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 Flood Forecast 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.