本接口总调用: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": "That Should Be Me",
"picurl": "http://p1.music.126.net/nHZPpgyGzb6ggf6-sB0Ibg==/109951170613349810.jpg",
"artistsname": "My World 2.0",
"avatarurl": "http://p1.music.126.net/T2qS3-0HhYwAnWRoFxs5hQ==/109951163428872956.jpg",
"nickname": "宇宇宇宇鱼Er",
"content": "Justin Bieber是我唯一会拼的深深记得的外国明星的名字",
"timeStr": "2017-07-21",
"likedCount": 694,
"id": 1519376,
"mp3url": "https://music.163.com/song/media/outer/url?id=1519376.mp3",
"duration": "03:52",
"lyric": "[00:00.000] 作词 : Nasri Atweh/ADAM MESSINGER/Luke Gottwald/Justin Bieber\n[00:01.000] 作曲 : Nasri Atweh/ADAM MESSINGER/Luke Gottwald/Justin Bieber\n[00:13.560]Everybody's laughing in my mind\n[00:19.710]Rumors spreading 'bout this other guy\n[00:26.250]Do you do what you did when you\n[00:28.910]did with me\n[00:30.599]Does he love you the way I can\n[00:32.859]Did you forget all the plans\n[00:35.339]that you made with me\n[00:37.009]'cause baby I didn't\n[00:40.069]That should be me\n[00:42.499]Holdin' your hand\n[00:43.539]That should be me\n[00:45.299]Makin' you laugh\n[00:46.889]That should be me\n[00:48.679]This is so sad\n[00:50.309]That should be me\n[00:52.009]That should be me\n[00:53.629]That should be me\n[00:55.469]Feelin' your kiss\n[00:57.990]That should be me\n[00:58.909]Buyin' you gifts\n[01:00.629]This is so wrong\n[01:02.329]I can't go on\n[01:03.949]till you believe that\n[01:06.949]That should be me\n[01:10.879]That should be me\n[01:15.099]You said you needed a little time\n[01:17.539]for my mistakes\n[01:21.829]It's funny how you use that time\n[01:25.000]to have me replaced\n[01:27.809]But did you think\n[01:29.219]that I wouldn't see you out at the movies\n[01:32.059]Whatcha doin' to me\n[01:33.799]you're taken' him where we used to go\n[01:36.389]Now if you're tryin' to break my heart\n[01:39.029]it's working 'cause you know that\n[01:41.629]That should be me\n[01:43.469]Holdin' your hand\n[01:45.790]That should be me\n[01:46.869]Makin' you laugh\n[01:48.579]That should be me\n[01:50.329]This is so sad\n[01:52.049]That should be me\n[01:54.499]That should be me\n[01:55.379]That should be me\n[01:57.208]Feelin' your kiss\n[01:58.829]That should be me\n[02:00.529]buyin' you gifts\n[02:02.259]This is so wrong\n[02:04.089]I can't go on\n[02:06.100]till you believe that\n[02:08.280]That should be me\n[02:10.540]I need to know should I fight\n[02:13.850]for our love or disarm\n[02:14.590]\n[02:14.600]\n[02:15.270]\n[02:17.250]It's getting harder to shield\n[02:21.920]this pain in my heart\n[02:31.500]That should be me\n[02:33.240]Holdin' your hand\n[02:34.890]That should be me\n[02:36.600]Makin' you laugh\n[02:38.290]That should be me\n[02:40.040]This is so sad\n[02:42.200]That should be me\n[02:43.380]That should be me\n[02:45.400]That should be me\n[02:46.920]Feelin' your kiss\n[02:48.550]That should be me\n[02:50.320]Buyin' you gifts\n[02:52.020]This is so wrong\n[02:54.300]I can't go on\n[02:55.410]Till you believe that\n[02:58.080]That should be me\n[03:02.460]Holdin' your hand\n[03:04.870]That should be me\n[03:07.070]Makin' you laugh oh baby oh\n[03:12.000]That should be me\n[03:16.400]That should be me\n[03:18.100]Giving you flower\n[03:19.600]\n[03:20.700]That should be me\n[03:21.300]Talking for hours\n[03:22.810]That should be me\n[03:24.460]That should be me\n[03:27.230]That should be me\n[03:28.600]Never should let you go\n[03:30.200]I never should let you go\n[03:32.970]That should be me\n",
"tips": "会员歌曲无法播放"
}
错误码格式说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 | string | 返回的状态码(成功) |
| 500 | string | 返回的状态码(失败) |
代码示例:
无