2

I am building a web application where I need to display whole year's month wise weather conditions. So that users get an idea of what the weather conditions are like and plan their trips accordingly.

I am using WunderGround's History feature but it does not give this data for smaller towns and destinations, even some very popular tourist destinations.

Are there any alternatives which could provide me the same information.

1

You can check ClimaCell for this. They have pretty detailed forecasts for anyone working on Big Data or need historical forecasts. Their history API goes as back as 20 years.

enter image description here

It's free for developers for a limit of 1000 calls per day which is more than enough for small-scale applications.

If you go through their documentation they have legacy API in which you can define and list multiple locations. With your small town issue, you can define the town name by longitude and latitude and then reuse it.

enter image description here

You can set up webhooks and alerts also if you want to get notified for any updates.

enter image description here

Javascript current forecast call

var data = null;

var xhr = new XMLHttpRequest();

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://api.climacell.co/v3/weather/nowcast?unit_system=si&timestep=5&start_time=now&fields=");

xhr.send(data);

//RESPONSE
    [{
        "lat": 42.30260171891152,
        "lon": -71.17609710203855,
        "precipitation": {
            "value": 0.39,
            "units": "in/hr"
        },
        "precipitation_type": {
            "value": "rain"
        },
        "observation_time": {
            "value": "2020-05-15T21:00:00.000Z"
        }
    }]

You can try their sandbox panel for more API calls.

Not the answer you're looking for? Browse other questions tagged or ask your own question.