In the itunes search api doc there is an example of searching for an artist called maroon and the url is like so:
https://itunes.apple.com/search?term=maroon&entity=allArtist&attribute=allArtistTerm
This returns over 50 results that start like this:
{
"resultCount": 50,
"results": [
{
"wrapperType": "artist",
"artistType": "Artist",
"artistName": "Maroon 5",
"artistLinkUrl": "https://itunes.apple.com/us/artist/maroon-5/id1798556?uo=4",
"artistId": 1798556,
"amgArtistId": 529962,
"primaryGenreName": "Pop",
"primaryGenreId": 14,
"radioStationUrl": "https://itunes.apple.com/station/idra.1798556"
},
{
"wrapperType": "artist",
"artistType": "Software Artist",
"artistName": "MaroonEntertainment",
"artistLinkUrl": "https://itunes.apple.com/us/artist/maroonentertainment/id537029262?uo=4",
"artistId": 537029262,
"radioStationUrl": "https://itunes.apple.com/station/idra.537029262"
},
Which is nice. However here is my problem: I would like to create a search query that is as specific as possible by combining the search for both an artist and a song name and an album name..
So for example I got this song:
- song: Across the Great Divide
- album: Great Divide
- Artist: Semisonic
I can search for the artist name only:
https://itunes.apple.com/search?term=Semisonic&entity=allArtist&attribute=allArtistTerm
I can search for the song term only:
https://itunes.apple.com/search?term=Across the Great Divide&entity=song&attribute=songTerm
I can search for the album name only:
https://itunes.apple.com/search?term=Great Divide&entity=album&attribute=albumTerm
However none of these guys give me the result i want (i can find the result i'm looking for amongst maybe 50 others.. but i just want the search query to be specific enough to avoid any client side filtering kind of thing).
How can I combine these searches? if I simply add two searches together (in this example i'm searching for both song and artist):
https://itunes.apple.com/search?term=Across the Great Divide&entity=song&attribute=songTerm&term=Semisonic&entity=allArtist&attribute=allArtistTerm
then apple will simply ignore the first search type (ie song) and return the results for artist only).
ideas?