Getting Application JSON data from Apple App Store


#1

Sometimes you need to get more information about an app in the Apple App Store in order to troubleshoot obscure deployment issues.
You can query the App Store in order to return a JSON file (Same an MDM server sees) via the following method:

Find the app to get the App ID

Craft the following URL using the ID that was returned
http://itunes.apple.com/lookup?id=434682528

Putting this URL into a browser should return a JSON file

Example of returned data below:

{
 "resultCount":1,
 "results": [
{
"ipadScreenshotUrls":["http://is5.mzstatic.com/image/thumb/Purple122/v4/8e/f4/eb/8ef4eb34-fc54-dbbd-8625-4ea998d37e9b/source/552x414bb.jpg", "http://is2.mzstatic.com/image/thumb/Purple111/v4/fd/5f/4a/fd5f4a65-7fde-df31-169d-37ce629a9421/source/552x414bb.jpg", "http://is3.mzstatic.com/image/thumb/Purple111/v4/9e/7d/d2/9e7dd203-02f5-1ea6-363e-29fa1ddc6b10/source/552x414bb.jpg", "http://is4.mzstatic.com/image/thumb/Purple111/v4/de/99/20/de9920df-b698-1cf3-e4dc-2316eedd312a/source/552x414bb.jpg"], "appletvScreenshotUrls":[], "artworkUrl60":"http://is5.mzstatic.com/image/thumb/Purple118/v4/78/21/16/78211613-fb23-a002-fc62-4abb69a8d0ed/source/60x60bb.jpg", "artworkUrl512":"http://is5.mzstatic.com/image/thumb/Purple118/v4/78/21/16/78211613-fb23-a002-fc62-4abb69a8d0ed/source/512x512bb.jpg", "artworkUrl100":"http://is5.mzstatic.com/image/thumb/Purple118/v4/78/21/16/78211613-fb23-a002-fc62-4abb69a8d0ed/source/100x100bb.jpg", "artistViewUrl":"https://itunes.apple.com/us/developer/zenprise/id402844564?uo=4", "isGameCenterEnabled":false, "kind":"software", "features":["iosUniversal"], 
"supportedDevices":["iPad2Wifi-iPad2Wifi", "iPad23G-iPad23G", "iPhone4S-iPhone4S", "iPadThirdGen-iPadThirdGen", "iPadThirdGen4G-iPadThirdGen4G", "iPhone5-iPhone5", "iPodTouchFifthGen-iPodTouchFifthGen", "iPadFourthGen-iPadFourthGen", "iPadFourthGen4G-iPadFourthGen4G", "iPadMini-iPadMini", "iPadMini4G-iPadMini4G", "iPhone5c-iPhone5c", "iPhone5s-iPhone5s", "iPadAir-iPadAir", "iPadAirCellular-iPadAirCellular", "iPadMiniRetina-iPadMiniRetina", "iPadMiniRetinaCellular-iPadMiniRetinaCellular", "iPhone6-iPhone6", "iPhone6Plus-iPhone6Plus", "iPadAir2-iPadAir2", "iPadAir2Cellular-iPadAir2Cellular", "iPadMini3-iPadMini3", "iPadMini3Cellular-iPadMini3Cellular", "iPodTouchSixthGen-iPodTouchSixthGen", "iPhone6s-iPhone6s", "iPhone6sPlus-iPhone6sPlus", "iPadMini4-iPadMini4", "iPadMini4Cellular-iPadMini4Cellular", "iPadPro-iPadPro", "iPadProCellular-iPadProCellular", "iPadPro97-iPadPro97", "iPadPro97Cellular-iPadPro97Cellular", "iPhoneSE-iPhoneSE", "iPhone7-iPhone7", "iPhone7Plus-iPhone7Plus", "iPad611-iPad611", "iPad612-iPad612", "iPad71-iPad71", "iPad72-iPad72", "iPad73-iPad73", "iPad74-iPad74"], 
"screenshotUrls":["http://is2.mzstatic.com/image/thumb/Purple122/v4/c8/0e/12/c80e1297-1598-eb4c-887b-114b71fd24b4/source/392x696bb.jpg", "http://is3.mzstatic.com/image/thumb/Purple111/v4/48/fe/b1/48feb191-147f-ef55-f311-601570a1fd39/source/392x696bb.jpg", "http://is5.mzstatic.com/image/thumb/Purple122/v4/3d/c7/ae/3dc7aeca-68d8-b090-2c8b-ca9ba70c246d/source/392x696bb.jpg", "http://is1.mzstatic.com/image/thumb/Purple82/v4/b8/1d/2d/b81d2d25-7c6d-9288-4f9f-33d7324e04bf/source/392x696bb.jpg"], "advisories":[], "averageUserRatingForCurrentVersion":3.0, "trackCensoredName":"Citrix Secure Hub", "languageCodesISO2A":["AR", "DA", "NL", "EN", "FR", "DE", "HE", "IT", "JA", "KO", "PT", "RU", "ZH", "ES", "SV", "ZH", "TR"], "fileSizeBytes":"57404416", "sellerUrl":"https://www.citrix.com/products/xenmobile/overview.html", "contentAdvisoryRating":"4+", "userRatingCountForCurrentVersion":1, "trackViewUrl":"https://itunes.apple.com/us/app/citrix-secure-hub/id434682528?mt=8&uo=4", "trackContentRating":"4+", "currency":"USD", "wrapperType":"software", "version":"10.7.0.6", "artistId":402844564, "artistName":"Zenprise", "genres":["Business"], "price":0.00, 
"description":"Citrix Secure Hub (formally known as Worx Home) provides direct access to your workspace for all mobile, web, virtual Windows and SaaS apps.  It provides single sign-on capabilities and the enforcement of device and app-level security policies.  Access all apps from a single interface\n·         Access to corporate resources\n·         Offline and online access", "trackId":434682528, "trackName":"Citrix Secure Hub", "bundleId":"com.zenprise.zpmdmbeta", "releaseNotes":"Thanks for using the XenMobile Apps! We make updates regularly to fix bugs, share new features, and make performance improvements.", "isVppDeviceBasedLicensingEnabled":true, "primaryGenreName":"Business", "releaseDate":"2011-05-15T19:55:49Z", "formattedPrice":"Free", "minimumOsVersion":"8.0", "primaryGenreId":6000, "sellerName":"Zenprise", "genreIds":["6000"], "currentVersionReleaseDate":"2017-09-06T16:15:09Z", "averageUserRating":2.0, "userRatingCount":521}]
}

#2

You can query this with powershell to be a bit more useful

Code example:

$store = Invoke-WebRequest -uri http://itunes.apple.com/lookup?id=434682528
$storeresults = ConvertFrom-Json $store.Content
$storeresults.results

Results:

ipadScreenshotUrls                 : {http://is5.mzstatic.com/image/thumb/Purple122/v4/8e/f4/eb/8ef4eb34-fc54-dbbd-8625-4ea998d37e9b/source/552x414bb.jpg,
                                     http://is2.mzstatic.com/image/thumb/Purple111/v4/fd/5f/4a/fd5f4a65-7fde-df31-169d-37ce629a9421/source/552x414bb.jpg,
                                     http://is3.mzstatic.com/image/thumb/Purple111/v4/9e/7d/d2/9e7dd203-02f5-1ea6-363e-29fa1ddc6b10/source/552x414bb.jpg,
                                     http://is4.mzstatic.com/image/thumb/Purple111/v4/de/99/20/de9920df-b698-1cf3-e4dc-2316eedd312a/source/552x414bb.jpg}
appletvScreenshotUrls              : {}
artworkUrl512                      : http://is5.mzstatic.com/image/thumb/Purple118/v4/78/21/16/78211613-fb23-a002-fc62-4abb69a8d0ed/source/512x512bb.jpg
artistViewUrl                      : https://itunes.apple.com/us/developer/zenprise/id402844564?uo=4
artworkUrl60                       : http://is5.mzstatic.com/image/thumb/Purple118/v4/78/21/16/78211613-fb23-a002-fc62-4abb69a8d0ed/source/60x60bb.jpg
artworkUrl100                      : http://is5.mzstatic.com/image/thumb/Purple118/v4/78/21/16/78211613-fb23-a002-fc62-4abb69a8d0ed/source/100x100bb.jpg
isGameCenterEnabled                : False
kind                               : software
features                           : {iosUniversal}
supportedDevices                   : {iPad2Wifi-iPad2Wifi, iPad23G-iPad23G, iPhone4S-iPhone4S, iPadThirdGen-iPadThirdGen...}
screenshotUrls                     : {http://is2.mzstatic.com/image/thumb/Purple122/v4/c8/0e/12/c80e1297-1598-eb4c-887b-114b71fd24b4/source/392x696bb.jpg,
                                     http://is3.mzstatic.com/image/thumb/Purple111/v4/48/fe/b1/48feb191-147f-ef55-f311-601570a1fd39/source/392x696bb.jpg,
                                     http://is5.mzstatic.com/image/thumb/Purple122/v4/3d/c7/ae/3dc7aeca-68d8-b090-2c8b-ca9ba70c246d/source/392x696bb.jpg,
                                     http://is1.mzstatic.com/image/thumb/Purple82/v4/b8/1d/2d/b81d2d25-7c6d-9288-4f9f-33d7324e04bf/source/392x696bb.jpg}
advisories                         : {}
averageUserRatingForCurrentVersion : 1.5
languageCodesISO2A                 : {AR, DA, NL, EN...}
fileSizeBytes                      : 57404416
sellerUrl                          : https://www.citrix.com/products/xenmobile/overview.html
userRatingCountForCurrentVersion   : 3
trackContentRating                 : 4+
trackViewUrl                       : https://itunes.apple.com/us/app/citrix-secure-hub/id434682528?mt=8&uo=4
trackCensoredName                  : Citrix Secure Hub
contentAdvisoryRating              : 4+
genreIds                           : {6000}
currentVersionReleaseDate          : 2017-09-06T16:15:09Z
releaseNotes                       : Thanks for using the XenMobile Apps! We make updates regularly to fix bugs, share new features, and make performance improvements.
currency                           : USD
wrapperType                        : software
version                            : 10.7.0.6
description                        : Citrix Secure Hub (formally known as Worx Home) provides direct access to your workspace for all mobile, web, virtual Windows and SaaS apps.  It provides
                                     single sign-on capabilities and the enforcement of device and app-level security policies.  Access all apps from a single interface
                                     ·         Access to corporate resources
                                     ·         Offline and online access
artistId                           : 402844564
artistName                         : Zenprise
genres                             : {Business}
price                              : 0.00
trackId                            : 434682528
trackName                          : Citrix Secure Hub
bundleId                           : com.zenprise.zpmdmbeta
isVppDeviceBasedLicensingEnabled   : True
primaryGenreName                   : Business
releaseDate                        : 2011-05-15T19:55:49Z
minimumOsVersion                   : 8.0
sellerName                         : Zenprise
primaryGenreId                     : 6000
formattedPrice                     : Free
averageUserRating                  : 2.0
userRatingCount                    : 523

#3

You can add additional keys into the API request

i.e. country

http://itunes.apple.com/lookup?id=434682528&country=NZ

The full list of parameters:

  • term
  • country
  • media
  • entity
  • attribute
  • callback
  • limit
  • lang
  • version
  • explicit

Apple documentation on this API is available here: https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/

The iTunes Search API is currently limited to approximately 20 calls per minute