I have this api
http://api.openweathermap.org/data/2.5/forecast/daily?q=Montpellier&mode=json&units=metric&cnt=10
and I will
Just issue ajax GET request:
var url = "http://api.openweathermap.org/data/2.5/forecast/daily?q=Montpellier&mode=json&units=metric&cnt=10"
$.getJSON(url).then(function(data) {
console.log(data);
});
api.openweathermap.org implements CORS, which means that you will not have cross domain issues and can simply request API with AJAX.