网易云榜单随机歌曲API
本接口总调用:0次·今日调用:0次

接口地址: https://api.suyanw.cn/api/wyrp.php

返回格式: Json

请求方式: GET

请求示例: https://api.suyanw.cn/api/wyrp.php?type=mp3

请求参数说明:

名称必填说明
msg否选择输出分类[榜单随机歌曲|新歌榜|飙升榜|原创榜],为空输出榜单随机歌曲
type否返回格式,默认json可选text,mp3,mp3url
hh否换行符号(默认\n)

系统级错误:

名称说明
400请求错误!
403请求被服务器拒绝!
405客户端请求的方法被禁止!
408请求时间过长!
500服务器内部出现错误!
501服务器不支持请求的功能,无法完成请求!
503系统维护中!

返回示例:

{
    "name": "Whatever Happens",
    "picurl": "http://p1.music.126.net/Iik8WEA3vOyPWMHniVR47A==/109951165992940172.jpg",
    "artistsname": "Invincible",
    "avatarurl": "http://p2.music.126.net/GHYN6Z0zU31jvbC49XF0Fw==/109951164331371586.jpg",
    "nickname": "Goodkillerdontcry",
    "content": "今天才知道这首歌是我大学老师写的[惊恐]绝了!!!以后我绝对每节课都去,而且坐第一排!!!",
    "timeStr": "2019-08-29",
    "likedCount": 8222,
    "id": 21178386,
    "mp3url": "https://music.163.com/song/media/outer/url?id=21178386.mp3",
    "duration": "04:56",
    "lyric": "[00:00.000] 作词 : Michael Jackson/Teddy Riley/Jasmine Quay/Gil Cang/Geoffrey Williams\n[00:01.000] 作曲 : Michael Jackson/Teddy Riley/Jasmine Quay/Gil Cang/Geoffrey Williams\n[00:02.000] 制作人 : Michael Jackson/Teddy Riley\n[00:20.730]He gives another smile tries to understand her side\n[00:27.970]To show that he cares\n[00:30.350]She can't stay in the room\n[00:33.290]She's consumed with everything that's been goin' on\n[00:39.680]She says\n[00:40.930]Whatever happens don't let go of my hand\n[00:49.870]Everything will be alright he assures her\n[00:56.160]But she doesn't hear a word that he says\n[01:00.230]Preoccupied she's afraid\n[01:05.930]Afraid that what they're doing is not right\n[01:09.930]He doesn't know what to say so he prays\n[01:15.690]Whatever whatever whatever\n[01:20.280]Whatever happens don't let go of my hand\n[01:30.190]Whatever happens don't let go of my hand\n[01:40.070]Whatever happens don't you let go of my hand\n[01:49.380]Don't let go of my hand\n[01:59.680]Don't let go of my hand\n[02:05.110]He's working day and night thinks he'll make her happy\n[02:10.720]Forgetting all the dreams that he had\n[02:14.540]He doesn't realize it's not the end of the world\n[02:20.600]It doesn't have to be that bad\n[02:24.290]She tries to explain\n[02:27.090]It's you that makes me happy\n[02:30.460]Whatever whatever whatever\n[02:34.520]Whatever happens don't let go of my hand\n[02:44.930]Whatever happens don't let go of my hand\n[02:54.500]Whatever happens don't let go of my hand\n[03:04.150]Whatever happens don't you let go of my hand\n[03:38.800]Whatever happens don't let go of my hand\n[03:49.250]Whatever happens don't let go of my hand\n[03:58.730]Whatever happens don't you let go of my hand\n[04:38.970]Whatever happens don't let go of my hand\n",
    "tips": "会员歌曲无法播放"
}

错误码格式说明:

名称 类型 说明
200 string 返回的状态码(成功)
500 string 返回的状态码(失败)

代码示例:

无