本接口总调用: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": "Beauty And A Beat",
"picurl": "http://p2.music.126.net/lbgbkMsVvSt_7GmZ9pqRbQ==/109951173480281688.jpg",
"artistsname": "Believe (Deluxe Edition)",
"avatarurl": "http://p1.music.126.net/gHLAYXMp2MyAEd8-kEEzOQ==/109951165403998886.jpg",
"nickname": "囍欢哝-",
"content": "第一句:低了\n第二句:调试中\n第三句:调试完毕\n第四句:a billion could’ve never bought aye~aye~",
"timeStr": "04-14",
"likedCount": 8263,
"id": 18637990,
"mp3url": "https://music.163.com/song/media/outer/url?id=18637990.mp3",
"duration": "03:47",
"lyric": "[00:00.000] 作词 : Onika Tanya Maraj/Justin Bieber/Martin Karl Sandberg/Arkadi Zaslavski/Savan Harish Kotecha\n[00:01.000] 作曲 : Onika Tanya Maraj/Justin Bieber/Martin Karl Sandberg/Arkadi Zaslavski/Savan Harish Kotecha\n[00:03.442] Yeah\n[00:06.392] Young Money\n[00:09.329] Nicki Minaj\n[00:10.784] Justin, rrr\n[00:14.452]\n[00:14.602] Show you off\n[00:17.341] Tonight, I wanna show you off (Ayy-ayy-ayy)\n[00:22.100] What you got\n[00:24.715] A billion could've never bought (Ayy-ayy-ayy)\n[00:29.915]\n[00:30.048] We gonna party like it's 3012 tonight\n[00:33.646] I wanna show you all the finer things in life\n[00:37.382] So just forget about the world, we young tonight\n[00:41.086] I'm coming for ya, I'm coming for ya\n[00:43.930]\n[00:44.093] 'Cause all I need\n[00:49.677] Is a beauty and a beat\n[00:53.232] Who can make my life complete\n[00:59.016] It's all 'bout you\n[01:04.492] When the music makes you move\n[01:08.124] Baby, do it like you do\n[01:13.978]Cause\n[01:14.965]\n[01:29.639] Body rock\n[01:32.228] Girl, I can feel your body rock (Ayy-ayy-ayy)\n[01:36.987] Take a bow\n[01:39.658] You're on the hottest ticket now, ooh (Ayy-ayy-ayy)\n[01:44.770]\n[01:44.929] We gonna party like it's 3012 tonight\n[01:48.527] I want to show you all the finer things in life\n[01:52.244] So just forget about the world, we young tonight\n[01:55.994] I'm coming for ya, I'm coming for ya\n[01:58.814]\n[01:58.987] 'Cause all I need\n[02:04.400] Is a beauty and a beat\n[02:08.165] Who can make my life complete\n[02:13.732] It's all 'bout you\n[02:19.341] When the music makes you move\n[02:23.197] Baby, do it like you do (Uh, uh)\n[02:28.920] Cause you-\n[02:29.617]\n[02:29.766] I-I-I-I-In time, ink lines\n[02:31.392] B-B-Bitches couldn't get on my incline\n[02:33.214] World tours, i-i-it's mine\n[02:35.072] Ten little letters on a big sign\n[02:37.023] Justin Bieber\n[02:38.891] You know I'ma hit 'em with the ether\n[02:40.820] Buns out, wiener\n[02:42.619] But I gotta keep an eye out for Selener\n[02:44.558] B-B-Beauty, beauty and the beast\n[02:46.031] Beauty from the East\n[02:46.995] Beautiful confessions of the priest\n[02:48.366] Beast, beauty from the streets\n[02:49.725] Beat will get deceased\n[02:50.898] Every time Beauty on the beat eats\n[02:52.232] Body rock (Yeah, yeah)\n[02:54.208] Oh (Yeah, yeah)\n[02:54.719] I wanna feel your body rock (Let's go, let's go)\n[02:58.216] (Frrrrr, yeah)\n[02:59.084]\n[02:59.260] 'Cause all I need (All I need is love)\n[03:04.499] Is a beauty and a beat (A beat)\n[03:08.327] Who can make my life complete (Complete, oh-oh-oh, oh woah)\n[03:13.819] It's all 'bout you (All I need is you)\n[03:19.554] When the music makes you move\n[03:23.224] Baby, do it like you do (Do)\n[03:29.005] Cause you-\n",
"tips": "会员歌曲无法播放"
}
错误码格式说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 | string | 返回的状态码(成功) |
| 500 | string | 返回的状态码(失败) |
代码示例:
无