Forecast weather data by geo coordinates
API call:
https://api.agromonitoring.com/agro/1.0/weather/forecast
Parameters:
appid - personal API key
lat, lon - coordinates of the location of your interest
Exmaples of API calls:
https://api.agromonitoring.com/agro/1.0/weather/forecast?lat=35&lon=139&appid={YOUR_API_KEY}
Example of API response:
[
{
"dt": 1622818800,
"weather": [
{
"id": 804,
"main": "Clouds",
"description": "overcast clouds",
"icon": "04n"
}
],
"main": {
"temp": 292.66,
"feels_like": 292.91,
"temp_min": 292.66,
"temp_max": 292.66,
"pressure": 997,
"sea_level": 997,
"grnd_level": 972,
"humidity": 86,
"temp_kf": 0
},
"wind": {
"speed": 1.53,
"deg": 169,
"gust": 1.5
},
"clouds": {
"all": 100
}
},
...
Weather fields in API response:
coordcoord.lonCity geo location, longitudecoord.latCity geo location, latitude
weather(more info Weather condition codes)weather.idWeather condition idweather.mainGroup of weather parameters (Rain, Snow, Extreme etc.)weather.descriptionWeather condition within the groupweather.iconWeather icon id
mainmain.tempTemperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.main.pressureAtmospheric pressure (on the sea level, if there is no sea_level or grnd_level data), hPamain.humidityHumidity, %main.temp_minMinimum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally). Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.main.temp_maxMaximum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally). Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.main.sea_levelAtmospheric pressure on the sea level, hPamain.grnd_levelAtmospheric pressure on the ground level, hPa
windwind.speedWind speed. Unit Default: meter/sec, Metric: meter/sec, Imperial: miles/hour.wind.degWind direction, degrees (meteorological)
cloudsclouds.allCloudiness, %
rainrain.3hRain volume for the last 3 hours
snowsnow.3hSnow volume for the last 3 hours
dtTime of data calculation, unix, UTC