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, 2022 in Web Development by gaurav
• 23,260 points
704 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, 2022 in Web Development by rajatha
• 7,640 points
22,148 views
0 votes
0 answers

jQuery + JSON how to define key from variable

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

Jul 28, 2022 in Web Development by gaurav
• 23,260 points
336 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, 2022 in Web Development by gaurav
• 23,260 points
340 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, 2022 in Web Development by gaurav
• 23,260 points
1,395 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, 2022 in Web Development by gaurav
• 23,260 points
292 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,880 points
1,486 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, 2022 in HTML by Vikas
6,359 views
0 votes
0 answers

jQuery JSON Decode ( PHP to Javascript)

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

Jul 1, 2022 in Web Development by gaurav
• 23,260 points
427 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, 2022 in Web Development by rajatha
• 7,640 points
2,277 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, 2022 in Web Development by rajatha
• 7,640 points
758 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP