Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple Music URL Scheme

I need to know the URL Scheme of Apple Music to open a specific song. Up to now I was using the link like this:

https://itunes.apple.com/us/album/monsieur-cousteau/id496076893?i=496076903&uo=4

That link, was working perfectly in iTunes Store, but now is not working any more. That's because the link is opened by Apple Music, and it seems to work because it opens the album, but not the specific song.

like image 675
Dani G. Avatar asked Jul 02 '15 20:07

Dani G.


1 Answers

The structure of the links has changed there is now a flag in there for the open method:

iTunes:

https://geo.itunes.apple.com/au/album/monsieur-cousteau/id496076893?i=496076903&app=itunes

Apple music:

https://geo.itunes.apple.com/au/album/monsieur-cousteau/id496076893?i=496076903&mt=1&app=music

Note the app= at the end

There is a link generator here: https://tools.applemediaservices.com/ but I would imaging that you are generating these from your own log of apple ID's yes?

Also you will need to change the store, I am /au/ because I am in australia, these links don't always automatically forward the user and can give "Not available on your store" errors.

To get to a specific track you use this:

https://itunes.apple.com/au/album/monsieur-cousteau/id496076893?i=496076903&app=itunes&ign-mpt=uo%3D4#

Note the change in uo part, I am not sure how this particular part is generated as I got out of the industry a year ago but there is more information here: https://www.apple.com/itunes/affiliates/resources/documentation/tools_en.html unfortunately being I no longer work in the industry I am not classed as an affiliate any more.

like image 59
Dan Donoghue Avatar answered Sep 21 '22 06:09

Dan Donoghue