Look up by iTunes artist ID
<!DOCTYPE html> <html> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> </head> <body> Look up by iTunes artist ID<br> <input type="text" id="text"> <button id="button">get</button> <ul id="ul"></ul> <script> jQuery.support.cors=true; $("#button").click(function(){ $.ajax({ type:'GET', url: 'https://itunes.apple.com/lookup', data: {id: $("#text").val()}, success: function(data, status, xhr){ //alert(data); $("#ul").prepend("<li>"+$("#text").val()+":"+data+"</li>"); }, error: function(xhr,status,error){ alert(error); } }); }); </script> </body> </html>
参照したURL:
https://developers.google.com/speed/libraries/#ext-core
iTunes Search API
https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/