I have a list of Apple app bundleIds (e.g. com.facebook.Facebook). What I am ultimately trying to achieve is to enrich this data with iTunes metadata, which is available via the iTunes Search API: http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html
I can get the specific information for a specific app if I know the app id (technically, the "trackId"), like so: http://itunes.apple.com/lookup?id=284882215 (284882215 being the trackId for the Facebook app)
However, I cannot use the bundleId in the same way. How can I systematically retrieve the app id (aka trackId) given the bundleId?