如何使用 iTunes Affiliates Search API 查找特定艺术家的歌曲名称

发布于 2024-12-19 03:15:43 字数 653 浏览 2 评论 0原文

我正在尝试使用 iTunes我的 iPhone 应用程序中的联属搜索 API 用于在 iTunes Store 中搜索内容。搜索“I Want To Hold Your Hand”的示例 URL 为:

http://itunes.apple.com/search?term=i+want+to+hold+your+hand&entity=song

此搜索查找标题为“I Want To Hold Your Hand”的所有歌曲。但是,我只想找到披头士乐队的歌曲。我尝试了以下方法来缩小搜索范围,但它不起作用:

http://itunes.apple.com/search?term=i+want+to+hold+your+hand&entity=song&term=beatles&entity=musicartist

这仅提供了相同的结果。

如何使用 itunes.apple.com/search 构建 URL 来查找特定艺术家的歌曲标题

I am trying to use the iTunes Affiliate Search API in my iPhone App to search for content within the iTunes Store. An example URL to search for "I Want To Hold Your Hand" is:

http://itunes.apple.com/search?term=i+want+to+hold+your+hand&entity=song

This search finds all songs with the title "I Want To Hold Your Hand". However, I only want to find the songs that are by The Beatles. I tried the following to narrow the search, but it did not work:

http://itunes.apple.com/search?term=i+want+to+hold+your+hand&entity=song&term=beatles&entity=musicartist

This just provides the same result.

How do you construct a URL to find a song title from specific artist using itunes.apple.com/search

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云胡 2024-12-26 03:15:44

如果您在搜索词中包含“披头士乐队”,您会对结果感到满意吗?

http://itunes.apple.com/search?term=the+beatles+i+want+to+hold+your+hand&entity=song

如果没有,您似乎必须对查询结果进行一些后处理。

Will you be happy with the results if you include "the beatles" into your search term?

http://itunes.apple.com/search?term=the+beatles+i+want+to+hold+your+hand&entity=song

If not, it seems you'll have to do some post processing to the results of the query.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文