Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Open-Meteo Flood Forecast

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

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

Harga
$0.0001USD / panggilan
Metode
POST
Respons
JSON
Parameter
2 wajib · 9 opsional

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 `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`.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API Open-Meteo Flood Forecast?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/open-meteo/flood dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Open-Meteo Flood Forecast?

$0.0001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Open-Meteo Flood Forecast?

Wajib: latitude (string) dan longitude (string). Opsional: cell_selection (salah satu dari land, sea, nearest), daily (string), end_date (string), ensemble (boolean), forecast_days (integer) dan models (string) dan 3 lainnya. Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Open-Meteo Flood Forecast?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Open-Meteo?

Tidak. Open-Meteo Flood Forecast berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Open-Meteo secara terpisah.