从AppStore api获取特定值

时间:2014-07-15 08:52:01

标签: json

我有以下问题。使用https://itunes.apple.com/lookup?id=284910350时,我会得到这样的回复

{
 "resultCount":1,
 "results": [
{"kind":"software", "features":["iosUniversal"], 
"supportedDevices":["iPadMini4G", "iPhone4S", 
"iPhone5s", "iPadThirdGen4G", "iPodTouchourthGen",
"iPhone4", "iPad23G", "iPad2Wifi", "iPadFourthGen", 
"iPadFourthGen4G", "iPhone-3GS", "iPhone5c", "iPadThirdGen",
"iPadMini", "iPodTouchFifthGen", "iPhone5"], "isGameCenterEnabled":false, 
"screenshotUrls":["http://a5.mzstatic.com/us/r30/Purple2/v4/3d/60/77/3d60774b-12f1-3e6b-ae57-28a64e8f1067/screen1136x1136.jpeg",
"http://a3.mzstatic.com/us/r30/Purple/v4/dd/88/1c/dd881c35-51b3-3033-cef2-08b3deebaa87/screen1136x1136.jpeg",  
"http://a4.mzstatic.com/us/r30/Purple4/v4/0c/98/a5/0c98a5a2-f13b-9e36-f027-8fe9a54f141e/screen1136x1136.jpeg", 
"http://a4.mzstatic.com/us/r30/Purple6/v4/2f/ae/15/2fae15cd-555c-275a-7d59-235fcf402309/screen1136x1136.jpeg"], 
"ipadScreenshotUrls":["http://a1.mzstatic.com/us/r30/Purple/v4/fb/b2/2d/fbb22d69-9454-d3a3-dd4d-d555ae7ae85c/screen480x480.jpeg", 
"http://a2.mzstatic.com/us/r30/Purple/v4/e4/bc/11/e4bc1125-67e1-4ece-b67e-5d6839b77eee/screen480x480.jpeg", 
"http://a4.mzstatic.com/us/r30/Purple6/v4/93/97/b7/9397b7eb-61cb-ae88-c4e3-c8710079c95e/screen480x480.jpeg", 
"http://a4.mzstatic.com/us/r30/Purple2/v4/96/da/60/96da606a-90f7-dc96-9a48-a80ead4be3d8/screen480x480.jpeg"], 
"artworkUrl60":"http://a1150.phobos.apple.com/us/r30/Purple/v4/d3/38/b6/d338b6ed-cca7-e4e2-7080-e4dbaa6124a8/57.png", 
"artworkUrl512":"http://a255.phobos.apple.com/us/r30/Purple4/v4/c6/6c/92/c66c92d2-58eb-60dc-1ab8-d9ac3b980d12/mzl.tdhykqjc.png", 
"artistViewUrl":"https://itunes.apple.com/us/artist/yelp/id284910353?uo=4", 
"artistId":284910353, "artistName":"Yelp", "price":0.00, "version":"7.9.2", 
"description":"Top-ranked Yelp for your iPhone or iPad has over 50 million reviews on businesses
worldwide \u2014 all in the palm of your hand. Whether you are looking for a pizzeria that is open 
now or a coffee shop nearby, Yelp is your local guide to finding just the place to eat, shop, drink, 
relax, and play.\n\n\u2022 Discover great local businesses.\n\u2022 Search for nearby restaurants, 
shops, and services.\n\u2022 Filter search results by neighborhood, distance, rating, price, and what\u2019s
open now.\n\u2022 Read millions of reviews written by a community of active, expert locals.
\n\u2022 Get to know a business through beautiful photos.\n\u2022 Find great Deals offered by your 
favorite local businesses.\n\u2022 Look up addresses and phone numbers, call a business, or make reservations
directly from the app.\n\u2022 Write reviews, check-in to businesses, upload photos, and add tips
of your own!",
"currency":"USD",
"genres":["Travel", "Navigation"], "genreIds":["6003", "6010"], "releaseDate":"2008-07-11T07:00:00Z",
"sellerName":"Yelp, Inc.", "bundleId":"com.yelp.yelpiphone", "trackId":284910350, "trackName":"Yelp",
"primaryGenreName":"Travel", "primaryGenreId":6003, 
"releaseNotes":"New in v7.9.2:
\n\u2022 Fixed another bug. Boom.\n\nNew in v7.9.1:\n\u2022 Bug fixes and other improvements
\n\nNew in v7.9:\n\u2022 Our iPhone business page has a hot new modern look just in time for the summer.
\n\u2022 Have you ever uploaded a photo that you later regretted? Yup, us too. Now you can delete 
these photos straight from your app.", "minimumOsVersion":"6.0", "formattedPrice":"Free", "wrapperType":"software",
"trackCensoredName":"Yelp", "languageCodesISO2A":["NB", "CS", "DA", "NL", "EN", "FI", "FR", "DE", "IT", 
"JA", "PL", "PT", "ES", "SV", "TR"], "fileSizeBytes":"30911255", "contentAdvisoryRating":"12+", "averageUserRatingForCurrentVersion":4.0,
"userRatingCountForCurrentVersion":230, "artworkUrl100":"http://a255.phobos.apple.com/us/r30/Purple4/v4/c6/6c/92/c66c92d2-58eb-60dc-1ab8-d9ac3b980d12/mzl.tdhykqjc.png", 
"trackViewUrl":"https://itunes.apple.com/us/app/yelp/id284910350?mt=8&uo=4", "trackContentRating":"12+",
 "averageUserRating":4.0, "userRatingCount":189759}]
}

我是否有机会在更改的网址结果中使用https://itunes.apple.com/lookup?id=284910350 +一些额外的参数,如下所示:

{
 "resultCount":1,
 "results": [
{ "price":0.00, "formattedPrice":"Free"}]
}

因为我在提供应用ID时只需要价格和格式化价格,所以我可以减少数据传输。

0 个答案:

没有答案