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

I am trying to use the iTunes Affiliate Search API in my iPhone application to search for content in the iTunes Store. Example URL for the search β€œI want to hold my hand”:

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

All songs with the words "I Want To Hold Your Hand" are found in this search. However, I only want to find songs that belong to The Beatles. I tried the following to narrow my search, but that didn't work:

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

This gives the same result.

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

+4
source share
1 answer

Will you be pleased with the results if you include the Beatles in your search query?

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

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

+6
source

Source: https://habr.com/ru/post/1384216/


All Articles