Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Open-Meteo Flood Forecast

API दस्तावेज़
https://api.sandbase.ai/v1/api/open-meteo/flood

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

मूल्य
$0.0001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
2 आवश्यक · 9 वैकल्पिक

प्लेग्राउंड

इनपुट
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`.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

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.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Open-Meteo$0.0001 प्रति कॉलJSON
Open-Meteo$0.0001 प्रति कॉलJSON
Open-Meteo$0.0001 प्रति कॉलJSON
Open-Meteo$0.0001 प्रति कॉलJSON
Open-Meteo$0.0001 प्रति कॉलJSON
Open-Meteo$0.0001 प्रति कॉलJSON

प्रश्न

FAQ

Open-Meteo Flood Forecast API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/open-meteo/flood पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Open-Meteo Flood Forecast API की लागत कितनी है?

$0.0001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Open-Meteo Flood Forecast API कौन-से parameters स्वीकार करती है?

आवश्यक: latitude (string) और longitude (string)। वैकल्पिक: cell_selection (land, sea, nearest में से एक), daily (string), end_date (string), ensemble (boolean), forecast_days (integer) और models (string) और 3 और। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Open-Meteo Flood Forecast API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Open-Meteo developer account या API key चाहिए?

नहीं। Open-Meteo Flood Forecast SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Open-Meteo API access के लिए आवेदन करने की आवश्यकता नहीं है।