欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

app store搜索接口

程序员文章站 2024-03-25 12:25:16
...
1.关键词搜索app列表

  通过pc端访问苹果官网,在搜索栏搜索app时,会发现官网返回的结果不是很完美,一部分app可以搜索到,例如:微信;还有一部分app通过关键词搜索不到,会返回一些技术支持的文章,例如:百度地图;目前我还没有从官网其它地方找到可以搜索app的入口。
  由于业务要求严格,这个搜索栏返回的结果不能很好的满足需求,在查询资料的过程中,发现appStore提供了对外访问iTunes的接口(https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/),只不过api举例不是特别详细,没有提供app搜索的样例,但是通过自己分析,一样可以拼装出搜索的url:
例如搜索关键词“微信”,返回结果是json字符串,解析json即可。
  URLhttp://itunes.apple.com/cn/search?term=微信&media=software&limit=10

2.返回数据部分样例
{
 "resultCount":1,
 "results": [
{
"screenshotUrls":["https://is2-ssl.mzstatic.com/image/thumb/Purple123/v4/89/7d/9a/897d9a6e-7101-7b5c-3cf2-30313ae5d8be/pr_source.png/392x696bb.png", "https://is1-ssl.mzstatic.com/image/thumb/Purple123/v4/80/33/05/803305db-9ef9-5ed1-7569-1f7f5e2b20d1/pr_source.png/392x696bb.png", "https://is5-ssl.mzstatic.com/image/thumb/Purple123/v4/87/ff/c9/87ffc940-b292-4b49-fa6e-3014c72afcbb/pr_source.png/392x696bb.png", "https://is4-ssl.mzstatic.com/image/thumb/Purple113/v4/38/13/2d/38132de7-6a8f-7800-cd20-5844c21a0af7/pr_source.png/392x696bb.png", "https://is2-ssl.mzstatic.com/image/thumb/Purple123/v4/d8/df/22/d8df2239-7b08-35ed-57fb-3cb593eedf99/pr_source.png/392x696bb.png", "https://is3-ssl.mzstatic.com/image/thumb/Purple123/v4/df/0f/9c/df0f9c2e-19aa-1f6c-2cd4-3c94d54759a0/pr_source.png/392x696bb.png"], 
"ipadScreenshotUrls":["https://is3-ssl.mzstatic.com/image/thumb/Purple123/v4/c5/a3/cb/c5a3cb60-e045-a634-fda6-94765352af54/mzl.imkvrcco.jpg/576x768bb.jpg", "https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/a3/02/6f/a3026f41-0c69-19c0-6ac2-1fefeba31934/mzl.bwmfmxug.jpg/576x768bb.jpg", "https://is3-ssl.mzstatic.com/image/thumb/Purple123/v4/09/7c/50/097c5048-2f16-22b0-fae3-a19128422f06/mzl.gxopfyrb.jpg/576x768bb.jpg"], "appletvScreenshotUrls":[], "artworkUrl60":"https://is2-ssl.mzstatic.com/image/thumb/Purple123/v4/ae/80/6f/ae806f59-f26f-99d1-f96a-3adfacfe6659/source/60x60bb.jpg", "artworkUrl512":"https://is2-ssl.mzstatic.com/image/thumb/Purple123/v4/ae/80/6f/ae806f59-f26f-99d1-f96a-3adfacfe6659/source/512x512bb.jpg", "artworkUrl100":"https://is2-ssl.mzstatic.com/image/thumb/Purple123/v4/ae/80/6f/ae806f59-f26f-99d1-f96a-3adfacfe6659/source/100x100bb.jpg", "artistViewUrl":"https://apps.apple.com/cn/developer/wechat/id614694882?uo=4", 
"supportedDevices":["iPadAir-iPadAir", "iPadAirCellular-iPadAirCellular", "iPadPro97Cellular-iPadPro97Cellular", "iPad611-iPad611", "iPadProFourthGenCellular-iPadProFourthGenCellular", "iPadProSecondGenCellular-iPadProSecondGenCellular", "iPhoneSE-iPhoneSE", "iPadProFourthGen-iPadProFourthGen", "iPadMini4-iPadMini4", "iPad73-iPad73", "iPhone6sPlus-iPhone6sPlus", "iPhoneSESecondGen-iPhoneSESecondGen", "iPhoneXS-iPhoneXS", "iPadAir2Cellular-iPadAir2Cellular", "iPhone11-iPhone11", "Watch4-Watch4", "iPhone5s-iPhone5s", "iPadSeventhGen-iPadSeventhGen", "iPad834-iPad834", "iPadAir3Cellular-iPadAir3Cellular", "iPhone11Pro-iPhone11Pro", "iPad856-iPad856", "iPhoneXR-iPhoneXR", "iPad812-iPad812", "iPadMiniRetina-iPadMiniRetina", "iPhone8-iPhone8", "iPad612-iPad612", "iPodTouchSeventhGen-iPodTouchSeventhGen", "iPhone11ProMax-iPhone11ProMax", "iPadMini5-iPadMini5", "iPhone7Plus-iPhone7Plus", "iPhone6s-iPhone6s", "iPhoneX-iPhoneX", "iPadMini4Cellular-iPadMini4Cellular", "iPhone6-iPhone6", "iPad74-iPad74", "iPadPro-iPadPro", "iPadMiniRetinaCellular-iPadMiniRetinaCellular", "iPadPro97-iPadPro97", "iPhone8Plus-iPhone8Plus", "iPad76-iPad76", "iPadProCellular-iPadProCellular", "iPhoneXSMax-iPhoneXSMax", "iPad878-iPad878", "iPad71-iPad71", "iPad72-iPad72", "iPadProSecondGen-iPadProSecondGen", "iPadAir2-iPadAir2", "iPodTouchSixthGen-iPodTouchSixthGen", "iPadMini3-iPadMini3", "iPhone6Plus-iPhone6Plus", "iPhone7-iPhone7", "iPad75-iPad75", "iPadAir3-iPadAir3", "iPadSeventhGenCellular-iPadSeventhGenCellular", "iPadMini3Cellular-iPadMini3Cellular", "iPadMini5Cellular-iPadMini5Cellular"], "advisories":["频繁/强烈的成人/性暗示题材"], "isGameCenterEnabled":false, "features":["iosUniversal"], "kind":"software", "trackCensoredName":"微信", "languageCodesISO2A":["AR", "ZH", "EN", "FR", "DE", "ID", "IT", "JA", "KO", "MS", "PT", "RU", "ZH", "ES", "TH", "ZH", "TR", "VI"], "fileSizeBytes":"329219072", "sellerUrl":"http://weixin.qq.com", "contentAdvisoryRating":"17+", "averageUserRatingForCurrentVersion":4.42220999999999975216269376687705516815185546875, "userRatingCountForCurrentVersion":5099120, "averageUserRating":4.42220999999999975216269376687705516815185546875, "trackViewUrl":"https://apps.apple.com/cn/app/%E5%BE%AE%E4%BF%A1/id414478124?uo=4", "trackContentRating":"17+", "trackName":"微信", "trackId":414478124, "releaseDate":"2011-01-21T01:32:15Z", "genreIds":["6005", "6007"], "formattedPrice":"免费", "primaryGenreName":"Social Networking", "isVppDeviceBasedLicensingEnabled":true, "currentVersionReleaseDate":"2020-07-01T06:09:35Z", "releaseNotes":"本次更新:\n- 解决了一些已知问题。\n\n最近更新:\n- 可跟随系统的设置,切换为深色模式。\n- 优化了语音消息的发送体验,上滑转文字更方便了。", "primaryGenreId":6005, "sellerName":"Tencent Technology (Shenzhen) Company Limited", "minimumOsVersion":"10.0", "currency":"CNY", 
"description":"微信是一款全方位的手机通讯应用,帮助你轻松连接全球好友。微信可以群聊、进行视频聊天、与好友一起玩游戏,以及分享自己的生活到朋友圈,让你感受耳目一新的移动生活方式。\n\n  为什么要使用微信:\n  • 多媒体消息:支持发送视频、图片、文本和语音消息。\n  • 群聊和通话:组建高达500人的群聊和高达9人的实时视频聊天。\n  • 语音和视频聊天:提供全球的高质量通话。\n  • 表情商店:海量动态表情,包括热门卡通人物和电影,让聊天变得更生动有趣。\n  • 朋友圈:与好友分享每个精彩瞬间,记录自己的生活点滴。\n  • 隐私保护:严格保护用户的隐私安全,是唯一一款通过TRUSTe认证的实时通讯应用。\n  • 认识新朋友:通过“雷达加朋友”、“附近的人”和“摇一摇”认识新朋友。\n  • 实时位置共享:与好友分享地理位置,无需通过语言告诉对方。\n  • 多语言:支持超过20种语言界面,并支持多国语言的消息翻译。\n  • 微信运动:支持接入Apple Watch及健康app数据,可在步数排行榜上和朋友一较高下。若需使用,可在“设置-通用-辅助功能”内启用。 \n  • 更多功能: 支持跨平台、聊天室墙纸自定义、消息提醒自定义和公众号服务等。", "artistId":614694882, "artistName":"WeChat", "genres":["社交", "效率"], "price":0.00, "bundleId":"com.tencent.xin", "version":"7.0.14", "wrapperType":"software", "userRatingCount":5099120}]
}

参考文章:https://weibo.com/p/23041812e1c1e0b0102wyrm

相关标签: 爬虫 大数据

上一篇: jq-animate

下一篇: 原生js的常用方法