<!DOCTYPE html><html> <head> <title>jQuery Data</title> <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> <script> $(document).ready(function() { $.getJSON('https://btc-e.com/api/2/ltc_usd/ticker', function(ticker) { document.write(ticker.avg); }); }); </script> </head> <body> </body> </html>