Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 iTunes 搜索 api 进行应用搜索,是否可以预先过滤结果,以便将搜索词应用于特定的字段集?例如,标题。我厌倦了找不到任何东西,只是因为它被埋在结果中,而其他一些更流行但完全不相关的应用程序出现在顶部。
iTunes 搜索 API 确实提供了这个功能,文档非常清楚地说明了如何做到这一点。
http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html
查看您可以附加的参数列表,您要查找的参数是“属性”:
您要在商店中搜索的属性,相对于指定的媒体类型。例如,如果您想按名称搜索艺术家,请指定 entity=allArtist&attribute=allArtistTerm。 在此示例中,如果您搜索 term=maroon,iTunes 会在搜索结果中返回“Maroon 5”,而不是所有曾经录制过标题中包含“maroon”一词的歌曲的艺术家。 默认值为与指定媒体类型关联的所有属性。
您要在商店中搜索的属性,相对于指定的媒体类型。例如,如果您想按名称搜索艺术家,请指定 entity=allArtist&attribute=allArtistTerm。
在此示例中,如果您搜索 term=maroon,iTunes 会在搜索结果中返回“Maroon 5”,而不是所有曾经录制过标题中包含“maroon”一词的歌曲的艺术家。
默认值为与指定媒体类型关联的所有属性。