Weather API

by jean-philippe janecek

HTML

<span class="instagram_catch"></span>

JavaScript

$.ajax({
type: "GET",
dataType: "jsonp",
cache: false,
// Position geoportail Beuil 44.095901 , 6.986286
url: "https://api.darksky.net/forecast/1a43d545710c14571dbbe87b13bad8c7/44.095901,6.986286",
    success: function(data) {
                    
        console.log(data);
        
        $('.instagram_catch').append( data.currently['summary'] + "" + data.currently['temperature']);

	}

});