/openmeteo/flood
curl --request POST \
--url https://api.anysite.io/api/openmeteo/flood \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"latitude": 0,
"longitude": 0,
"daily": [],
"timeout": 300,
"forecast_days": 105,
"past_days": 46,
"start_date": "<string>",
"end_date": "<string>",
"ensemble": false,
"timeformat": "iso8601"
}
'import requests
url = "https://api.anysite.io/api/openmeteo/flood"
payload = {
"latitude": 0,
"longitude": 0,
"daily": [],
"timeout": 300,
"forecast_days": 105,
"past_days": 46,
"start_date": "<string>",
"end_date": "<string>",
"ensemble": False,
"timeformat": "iso8601"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
latitude: 0,
longitude: 0,
daily: [],
timeout: 300,
forecast_days: 105,
past_days: 46,
start_date: '<string>',
end_date: '<string>',
ensemble: false,
timeformat: 'iso8601'
})
};
fetch('https://api.anysite.io/api/openmeteo/flood', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/openmeteo/flood",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'latitude' => 0,
'longitude' => 0,
'daily' => [
],
'timeout' => 300,
'forecast_days' => 105,
'past_days' => 46,
'start_date' => '<string>',
'end_date' => '<string>',
'ensemble' => false,
'timeformat' => 'iso8601'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/openmeteo/flood"
payload := strings.NewReader("{\n \"latitude\": 0,\n \"longitude\": 0,\n \"daily\": [],\n \"timeout\": 300,\n \"forecast_days\": 105,\n \"past_days\": 46,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"ensemble\": false,\n \"timeformat\": \"iso8601\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/openmeteo/flood")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"latitude\": 0,\n \"longitude\": 0,\n \"daily\": [],\n \"timeout\": 300,\n \"forecast_days\": 105,\n \"past_days\": 46,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"ensemble\": false,\n \"timeformat\": \"iso8601\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/openmeteo/flood")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"latitude\": 0,\n \"longitude\": 0,\n \"daily\": [],\n \"timeout\": 300,\n \"forecast_days\": 105,\n \"past_days\": 46,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"ensemble\": false,\n \"timeformat\": \"iso8601\"\n}"
response = http.request(request)
puts response.read_body[
{
"latitude": 123,
"longitude": 123,
"@type": "OpenmeteoWeather",
"generation_time_ms": 123,
"utc_offset_seconds": 123,
"timezone": "<string>",
"timezone_abbreviation": "<string>",
"elevation": 123,
"current": {
"@type": "OpenmeteoCurrentConditions",
"units": {},
"values": {}
},
"minutely_15": {
"@type": "OpenmeteoTimeSeries",
"units": {},
"records": []
},
"hourly": {
"@type": "OpenmeteoTimeSeries",
"units": {},
"records": []
},
"daily": {
"@type": "OpenmeteoTimeSeries",
"units": {},
"records": []
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/openmeteo
/openmeteo/flood
Get daily river-discharge (flood) data for a geographic point
Price: 1 credit
⚠️ Common errors: 412: No data available for the location
POST
/
api
/
openmeteo
/
flood
/openmeteo/flood
curl --request POST \
--url https://api.anysite.io/api/openmeteo/flood \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"latitude": 0,
"longitude": 0,
"daily": [],
"timeout": 300,
"forecast_days": 105,
"past_days": 46,
"start_date": "<string>",
"end_date": "<string>",
"ensemble": false,
"timeformat": "iso8601"
}
'import requests
url = "https://api.anysite.io/api/openmeteo/flood"
payload = {
"latitude": 0,
"longitude": 0,
"daily": [],
"timeout": 300,
"forecast_days": 105,
"past_days": 46,
"start_date": "<string>",
"end_date": "<string>",
"ensemble": False,
"timeformat": "iso8601"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
latitude: 0,
longitude: 0,
daily: [],
timeout: 300,
forecast_days: 105,
past_days: 46,
start_date: '<string>',
end_date: '<string>',
ensemble: false,
timeformat: 'iso8601'
})
};
fetch('https://api.anysite.io/api/openmeteo/flood', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/openmeteo/flood",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'latitude' => 0,
'longitude' => 0,
'daily' => [
],
'timeout' => 300,
'forecast_days' => 105,
'past_days' => 46,
'start_date' => '<string>',
'end_date' => '<string>',
'ensemble' => false,
'timeformat' => 'iso8601'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/openmeteo/flood"
payload := strings.NewReader("{\n \"latitude\": 0,\n \"longitude\": 0,\n \"daily\": [],\n \"timeout\": 300,\n \"forecast_days\": 105,\n \"past_days\": 46,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"ensemble\": false,\n \"timeformat\": \"iso8601\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/openmeteo/flood")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"latitude\": 0,\n \"longitude\": 0,\n \"daily\": [],\n \"timeout\": 300,\n \"forecast_days\": 105,\n \"past_days\": 46,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"ensemble\": false,\n \"timeformat\": \"iso8601\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/openmeteo/flood")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"latitude\": 0,\n \"longitude\": 0,\n \"daily\": [],\n \"timeout\": 300,\n \"forecast_days\": 105,\n \"past_days\": 46,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"ensemble\": false,\n \"timeformat\": \"iso8601\"\n}"
response = http.request(request)
puts response.read_body[
{
"latitude": 123,
"longitude": 123,
"@type": "OpenmeteoWeather",
"generation_time_ms": 123,
"utc_offset_seconds": 123,
"timezone": "<string>",
"timezone_abbreviation": "<string>",
"elevation": 123,
"current": {
"@type": "OpenmeteoCurrentConditions",
"units": {},
"values": {}
},
"minutely_15": {
"@type": "OpenmeteoTimeSeries",
"units": {},
"records": []
},
"hourly": {
"@type": "OpenmeteoTimeSeries",
"units": {},
"records": []
},
"daily": {
"@type": "OpenmeteoTimeSeries",
"units": {},
"records": []
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Required range:
-90 <= x <= 90Required range:
-180 <= x <= 180Available options:
river_discharge, river_discharge_mean, river_discharge_median, river_discharge_max, river_discharge_min, river_discharge_p25, river_discharge_p75 Required range:
20 <= x <= 1500Required range:
0 <= x <= 210Required range:
0 <= x <= 92Available options:
iso8601, unixtime Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I