Loading
Loading
Retrieve daily flood forecast data for any location worldwide for up to 16 days ahead. Supports lookup by city name or address, GPS coordinates, or IP address. Each response includes river discharge, flow percentiles, and full geographic context.
The Flood Forecast API delivers daily river discharge values including the mean, median, maximum, minimum, and 25th/75th percentile discharge rates for each date in the requested range. When no location parameter is supplied the API auto-detects the requesting IP address.
Pass your API key as the apiKey parameter in every request.
This is version v1.0 of the API.
startDate and endDate are required query parameters in YYYY-MM-DD format. The date range must not exceed 16 days. Pass location, lat/long, or ipto specify a target location. If none are provided the API resolves flood data for the calling machine's IP address. Use timezone to override the default timezone of the resolved location.
formatoptionalStringdefault: jsonResponse format: 'json'.
startDaterequiredStringStarting date for which to fetch flood forecast data. Must follow YYYY-MM-DD format (e.g., 2025-08-25). Forecast dates must be current or future dates only. Past dates are not allowed for forecast data.
endDaterequiredStringEnd date for which to fetch flood forecast data. Must follow YYYY-MM-DD format (e.g., 2025-08-25). Forecast dates must be current or future dates only. Past dates are not allowed for forecast data.
locationoptionalStringSpecifies the target location. It can be a city name, place name, or a complete address (e.g., "Lahore", "Paris, France", "1600 Amphitheatre Parkway, Mountain View, CA").
latoptionalFloatLatitude of the target location. Must be used together with "long".
longoptionalFloatLongitude of the target location. Must be used together with "lat".
ipoptionalStringIPv4 or IPv6 address used to infer location. Defaults to the requester's public IP if not provided.
precisionoptionalStringForecast data granularity. Only 'daily' is available.
timezoneoptionalStringSpecifies the timezone for returned results. Defaults to the resolved location's timezone.
A successful request returns a 200 OK response with a JSON object. The top-level object always contains location and forecast. The forecast object is keyed by date (YYYY-MM-DD), each containing a daily sub-object with river discharge metrics. See the response preview on the right for the full JSON structure.
date (Object)
Address Lookup (Object), Coordinates Lookup (Object), IP Lookup (Object)
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
please pass correct parameters
"lat" and "long" must be valid numbers.
Latitude must be between -90 and 90, and longitude must be between -180 and 180
startDate must be in yyyy-mm-dd format
"startDate" must be before or equal to "endDate".
The date range between "startDate" and "endDate" must not exceed 16 days.
Location not found