Main menu
WalkswithMeiTunesiTunes album Search with Album title and author

iTunes album Search with Album title and author

iTunes album search with album title using jQuery ajax will  provides you the particular album details from itunes library. iTunes provides a wide range of search option on their site. Here i just explain how can we get an album details like Order url,Cover url etc. with album title using jQuery.

First you have to create an html or php file for the api call make sure you have jQuery available on that page (use any one of the jQuery version).

You can find the basic search option with itunes album seach  with album title using jQuery.

itunes album search with album title and auther

itunes album search with album title and auther

 

Then you have the following javascript function on the head section.


<script type="application/javascript">
function GetDetailsFromitunes(album_NameTitle){
//alert(album_NameTitle);
album_NameTitle = album_NameTitle.replace(/ /gi,'+');
//alert(album_NameTitle);
if(album_NameTitle!=""){
var url =  "http://itunes.apple.com/search?term="+album_NameTitle+"&country=US&media=music&entity=song&limit=1&lang=en_us&version=2";
jQuery.getJSON(url + "&callback=?", null, function(data) {
//alert(data.toSource()); For checking all the data
var coverURL      = data.results[0].artworkUrl60;
alert("Order url for the Album:"+data.results[0].collectionViewUrl);
alert("Cover Url"+coverURL)
});
}
}
</script>

Also on the function call you have to call like


GetDetailsFromitunes("album title"+"  "+"author");

iTunes album search with album title api call will be look like.


https://itunes.apple.com/search?term=Queen&attribute=artistTerm&entity=song&limit=300

The Caching Architecture will be works on itunes album seach.

Caching Architecture

Caching Architecture

Other look up option will be available on the itunes album search are.

iTunes Search API

iTunes Search API

For more details about the album search criteria can be found here.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

 

FacebookTwitterGoogle+RSS