How do you use iTunes Affiliates Search API to find a song title from a specific artist

4.6k views Asked by At

I am trying to use the iTunes Affiliate Search API in my iPhone App to search for content within the iTunes Store. An example URL to search for "I Want To Hold Your Hand" is:

http://itunes.apple.com/search?term=i+want+to+hold+your+hand&entity=song

This search finds all songs with the title "I Want To Hold Your Hand". However, I only want to find the songs that are by The Beatles. I tried the following to narrow the search, but it did not work:

http://itunes.apple.com/search?term=i+want+to+hold+your+hand&entity=song&term=beatles&entity=musicartist

This just provides the same result.

How do you construct a URL to find a song title from specific artist using itunes.apple.com/search

1

There are 1 answers

2
phi On BEST ANSWER

Will you be happy with the results if you include "the beatles" into your search term?

http://itunes.apple.com/search?term=the+beatles+i+want+to+hold+your+hand&entity=song

If not, it seems you'll have to do some post processing to the results of the query.