https://api.apifreaks.com/v1.0/weather/flood
$ pip install requests
Click Test it to start the request and see the response here!
| Field | Type | Requirement | Description |
|---|---|---|---|
| location | Object | Mandatory | Location object. Can be with coordinates, IP, or location string depending on input. |
| forecast[date].daily | Object | Optional | Forecast object containing daily flood forecast data for each date within the specified range. |
"location" (when coordinates Provided) object contains the following fields.
| Field | Type | Requirement | Description |
|---|---|---|---|
| latitude | float | Mandatory | Geographic latitude of the given Coordinates |
| longitude | float | Mandatory | Geographic longitude of the given Coordinates |
| country_name | string | Mandatory | Country name by Coordinates |
| state_prov | string | Mandatory | State or province of given Coordinates |
| city | string | Mandatory | City of the given Coordinates |
| locality | string | Optional | Local area, neighborhood, or village name |
| elevation | float | Optional | Elevation above sea level (meters) |
| timezone | string | Mandatory | Timezone identifier (e.g., GMT, PST, etc.) |
| timezone_abbreviation | string | Mandatory | Abbreviation of timezone (e.g., GMT, IST, etc.) |
"location" (when IP Provided) object contains the following fields.
| Field | Type | Requirement | Description |
|---|---|---|---|
| continent_code | string | Mandatory | Two-letter code of the continent |
| continent_name | string | Mandatory | Full name of the continent |
| country_code2 | string | Mandatory | Two-letter ISO country code |
| country_code3 | string | Mandatory | Three-letter ISO country code |
| country_name | string | Mandatory | Country name of the location |
| country_name_official | string | Mandatory | Official long-form country name |
| is_eu | boolean | Optional | Indicates if the country is part of the European Union |
| state_prov | string | Mandatory | State or province of the location |
| state_code | string | Optional | ISO code for the state or province |
| district | string | Optional | District or administrative division |
| city | string | Mandatory | City of the location |
| zipcode | string | Optional | Postal or ZIP code |
| latitude | float | Mandatory | Geographic latitude of the location |
| longitude | float | Mandatory | Geographic longitude of the location |
| locality | string | Optional | Local area or neighborhood |
| elevation | float | Optional | Elevation above sea level (meters) |
| timezone | string | Mandatory | Timezone identifier |
| timezone_abbreviation | string | Mandatory | Abbreviation of timezone |
"location" (when location Provided) object contains the following fields.
| Field | Type | Requirement | Description |
|---|---|---|---|
| location_string | string | Mandatory | Full address or free-text location input |
| country_name | string | Mandatory | Country name of the location |
| state_prov | string | Mandatory | State or province of the location |
| city | string | Mandatory | City of the location |
| locality | string | Optional | Local area, neighborhood, or village name |
| latitude | float | Mandatory | Geographic latitude of the location |
| longitude | float | Mandatory | Geographic longitude of the location |
| elevation | float | Optional | Elevation above sea level (meters) |
| timezone | string | Mandatory | Timezone identifier |
| timezone_abbreviation | string | Mandatory | Abbreviation of timezone |
"forecast[date].daily" object contains the following fields.
| Field | Type | Requirement | Description |
|---|---|---|---|
| timestamp | string | Mandatory | ISO 8601 formatted timestamp |
| river_discharge | float | Mandatory | The observed river discharge value |
| river_discharge_mean | float | Mandatory | The mean (average) river discharge for the given period |
| river_discharge_median | float | Mandatory | The median river discharge for the given period |
| river_discharge_max | float | Mandatory | The maximum river discharge for the given period |
| river_discharge_min | float | Mandatory | The minimum river discharge for the given period |
| river_discharge_p25 | float | Mandatory | The 25th percentile of river discharge for the given period |
| river_discharge_p75 | float | Mandatory | The 75th percentile of river discharge for the given period |