Search code examples
apiitunesitunes-store

Is it possible to create URLs to items on the Apple iTunes store programmatically?


Is it possible to create URLs direct to items on the Apple iTunes store programmatically?

I have noticed that last.fm and similar sites have links which take the user directly to a part of the iTunes store, such as an album page.

The URL for the link is created by last.fm. Here's an example of such an URL: http://www.last.fm/affiliate_redirect.php?restype=9&id=3168755&supplier=24

I presume they have some code behind this link, but surely they did not add all of the items manually?


Solution

  • There are two aspects. First, you can get deep links by programatically searching the App Store:

    http://www.onemanclapping.org/2009/01/itms-link-generator-api.html
    

    Next, you can convert those links to affiliate links using the LinkShare API:

    http://brandontreb.com/money-you-might-be-missing-out-on-linkshare-api-integration/
    

    link text