网易云榜单随机歌曲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": "unhappy",
    "picurl": "http://p1.music.126.net/EZ05Psc2yPFQvuLuOmDL6Q==/109951172655364470.jpg",
    "artistsname": "unhappy",
    "avatarurl": "http://p4.music.126.net/Ctds-ezPx8eekbCdrqAZAw==/109951172678871775.jpg",
    "nickname": "-w-_qwq",
    "content": "刷到那个抖音的一个小猫的视频音乐好听就迅速过来种草了❤️❤️",
    "timeStr": "01-10",
    "likedCount": 702,
    "id": 3332771263,
    "mp3url": "https://music.163.com/song/media/outer/url?id=3332771263.mp3",
    "duration": "01:38",
    "lyric": "[00:00.000] 作词 : s0rrow s0rrow\n[00:01.000] 作曲 : s0rrow s0rrow\n[00:16.270]Every day we talk a little less\n[00:19.718]It looks like you are losing interest\n[00:23.732]These feelings I have for you\n[00:26.831]But you don't feel the same\n[00:28.708]So I'll pack all my things\n[00:30.774]And go run far away\n[00:32.797]You are, you are very pretty\n[00:35.787]I'm so very ugly\n[00:37.676]Will you even love me, anymore (love me)\n[00:40.975]You can, you can live without me\n[00:43.892]That makes me unhappy\n[00:46.052]I should get a piercing through my heart\n[00:49.229]What do you even want me to be\n[00:52.703]You never ever pay attention to me\n[00:56.688]So I'll close my blinds in misery\n[01:00.535]And I'll wait for you for a couple of weeks\n[01:05.310]You are, you are very pretty\n[01:08.511]I'm so very ugly\n[01:10.406]Will you even love me, anymore (love me)\n[01:13.598]You can, you can live without me\n[01:16.579]That makes me unhappy\n[01:18.755]I should get a piercing through my heart\n",
    "tips": "会员歌曲无法播放"
}

错误码格式说明:

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

代码示例: