-1

If I have the Bundle ID of an app, is it possible to programmatically get the Apple ID? eg. the xxx part in this url: http://itunes.apple.com/lookup?id=xxx

Using the lookup url above, it is possible to do the reverse: get the bundle id given an app's apple id.

I'm ultimately looking to programmatically get the icon of an app, but I only know the Bundle ID of the apps. any help is appreciated.

Jeremy
  • 3,438
  • 3
  • 34
  • 57
  • Possible duplicate of [iTunes api, lookup by bundle ID?](https://stackoverflow.com/questions/8839328/itunes-api-lookup-by-bundle-id) – Jeremy Jan 03 '19 at 01:29

1 Answers1

0

This is actually remarkably easy and can be done programatically by simply changing the parameter of my original query from 'id' to 'bundleID'

eg. http://itunes.apple.com/lookup?bundleId=xxx

The response will be a JSON object with the results that will include the thumbnail url among other things. eg.

{
  "resultCount":1,
  "results": [
    {
      "screenshotUrls":[...], 
      "ipadScreenshotUrls":[...],
      "artworkUrl512":"...",
      "artistViewUrl":"...", 
      "artworkUrl60":"...",
      "artworkUrl100":"...", 
      ...
    }
  ]
}
Jeremy
  • 3,438
  • 3
  • 34
  • 57