Is there still a way to open an iTunes search API trackViewUrl in iTunes Store and not Apple Music?

449 Views Asked by At

Following this question we can get a JSON response from the iTunes Search API to direct users to the trackViewUrl. The answer suggested appending &app=itunes to have the iOS device open the URL in the iTunes Store instead of Apple Music, but my test suggests that this doesn't work and Apple Music is still opened.

For instance, the first item of the result of:

https://itunes.apple.com/search?term=pink+floyd%20high%20hopes

shows a trackViewUrl of:

https://music.apple.com/us/album/high-hopes/1067444712?i=1067444898&uo=4,

with the appended request is:

https://music.apple.com/us/album/high-hopes/1067444712?i=1067444898&uo=4&app=itunes

However, this link opens Apple Music on an iOS device.

Is there a way to open the iTunes Store instead? Or another way to open the iTunes Store to a specific track? I need DRM free tracks.

1

There are 1 best solutions below

1
On BEST ANSWER

The correct way of doing this now is with StoreKit.