🎧 将你的网易云音乐的听歌记录生成svg,由 Vercel 驱动
获取网易云音乐用户 ID (https://music.163.com)
- 您的个人主页页面(
https://music.163.com/#/user/home?id=xxx
),id
为紧跟的那串数字
注意:要在网易云音乐个人设置-隐私设置中将听歌排行设为
所有人可见
获取账号 id 后,只需在你的 README 中添加以下内容,并将id
查询参数设置为你的网易云音乐账号 id
[](https://netease-recent-profile.vercel.app/?id=126764012)
请传递查询参数type
,并将其设置为你想要的听歌排行类型
- 近一周的听歌排行:默认 type 为
1
- 所有时间的听歌排行:设为
0
[](https://netease-recent-profile.vercel.app/?id=126764012&type=0)
请传递查询参数number
,并将其设置为你想要的歌曲数量
- 默认为
5
条
[](https://netease-recent-profile.vercel.app/?id=126764012&number=3)
请传递查询参数title
,并将其设置为你想要的标题
- 默认标题为
Recently Played
[](https://netease-recent-profile.vercel.app/?id=126764012&title=最近在听)
请传递查询参数width
,并将其设置为你想要的卡片宽度
- 默认宽度为
280
[](https://netease-recent-profile.vercel.app/?id=126764012&width=350)
请传递查询参数size
,并将其设置为你想要的图片大小
- 默认图片大小为
800
,尺寸越小,优点是 svg 尺寸较小、请求返回的时间变短,缺点是图片会失真变模糊
[](https://netease-recent-profile.vercel.app/?id=126764012&size=60)
请传递查询参数 show_percent
- 默认为
0
:即表示不打开此特性 - 传入
1
:即表示为打开此特性
[](https://netease-recent-profile.vercel.app/?id=126764012&show_percent=1)
请传递查询参数 cache
- 默认为
14400 (即 4 小时)
,单位为秒
注意: 这里使用缓存来减少服务器的负载及响应时间,其中缓存的最小值为 4 小时,最大值为 24 小时。
[](https://netease-recent-profile.vercel.app/?id=126764012&cache=28800)
本项目使用 MIT 协议