Historical weather data by polygon

Historical weather data archive has a 1-hour step.

API call:

http://api.agromonitoring.com/agro/1.0/weather/history

Parameters:

appid personal api key

polyid ID of polygon

start starting point of time period in UNIX time

end final point of time period in UNIX time

Examples of API calls:

http://api.agromonitoring.com/agro/1.0/weather/history?polyid=5aaa8052cbbbb5000b73ff66&appid=bb0664ed43c153aa072c760594d775a7&start=1485703465&end=1485780512

Example of API response:
[
   {
      "dt":1485705600,
      "weather":[
         {
            "id":802,
            "main":"Clouds",
            "description":"scattered clouds",
            "icon":"03d"
         }
      ],
      "main":{
         "temp":288.15,
         "pressure":1018,
         "humidity":47,
         "temp_min":288.15,
         "temp_max":288.15
      },
      "wind":{
         "speed":2,
         "deg":150
      },
      "clouds":{
         "all":36
      }
   },
   {
      “dt":1485709200,
      "weather":[
         {
            "id":804,
            "main":"Clouds",
            "description":"overcast clouds",
            "icon":"04d"
         }
      ],
      "main":{
         "temp":287.15,
         "pressure":1018,
         "humidity":47,
         "temp_min":287.15,
         "temp_max":287.15
      },
      "wind":{
         "speed":4,
         "deg":160
      },
      "clouds":{
         "all":92
      }
   },
   {
      ...
   }
]
Parameters:
  • dt Time of data calculation, unix, UTC
  • weather (more info Weather condition codes)
    • weather.id Weather condition id
    • weather.main Group of weather parameters (Rain, Snow, Extreme etc.)
    • weather.description Weather condition within the group
    • weather.icon Weather icon id
  • main
    • main.temp Temperature. Data is only provided in Kelvins.
    • main.pressure Atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data), hPa
    • main.humidity Humidity, %
    • main.temp_min Minimum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally). Data is only provided in Kelvins.
    • main.temp_max Maximum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally). Data is only provided in Kelvins.
    • main.sea_level Atmospheric pressure on the sea level, hPa
    • main.grnd_level Atmospheric pressure on the ground level, hPa
  • wind
    • wind.speed Wind speed. Unit: meter/sec.
    • wind.deg Wind direction, degrees (meteorological)
  • clouds
    • clouds.all Cloudiness, %
  • rain
    • rain.3h Rain volume for the last 3 hours
  • snow
    • snow.3h Snow volume for the last 3 hours