JQUERY Getting JSON Data from URL

0 votes

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>

Aug 12 in Web Development by gaurav
• 18,960 points
17 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Web Development

0 votes
1 answer

Using Jquery Ajax to retrieve data from Mysql

Perform a AJAX GET request to get ...READ MORE

answered Jun 23 in Web Development by rajatha
• 7,440 points
779 views
0 votes
0 answers

jQuery + JSON how to define key from variable

I have the following code $.post( ...READ MORE

Jul 28 in Web Development by gaurav
• 18,960 points
29 views
0 votes
0 answers

How to obtain data from random wikipedia page with jquery

$(".wikiResult h3").load("https://en.wikipedia.org/wiki/Special:Random #firstHeading i"); I would like to ...READ MORE

Aug 11 in Web Development by gaurav
• 18,960 points
41 views
0 votes
0 answers

When I delete data from jquery data-table it still showing in grid until refresh

I tried that table automatically refresh but ...READ MORE

Aug 19 in Web Development by gaurav
• 18,960 points
8 views
0 votes
0 answers

Build JSON from dynamicaly generated form (jquery.dForm plugin)

I use folowing JSON obj and jquery.dFrom plugin to ...READ MORE

Aug 24 in Web Development by gaurav
• 18,960 points
14 views
0 votes
1 answer

How to Return JSON from PHP to JavaScript?

Hello @kartik, Php has an inbuilt JSON Serialising ...READ MORE

answered Jul 6, 2020 in Web Development by Niroj
• 82,780 points
926 views
0 votes
1 answer

how to use json file in html code?

<html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"> </script> <script> ...READ MORE

answered Aug 8 in HTML by Vikas
142 views
0 votes
0 answers

jQuery JSON Decode ( PHP to Javascript)

I'm trying to make an autocomplete script. ...READ MORE

Jul 1 in Web Development by gaurav
• 18,960 points
39 views
0 votes
0 answers

How to filter JSON Data in JavaScript or jQuery?

How to filter JSON data using Javascript ...READ MORE

Jul 1 in Web Development by rajatha
• 7,440 points
200 views
0 votes
1 answer

Problems with JQuery $.ajax request to random.org api

You need to stringify the data yourself ...READ MORE

answered Aug 1 in Web Development by rajatha
• 7,440 points
53 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP