douhu4091 2013-01-25 11:50
浏览 46
已采纳

iTunes中使用API​​的相册详细信息

I have an application for streaming audio( On-line FM Channel ).I have to get the details about an album that currently playing on the Radio.I have only Album Title and Artist Name. the Track Id of the songs is getting null from the API (I am using TD Player API).

The main issue is i don't get all info of the songs like cover url , order by url (itunes store) etc. But when i get this track id i can get all details of the songs from itunes store using their API.

So My qstion is any way to get the track id or full album info from itunes using Album Title and Artist Name.??

Thanks in advance

  • 写回答

1条回答 默认 最新

  • dongliang9682 2013-01-30 04:01
    关注

    The Search API has a few parameters that will help qualify the content you want returned.

    Firstly, you cannot search on the Album title and Artist at the same time. You can put both in the "term" field and hope for the best, but you are better off searching at the Album level if you know it.

    https://itunes.apple.com/search?term=Live+at+Wembley+Stadium&attribute=albumTerm&entity=song

    attribute=albumTerm indicates to the API that you want your "term" strictly related to album titles and not any of the other meta info.

    entity=song tells the API that you want all the songs returned and not just the Album info (default).

    Furthermore, if you have only the Artist name, your search may look like this:

    https://itunes.apple.com/search?term=Queen&attribute=artistTerm&entity=song&limit=300

    Unfortunately this returns 300 songs by Queen. You will need to further refine your search if the link you are expecting is not returned in this request.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办