有没有人知道任何音乐API,让你用歌曲名称查询,并返回一个类型?
即http://foo.bar/api/?song=Baby&artist=Justin+Bieber回报是'流行'?
我正在创建一个依赖于唯一有趣的功能是预测的应用程序,但我需要类型来确定一些额外的数据!
472*_*084 14
您可以使用last.fm API:http://www.last.fm/api/show? service = 356
以下是返回的XML示例:http://ws.audioscrobbler.com/2.0/? method = track.getinfo&api_key = b25b959554ed76058ac220b7b2e0a026&artist =者&track = believe
你必须至少给它艺术家和曲目名称,然后你得到标签,这些非常类似于流派但不一样,它们也是由用户创建的.
artist = cher&track =相信给出:
<toptags>
<tag>
<name>pop</name>
<url>http://www.last.fm/tag/pop</url>
</tag>
<tag>
<name>dance</name>
<url>http://www.last.fm/tag/dance</url>
</tag>
<tag>
<name>90s</name>
<url>http://www.last.fm/tag/90s</url>
</tag>
<tag>
<name>cher</name>
<url>http://www.last.fm/tag/cher</url>
</tag>
<tag>
<name>female vocalists</name>
<url>http://www.last.fm/tag/female%20vocalists</url>
</tag>
</toptags>
Run Code Online (Sandbox Code Playgroud)
它具有一些很棒的功能,比如当你拼写一个艺术家的名字时就错了.
| 归档时间: |
|
| 查看次数: |
6664 次 |
| 最近记录: |