How to link to the iTunes store from iPhone app?

marcgg picture marcgg · May 21, 2009 · Viewed 13.3k times · Source

I am trying to set up an application in which users will be able to stream music. When the user is streaming a MP3, I'd like to set up a link to the iTunes store to buy the MP3.

How can I do that? I feel like there should be some simple way of doing so using the song title and artist name, am I mistaking?

Thanks

Answer

Naaff picture Naaff · May 21, 2009

You can experiment with the iTMS Link Maker that Apple provides and see how the links are formed. In addition, here is the iTMS Link Maker FAQ.

See this blog post about how to query the iTMS Link Maker automatically. Basically, you can query the iTMS Link Maker and get an XML document back that your application can process.