I am trying to use $.getJSON() to get JSON data from websites. Below is the code I am using
the website I am trying to get the JSON data from is this.
this code worked perfectly fine when querying data from this link, but it does not work for the first link.. Why is this?
<script>
$.getJSON('https://whattomine.com/coins/4.json', function(data) {
var text = `Rewards: ${data.estimated_rewards}`
$(".mypanel").html(text);
});
</script>