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.

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

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度