稳定、快速、免费的 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": "time machine (feat. aren park)",
"picurl": "http://p2.music.126.net/b15pmn1qj28nyam8DdcCHA==/109951167480966719.jpg",
"artistsname": "seen 11:23 pm",
"avatarurl": "http://p2.music.126.net/c2oK8-rxfs_zsXgQXDPdUw==/109951167858901173.jpg",
"nickname": "矢柊",
"content": "听着这样的歌声很适合入睡或者永眠",
"timeStr": "2023-03-25",
"likedCount": 43126,
"id": 1379918404,
"mp3url": "https://music.163.com/song/media/outer/url?id=1379918404.mp3",
"duration": "03:45",
"lyric": "[00:00.000] 作词 : Michelangelo Apanay\n[00:01.000] 作曲 : Michelangelo Apanay\n[00:12.371]Staring at stars\n[00:15.380]Watching the moon\n[00:18.386]Hoping that one day they'll lead me to you\n[00:24.402]Wait every night\n[00:27.410]Cause if a star falls\n[00:29.919]I'll wish to go back to the times that I loved\n[00:36.435]Why do the stars shine so bright in the sky\n[00:41.702]If most of the people are sleeping at night\n[00:48.476]Why do we only have one chance at life\n[00:54.496]I wish I could go back in time\n[01:12.293]Pictures remind me of things I forgot\n[01:18.058]But also of all of the things that I've lost\n[01:24.327]Can't get them back they won't fall from above\n[01:29.842]So I try to forget all the times that I loved\n[01:36.359]Why do we remember beautiful lies\n[01:41.878]We end up regretting them most of our lives\n[01:48.396]Why do we only have one chance to try\n[01:53.907]I wish I could go back in time\n[01:58.922]Each time I fall asleep\n[02:03.430]I always see you there in my dreams\n[02:08.942]It's like going back in a time machine\n[02:14.960]I know when I wake up your time with me will end\n[02:22.478]So don't let me fall asleep\n[02:26.992]I don't wanna meet you there in my dreams\n[02:33.260]I know that we'll never build a time machine\n[02:38.775]It's time for me to try and wake up again\n[02:48.634]I fall asleep\n[02:52.146]But honestly\n[02:54.655]I wanna see you in my dreams\n[03:06.181]I'm trying to wake up again\n",
"tips": "会员歌曲无法播放"
}
错误码格式说明:
| 名称 | 说明 |
|---|---|
| 无 |
调用示例:
无