music163-apideprecated

API of Netease Cloud Music

Usage no npm install needed!

<script type="module">
  import music163Api from 'https://cdn.skypack.dev/music163-api';
</script>

README

music163-api

API of Netease Cloud Music

Install

npm install music163-api --save

API

search(name, limit, offset)

音乐搜索

  • name:必填,歌曲名称
  • limit:选填,默认值为5,返回结果限制个数
  • offset:选填,默认值为0,搜索结果向下偏移量

getLRC(id)

获取歌词

getAlbum(id)

获取专辑

getArtistAlbum(id, limit, offset)

获取歌手

  • id:必填,歌手id,例如 http://music.163.com/artist?id=6452 中的 6452
  • limit:选填,默认值为5,返回结果限制个数
  • offset:选填,默认值为0,搜索结果向下偏移量

getSong(id)

获取音乐

getPlayList(id)

获取歌单