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.
this code worked perfectly fine when querying data, but it does not work for the first link.. Why is this?
<script>
$.getJSON('https://example.com/coins/4.json', function(data) {
var text = `Rewards: ${data.estimated_rewards}`
$(".mypanel").html(text);
});
</script>