A friend of mine asked me to look into how he might use the API at whattomine.com on his website, which led to the creation of this short demo.
I mention a couple of things in the video on which I'd like to elaborate now.
Using Different URLs
The URL I used to grab the JSON file was https://whattomine.com/coins.json It turns out you can also grab files for individual coins with something like https://whattomine.com/coins/151.json and you can even pass in parameters via the query string like https://whattomine.com/coins/151.json?hr=2000&p=660.0&fee=0.0&cost=0.1&hcost=0.0
An Example Using a Table
You could build a simple table by using something like this
jQuery('table').append(jQuery('<tr><th>'+ind+'</th><td>'+el+'</td></tr>'));
▶️ DTube
▶️ IPFS