$(document).ready(function() {
$.getJSON(“http://ip-api.com/json” , function(data){
console.log(data);
});
});
what is wrong with this code, chrome console saying "data not found"
i am not able to retrieve data from this API.
$(document).ready(function() {
$.getJSON(“http://ip-api.com/json” , function(data){
console.log(data);
});
});
what is wrong with this code, chrome console saying "data not found"
i am not able to retrieve data from this API.
I put this into my console and it told me " ```…the content must be served over HTTPS` ". I changed your link to start with “https” instead of “http” and it works after that.
Not to sure as to why this is the case, but I think it’s security related.
thanks for reply… but i too did try typing HTTPS but didnt work for me.
Odd, I also get net::ERR_CONNECTION_REFUSED
, but I still get the results. Hope someone else has an answer.
Google Maps Geocoding API worked for me finally