API Freaks logoAPI Freaks logo
CTRL+K

    APIs

  • Pricing
  • Resources
  • Tools

  • Contact us
CTRL+K
Sign InGet Started For Free
  • Credits Usage APIGET
  • IP Geolocation LookupGET
  • Bulk IP Geolocation LookupPOST
  • Domain WHOIS LookupGET
  • IP WHOIS LookupGET
  • ASN LookupGET
  • Domain WHOIS Historical LookupGET
  • Domain WHOIS Reverse LookupGET
  • Bulk Domain WHOIS LookupPOST
  • DNS LookupGET
  • Historical DNS LookupGET
  • Reverse DNS LookupGET
  • Bulk DNS LookupPOST
  • Email Checker APIPOST
  • SSL Certificate LookupGET
  • SSL Certificate Chain LookupGET
  • Domain AvailabilityGET
  • Domain Availability with SuggestionsGET
  • Bulk Domain AvailabilityPOST
  • Website ScreenshotGET
  • Bulk ScreenshotPOST
  • Latest Exchange RatesGET
  • Historical Exchange RatesGET
  • Currency Converter LatestGET
  • Currency Converter HistoricalGET
  • Currency Time SeriesGET
  • Currency FluctuationGET
  • Geolocalized Currency ConverterGET
  • Currency SupportedGET
  • Currency SymbolsGET
  • Currency Historical Data LimitsGET
  • Live Commodity PricesGET
  • Historical Commodity PricesGET
  • Commodity FluctuationGET
  • Commodity Time SeriesGET
  • Commodity SymbolsGET
  • Timezone LookupGET
  • Timezone ConverterGET
  • Live Weather APIGET
  • Weather Forecast APIGET
  • Historical Weather APIGET
  • Time Series Weather APIGET
  • Air Quality APIGET
  • Marine Weather APIGET
  • Flood Forecast APIGET
  • Bulk Live Weather APIPOST
  • User Agent ParserGET
  • Bulk User Agent ParserPOST
  • GeoDB CountriesGET
  • GeoDB Country DetailsGET
  • GeoDB RegionsGET
  • GeoDB SubregionsGET
  • GeoDB Admin LevelsGET
  • GeoDB Admin UnitsGET
  • GeoDB Admin Units DetailsGET
  • GeoDB CitiesGET
  • Zip Code LookupGET
  • ZIP Code Search CityGET
  • ZIP Code Search RegionGET
  • ZIP Code Search RadiusGET
  • ZIP Code DistancePOST
  • ZIP Code Distance MatchPOST
  • ZIP Code Bulk LookupPOST
  • Astronomy APIGET

Ready to get started?

Sign Up for Free

APIFreaks

API Catalog

  • Geolocation APIs
  • WHOIS APIs
  • DNS APIs
  • Email Validation APIs
  • SSL APIs
  • Domain APIs
  • Screenshot APIs
  • Currency APIs
  • Commodity APIs
  • Zipcode APIs
  • Weather APIs
  • Timezone APIs
  • User Agent APIs
  • Other APIs

Tools Catalog

  • Code Formatters
  • Data & Query Tools
  • Text Tools
  • Email Utilities
  • DNS Tools
  • Viewers
  • Converters
  • PDF Tools

Docs

  • APIs
  • Swagger Docs

Pricing & Accounts

  • Pricing
  • Sign up
  • Sign In

Company

  • About Us
  • Resources
  • Terms
  • Privacy

Copyright © 2025

Made in Pakistan

Flood Forecast Weather API

GET

https://api.apifreaks.com/v1.0/weather/flood

format
Format of the Response
startDatestringrequired
Starting date for which to fetch flood forecast data. Must follow YYYY-MM-DD format (e.g., 2025-08-25).
endDatestringrequired
End date for which to fetch flood forecast data. Must follow YYYY-MM-DD format (e.g., 2025-08-25).
locationstring
Specifies 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").
latfloat
Latitude of the target location. Must be used together with "long".
longfloat
Longitude of the target location. Must be used together with "lat".
ipstring
IPv4 or IPv6 address used to infer location. Defaults to the requester’s public IP if not provided.
timezonestring
Specifies the timezone for returned results. Defaults to the resolved location’s timezone.
Media Type
JSON
Body

API Keystringrequired
Your private API key. Get it from API Freaks dashboard.

Sample Responses

400
400
400
400
400
LANGUAGE
Python
PHP
Java
Node
Ruby
JavaScript
C#
$ pip install requests
RESPONSE

Click Test it to start the request and see the response here!


API Response

FieldTypeRequirementDescription
locationObjectMandatory
Location object. Can be with coordinates, IP, or location string depending on input.
forecast[date].dailyObjectOptional
Forecast object containing daily flood forecast data for each date within the specified range.

"location" (when coordinates Provided) object contains the following fields.

FieldTypeRequirementDescription
latitudefloatMandatory
Geographic latitude of the given Coordinates
longitudefloatMandatory
Geographic longitude of the given Coordinates
country_namestringMandatory
Country name by Coordinates
state_provstringMandatory
State or province of given Coordinates
citystringMandatory
City of the given Coordinates
localitystringOptional
Local area, neighborhood, or village name
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier (e.g., GMT, PST, etc.)
timezone_abbreviationstringMandatory
Abbreviation of timezone (e.g., GMT, IST, etc.)

"location" (when IP Provided) object contains the following fields.

FieldTypeRequirementDescription
continent_codestringMandatory
Two-letter code of the continent
continent_namestringMandatory
Full name of the continent
country_code2stringMandatory
Two-letter ISO country code
country_code3stringMandatory
Three-letter ISO country code
country_namestringMandatory
Country name of the location
country_name_officialstringMandatory
Official long-form country name
is_eubooleanOptional
Indicates if the country is part of the European Union
state_provstringMandatory
State or province of the location
state_codestringOptional
ISO code for the state or province
districtstringOptional
District or administrative division
citystringMandatory
City of the location
zipcodestringOptional
Postal or ZIP code
latitudefloatMandatory
Geographic latitude of the location
longitudefloatMandatory
Geographic longitude of the location
localitystringOptional
Local area or neighborhood
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier
timezone_abbreviationstringMandatory
Abbreviation of timezone

"location" (when location Provided) object contains the following fields.

FieldTypeRequirementDescription
location_stringstringMandatory
Full address or free-text location input
country_namestringMandatory
Country name of the location
state_provstringMandatory
State or province of the location
citystringMandatory
City of the location
localitystringOptional
Local area, neighborhood, or village name
latitudefloatMandatory
Geographic latitude of the location
longitudefloatMandatory
Geographic longitude of the location
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier
timezone_abbreviationstringMandatory
Abbreviation of timezone

"forecast[date].daily" object contains the following fields.

FieldTypeRequirementDescription
timestampstringMandatory
ISO 8601 formatted timestamp
river_dischargefloatMandatory
The observed river discharge value
river_discharge_meanfloatMandatory
The mean (average) river discharge for the given period
river_discharge_medianfloatMandatory
The median river discharge for the given period
river_discharge_maxfloatMandatory
The maximum river discharge for the given period
river_discharge_minfloatMandatory
The minimum river discharge for the given period
river_discharge_p25floatMandatory
The 25th percentile of river discharge for the given period
river_discharge_p75floatMandatory
The 75th percentile of river discharge for the given period