Skip to content

网易云音乐 API

网易云音乐 API

公共服务器

WARNING

请谨慎使用公共服务器执行登录操作。

因使用公共服务器所导致的盗号等问题,概不负责。

API 地址位置提供者版本
https://ncm.zhenxin.me上海真心https://ncm.zhenxin.me version
https://zm.i9mr.com扬州墨染云https://zm.i9mr.com version
https://music.mcseekeri.com美国MCSeekerihttps://music.mcseekeri.com version
https://zm.wwoyun.cn宁波蓝钦https://zm.wwoyun.cn version

WARNING

如果遇到自建 API 无法登录的问题。

请确保您遵循了下方的部署指南,并且将登录方式改为邮箱登录。

替换位置

V4

toml
# API设置
[api]
# 网易云音乐
netease-link = "https://ncm.zhenxin.me"

V2

json
/// API设置
  "api": {
    /// 网易云音乐API地址
    ///
    /// 使用开源项目NeteaseCloudMusicApi
    /// 推荐自行部署,需Node.js环境
    /// 地址: https://github.com/Binaryify/NeteaseCloudMusicApi
    "netease": "https://ncm.zhenxin.me"
  },

部署

部署前确保已安装如下环境

  1. 获取代码
shell
wget https://registry.npmmirror.com/NeteaseCloudMusicApi/-/NeteaseCloudMusicApi-4.27.0.tgz
tar -xzvf NeteaseCloudMusicApi-4.27.0.tgz
mv package NeteaseCloudMusicApi
cd NeteaseCloudMusicApi
  1. 安装依赖
shell
npm install
  1. 运行
shell
node app.js
  1. 自定义端口

4.1 Linux

shell
PORT=4000 node app.js

4.2 Windows

bat
set PORT=4000 && node app.js