如何从 iTunes Store 获取有关应用程序/歌曲/视频等的信息? [英] How can I fetch information about the app/song/video etc. from iTunes Store?
问题描述
我需要通过 iTunes Store 中的项目 ID 获取有关应用/歌曲/视频的信息.
I need to get an info about the app/song/video by item id from iTunes Store.
我发现 这个
但它不适用于应用程序.
But it doesn't work with apps.
是否有任何公共 API?
Is there any public API?
UPD:我可以使用 此链接,但这不是结构化数据,它只是 iTunes 显示内容的标记.我不能依赖它 - 它可以随时更改并且很难解析,因为它没有一致的结构......
UPD: I can get info using this link , but this is not a structured data it's just a markup for iTunes to display stuff. I can't rely on that - it can be changed anytime and is hard to parse because it has no consistent structure...
推荐答案
Apple 现在似乎提供更友好的搜索服务,返回 JSON.注意:文档 是否规定 API 用于推广搜索结果(即它专为附属链接而设计).
Apple now seems to offer a friendlier search service returning JSON. NB: the documentation does stipulate that the API is for use in connection with promoting the search results (i.e. it's designed for affiliate links).
例如,如果您知道某个应用的 Apple ID,则获取有关该应用的信息:
Example, fetching info about an app if you know its Apple ID:
http://itunes.apple.com/lookup?id=[appleID]
一般关键字搜索
http://itunes.apple.com/search?term=[query]
这篇关于如何从 iTunes Store 获取有关应用程序/歌曲/视频等的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!