Search code examples
iositunes

iTunes API - How to tell if a song is available on Apple Music?


Apple recently updated the iTunes Affiliate API to redirect all links to Apple Music by default (https://www.apple.com/itunes/affiliates/resources/blog/apple-music-is-now-live-1.html). This seems to be a total mess at the moment because about 50% of the links will open Music.app and show you a beautiful white blank page. Then nothing.

Is there any way to tell if the link will be a hit without throwing users to Music.app?


Solution

  • The object isStreamable was added and it will return true or false indicating that the track is available in Apple Music or not.