网易云音乐API接口

Myer KingsR 2016-8-27 1595

本帖最后由 KingsR 于 2016-12-18 13:39 编辑

转自KINGSR'S BLOG
请求URL地址:
http://api.kingsr.cc/ntemusic/ntemusic.php
注意:接口目前支持https请确保地址正确;接口目前使用GET传参,无论任何功能只需修改参数无需修改地址。
详细的说明文档参见:https://open.kingsr.cc/ntedoc.html

请求参数:


各项目URL示例:
http://api.kingsr.cc/ntemusic/ntemusic.php?t=id&s=Fade
http://api.kingsr.cc/ntemusic/ntemusic.php?t=z&s=Fade
http://api.kingsr.cc/ntemusic/ntemusic.php?t=m&id=26353044
http://api.kingsr.cc/ntemusic/ntemusic.php?t=ml&id=26353044
http://api.kingsr.cc/ntemusic/ntemusic.php?t=aa&aid=166009&nun=5
http://api.kingsr.cc/ntemusic/ntemusic.php?t=ai&aid=3021064

各个项目返回的格式均为JSON格式,版面有限只展示第二个项目的返回:
{
"songs": [
{
"starred": false,
"popularity": 100,
"starredNum": 0,
"playedNum": 0,
"dayPlays": 0,
"hearTime": 0,
"mp3Url": "http://m2.music.126.net/2Bq98Ma1N4TgOz82y2W7kQ==/3203976883393415.mp3",
"rtUrls": [],
"artists": [
{
"img1v1Id": 0,
"picId": 0,
"briefDesc": "",
"picUrl": "http://p3.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"albumSize": 0,
"img1v1Url": "http://p4.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"trans": "",
"musicSize": 0,
"alias": [],
"name": "李志",
"id": 3681
}
],
"score": 100,
"copyrightId": 16001,
"hMusic": {
"volumeDelta": 1.67599,
"bitrate": 320000,
"dfsId": 3203976883393415,
"playTime": 126853,
"sr": 44100,
"name": "忽然",
"id": 27748410,
"size": 5094564,
"extension": "mp3"
},
"mMusic": {
"volumeDelta": 2.05952,
"bitrate": 160000,
"dfsId": 2871924371791173,
"playTime": 126853,
"sr": 44100,
"name": "忽然",
"id": 27748411,
"size": 2555463,
"extension": "mp3"
},
"lMusic": {
"volumeDelta": 2.32495,
"bitrate": 96000,
"dfsId": 3209474441532306,
"playTime": 126853,
"sr": 44100,
"name": "忽然",
"id": 27748412,
"size": 1539822,
"extension": "mp3"
},
"album": {
"songs": [],
"paid": false,
"onSale": false,
"tags": "",
"artists": [
{
"img1v1Id": 0,
"picId": 0,
"briefDesc": "",
"picUrl": "http://p4.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"albumSize": 0,
"img1v1Url": "http://p4.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
"trans": "",
"musicSize": 0,
"alias": [],
"name": "李志",
"id": 3681
}
],……
}
这些就是大概的信息。
这些就是大概的信息。
至于如何使用,我就不说了。
技术源自KINGSR


最新回复 (5)
  • Myer 888831174 2016-8-28
    0 2
    包了一层
  • Myer KingsR 2016-8-28
    0 3
    Quote888831174 发表于 2016-8-28 01:00
    包了一层


    嗯,的确封装了一番。
  • Myer 馒头_233 2016-8-28
    0 4
    {:4_168:}感谢分享
  • WebMaster freejishu 2016-12-17
    0 5
    目前看似乎挂了的样子.....
  • Myer KingsR 2016-12-18
    0 6
    Quotefreejishu 发表于 2016-12-17 18:07
    目前看似乎挂了的样子.....


    修复了,没更新社区的而已。其实封装了一层而已。大佬见笑
    • MyPCQQ官方站
      7
        登陆 注册 QQ登陆(暂不可用)
返回