4

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

Till
  • 27,559
  • 13
  • 88
  • 122
JeffB6688
  • 3,782
  • 5
  • 38
  • 58

1 Answers1

7

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.

phi
  • 10,634
  • 6
  • 53
  • 88
  • thanks, but that would still require post processing with the search string you suggested. You may be right that post processing is the only way. – JeffB6688 Dec 01 '11 at 23:24
  • Well if you follow the method suggested by Irene you would land up with search results having "The Beatles" in it and thus expanding the result contrary to narrowing it – CJ8664 Mar 16 '14 at 04:00