稳定、快速、免费的 API 接口服务
网易云随机歌曲API
接口地址: https://api.suyanw.cn/api/neran.php
返回格式: 请看返回示例
请求方式: GET
请求示例: https://api.suyanw.cn/api/neran.php?type=mp3
请求参数说明:
| 名称 | 必填 | 说明 |
|---|---|---|
| type | 否 | 返回格式,默认text可选xml/mp3 |
| hh | 否 | 换行符号(默认\n) |
系统级错误:
| 名称 | 说明 |
|---|---|
| 400 | 请求错误! |
| 403 | 请求被服务器拒绝! |
| 405 | 客户端请求的方法被禁止! |
| 408 | 请求时间过长! |
| 500 | 服务器内部出现错误! |
| 501 | 服务器不支持请求的功能,无法完成请求! |
| 503 | 系统维护中! |
返回示例:
{
"name": "Una Mattina",
"picurl": "http://p1.music.126.net/X9w2xv3D6IHYVyVDE7pyXw==/109951169734974353.jpg",
"artistsname": "Una Mattina",
"avatarurl": "http://p1.music.126.net/UkV8J20SjY_m57Pu0UoNKw==/109951173234109857.jpg",
"nickname": "沈沐木木",
"content": "路人缘都败坏完了,有时候也别怪别人对你们有刻板印象",
"timeStr": "03-02",
"likedCount": 18408,
"id": 2603500959,
"mp3url": "https://music.163.com/song/media/outer/url?id=2603500959.mp3",
"duration": "02:57",
"lyric": "[00:03.533]Ain't got nobody to call me baby anymore,\n[00:10.552]No one sense my baby walked out the door,\n[00:19.630]With a broken heart that you tore apart,\n[00:27.376]No one to hold me like you did before.\n[00:34.167]Why does it always have to be this way,\n[00:41.955]Why couldn't it have lasted just one more day,\n[00:50.476]Ain't got nobody to call me baby anymore,\n[00:57.834]No one sense my baby walked out the door,\n[01:21.508]Ain't got nobody to call me baby anymore,\n[01:26.523]No one to hold me like you did before.\n[01:37.056]There is nothing but sadness in my heart,\n[01:42.035]Not like the feeling I had from the start,\n[01:52.812]Why does it always have to be this way,\n[02:00.614]Why couldn't it have lasted just one more day,\n[02:09.423]Ain't got nobody to call me baby anymore,\n[02:16.184]No one sense my baby walked out the door,\n[02:41.000]Ain't got nobody to call me baby anymore,\n[02:47.963]No one to hold me like you did before.\n",
"tips": "会员歌曲无法播放"
}
错误码格式说明:
| 名称 | 说明 |
|---|---|
| 无 |
调用示例:
无