欢迎光临
我们一直在努力

网易云音乐API接口

从某插件获取的网易云音乐API接口
[code]http://music.163.com/api/song/detail/?id=音乐ID&ids=%5B音乐ID%5D[/code]
通过此接口可以返还网易云音乐的json格式信息
如http://music.163.com/api/song/detail/?id=31445554&ids=%5B31445554%5D返回的json数据格式如下

{
    "songs": [
        {
            "starred": false,
            "popularity": 100,
            "starredNum": 0,
            "playedNum": 0,
            "dayPlays": 0,
            "hearTime": 0,
            "mp3Url": "http://m2.music.126.net/K1SFXCvWf8BO9VEpSvx2ew==/7967061257205150.mp3",
            "rtUrls": [],
            "audition": null,
            "ringtone": null,
            "disc": "",
            "no": 0,
            "crbt": null,
            "bMusic": {
                "volumeDelta": 3.63133,
                "sr": 44100,
                "dfsId": 7967061257205150,
                "playTime": 190122,
                "bitrate": 96000,
                "name": null,
                "id": 103899068,
                "size": 2282101,
                "extension": "mp3"
            },
            "rtUrl": null,
            "position": 1,
            "duration": 190122,
            "status": 0,
            "alias": [],
            "artists": [
                {
                    "img1v1Id": 18686200114669624,
                    "topicPerson": 0,
                    "musicSize": 0,
                    "alias": [],
                    "picUrl": "http://p3.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                    "trans": "",
                    "picId": 0,
                    "albumSize": 0,
                    "img1v1Url": "http://p3.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg",
                    "briefDesc": "",
                    "name": "Jam",
                    "id": 1071031,
                    "img1v1Id_str": "18686200114669622"
                }
            ],
            "album": {
                "songs": [],
                "paid": false,
                "onSale": false,
                "tags": "",
                "blurPicUrl": "http://p4.music.126.net/9kZl6NRj3HxmQQ8DqTjZ4Q==/17729624997966923.jpg",
                "companyId": 0,
                "pic": 17729624997966924,
                "status": 0,
                "description": "",
                "subType": null,
                "alias": [],
                "artists": [
                    {
                        "img1v1Id": 18686200114669624,
                        "topicPerson": 0,
                        "musicSize": 0,
                        "alias": [],
                        "picUrl": "http://p4.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                        "trans": "",
                        "picId": 0,
                        "albumSize": 0,
                        "img1v1Url": "http://p4.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg",
                        "briefDesc": "",
                        "name": "Jam",
                        "id": 1071031,
                        "img1v1Id_str": "18686200114669622"
                    }
                ],
                "artist": {
                    "img1v1Id": 18686200114669624,
                    "topicPerson": 0,
                    "musicSize": 0,
                    "alias": [],
                    "picUrl": "http://p3.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg",
                    "trans": "",
                    "picId": 0,
                    "albumSize": 0,
                    "img1v1Url": "http://p3.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg",
                    "briefDesc": "",
                    "name": "",
                    "id": 0,
                    "img1v1Id_str": "18686200114669622"
                },
                "picUrl": "http://p4.music.126.net/9kZl6NRj3HxmQQ8DqTjZ4Q==/17729624997966923.jpg",
                "commentThreadId": "R_AL_3_3116800",
                "publishTime": 1429200000000,
                "copyrightId": 0,
                "picId": 17729624997966924,
                "company": "独立发行",
                "briefDesc": "",
                "name": "七月上",
                "id": 3116800,
                "type": "DEMO",
                "size": 1,
                "picId_str": "17729624997966923"
            },
            "commentThreadId": "R_SO_4_31445554",
            "copyFrom": "",
            "fee": 0,
            "score": 100,
            "copyrightId": 0,
            "mMusic": {
                "volumeDelta": 3.54439,
                "sr": 44100,
                "dfsId": 7940672978136273,
                "playTime": 190122,
                "bitrate": 160000,
                "name": null,
                "id": 103899067,
                "size": 3803472,
                "extension": "mp3"
            },
            "lMusic": {
                "volumeDelta": 3.63133,
                "sr": 44100,
                "dfsId": 7967061257205150,
                "playTime": 190122,
                "bitrate": 96000,
                "name": null,
                "id": 103899068,
                "size": 2282101,
                "extension": "mp3"
            },
            "hMusic": {
                "volumeDelta": 3.15118,
                "sr": 44100,
                "dfsId": 3376600209531667,
                "playTime": 190122,
                "bitrate": 320000,
                "name": null,
                "id": 103899066,
                "size": 7606900,
                "extension": "mp3"
            },
            "mvid": 0,
            "ftype": 0,
            "rtype": 0,
            "rurl": null,
            "name": "七月上",
            "id": 31445554
        }
    ],
    "equalizers": {},
    "code": 200
}

有了这个API,剩下的内容利用PHP加工就可以了。

未经允许不得转载:侯建方的个人网站 » 网易云音乐API接口

点击此处获取更多金融后续培训参考答案

登录

找回密码

注册