【问题标题】:How do you use iTunes Affiliates Search API to find a song title from a specific artist如何使用 iTunes Affiliates Search API 查找特定艺术家的歌曲名称
【发布时间】:2011-12-01 21:58:03
【问题描述】:

我正在尝试在我的 iPhone 应用程序中使用 iTunes Affiliate Search API 来搜索 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 查找特定艺术家的歌曲名称

【问题讨论】:

    标签: ios url itunes affiliates


    【解决方案1】:

    如果您在搜索词中包含“the beatles”,您会对结果感到满意吗?

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

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

    【讨论】:

    • 谢谢,但这仍然需要使用您建议的搜索字符串进行后处理。您可能是对的,后处理是唯一的方法。
    • 好吧,如果你按照艾琳建议的方法,你会得到包含“披头士”的搜索结果,从而扩大结果而不是缩小结果
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-30
    • 2020-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-22
    相关资源
    最近更新 更多