我已經在我的應用程序中使用iTunes API一段時間了,但截至最近幾天,我已經注意到它返回了奇怪的結果。我目前使用它來搜索軟件,但現在開始將軟件藝術家添加到我認爲與搜索參數不符的結果中。以下是搜索我的應用程序的URL,下面是返回的JSON。iTunes Search API返回額外的,不正確的結果
http://itunes.apple.com/search?term=AppTracker%20Deluxe&limit=100&entity=software&lang=en_GB&country=GB
{
"resultCount":2,
"results": [
{"kind":"software", "features":[],
"supportedDevices":["iPhone5s", "iPadMini", "iPhone5c", "iPadFourthGen", "iPad2Wifi","iPad23G", "iPadThirdGen", "iPhone5", "iPodTouchFifthGen", "iPadThirdGen4G", "iPhone4", "iPadFourthGen4G", "iPadMini4G", "iPhone4S"], "isGameCenterEnabled":false, "
切割大多數的東西了空間
"languageCodesISO2A":["EN", "FR", "DE", "IT", "ZH", "ES"], "fileSizeBytes":"3575818", "trackContentRating":"4+", "averageUserRating":5.0, "userRatingCount":5},
{"wrapperType":"artist", "artistType":"Software Artist", "artistName":"Handyman Interactive", "artistLinkUrl":"https://itunes.apple.com/gb/artist/handyman-interactive/id586907831?uo=4", "artistId":586907831}]
}
正如你所看到的,在返回正確的應用程序的頂部,它返回一個軟件藝術家(我自己在這種情況下),它過去沒有做過。很明顯,我可以更新應用程序忽略這些,但對於我的應用程序的當前版本,它會導致輕微的錯誤。這是蘋果終結的問題還是它的目的?
感謝您的幫助, 邁克
你能爲此提供任何代碼嗎..其實我試圖從iTunes獲取遊戲細節。但我無法得到..你能爲此發佈一些代碼嗎?我的問題是http://stackoverflow.com/questions/23696311/get-game-details-from-itunes-using-php – 2014-05-16 13:56:44