gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 05:24:29 25 4
gpt4 key购买 nike

我正在尝试使用 iTunes Affiliate Search API在我的 iPhone 应用程序中搜索 iTunes Store 中的内容。搜索“我想握住你的手”的示例 URL 是:

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

此搜索会查找标题为“我想握住你的手”的所有歌曲。但是,我只想找到甲壳虫乐队的歌曲。我尝试了以下方法来缩小搜索范围,但没有成功:

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

这只是提供相同的结果。

如何构建 URL 以使用 itunes.apple.com/search 查找特定艺术家的歌曲名称

最佳答案

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

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

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

关于ios - 如何使用 iTunes Affiliates Search API 查找特定艺术家的歌曲名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8348866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com