Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Open-Meteo Flood Forecast

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

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

Prix
$0.0001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
2 obligatoires · 9 facultatifs

Bac à sable

Entrée
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`.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON

Questions

FAQ

Comment utiliser l’API Open-Meteo Flood Forecast ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/open-meteo/flood avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Open-Meteo Flood Forecast ?

$0.0001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Open-Meteo Flood Forecast accepte-t-elle ?

Obligatoire : latitude (string) et longitude (string). Facultatif : cell_selection (l’un de land, sea, nearest), daily (string), end_date (string), ensemble (boolean), forecast_days (integer) et models (string) et 3 de plus. Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Open-Meteo Flood Forecast ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Open-Meteo ?

Non. Open-Meteo Flood Forecast fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Open-Meteo séparément.