objective-c - 使用 Apple Search API 按流派搜索?

标签 objective-c ios app-store

是否可以使用 Apple Search API 按流派进行搜索?我在考虑应用程序商店中的特定游戏。使用 Obj-c。

正如这个问题的评论中所指出的......

Search Apple App store by genre with iOS/Obj-c

尝试按流派搜索似乎有问题,所以我正在寻找实际有效的示例的答案,而不仅仅是文档链接。

最佳答案

它实际上并没有记录在 Search API documentation 上, 但您可以将 genreId 参数添加到搜索 URL 并将搜索限制为特定类型。

如果您查看从 a search for "Yelp" 返回的 JSON ,有4个有趣的事情:

"genreIds":["6005", "6001"]
"genres":["Social Networking", "Weather"]
"primaryGenreName":"Social Networking"
"primaryGenreId":6005

&genreId=6001 添加到 URL 将在美国的“天气”类别中查找应用程序。我在 URL 中使用搜索词“检查”。

https://itunes.apple.com/search?term=Check&country=us&entity=software&genreId=6001

因为它没有记录,所以你不能指望它永远工作。您也可以使用 primaryGenreName 作为参数,我没试过。您还必须弄清楚哪些数字对应于哪些类别。

关于objective-c - 使用 Apple Search API 按流派搜索?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13918580/

相关文章:

ios - 访问另一个类中的 ScrollView 委托(delegate)方法

ios - 将 UISearchBar 添加到 UITableView

ios - 遍历对象数组并添加到数组数组

iphone - Objective-C UILabel 作为超链接

objective-c - 如何为 UIBezierPath 设置动画

ios - 如何将设备 token 从 AppDelegate 传递到 UIViewController

ios - 将单元格数据(即 cell.textlabel.text 和 cell.imageView.image)传递给另一个 View Controller

iphone - Apple 在拒绝 iOS 应用程序后提供多长时间重新提交应用程序?

iphone - future "Availability Date"的iPhone App当天会出现在 "New Releases"吗?

google-play - 在私有(private)/受限应用商店中部署移动应用程序