一个调用网易云音乐 API 的 node 模块
![](http://binaryify.github.io/images/api.jpg)npm install NeteaseCloudMusicApi
var api = require('NeteaseCloudMusicApi').api
api.search('年度之歌',function(data){
console.log(data)
})
or
import {api} from 'NeteaseCloudMusicApi'
api.search('年度之歌',data => {
console.log(data)
})
api.search(name:String,[callback:function,limit:Number default:3, offset:Number default:0])
api.lrc(id:Number,[callback:function,lv:Number default:-1])
api.song(id:Number,[callback:function])
api.getArtistAlbums(id:Number,[callback:function,limit:Number default:3, offset:Number default:0])
api.getAlbums(id:Number,[callback:function])
api.Playlists(id:Number,[callback:function])