@magicdawn/music-api

0.3.11 • Public • Published

Centralized Node.js API for Netease, QQ, Xiami music

travis prettier

This SDK provide simple API interface based on Promise, netease API is get from github, qq api is get from y.qq.com and xiami api is get from xiami Mac App. Please make no commerical use of this project.

npm install music-api --save

Basic usage

const musicAPI = require('music-api');

musicAPI.searchSong('netease', {
  key: '陈粒',
  limit: 10,
  page: 1,
})
  .then(res => console.log(res))
  .catch(err => console.log(err))

Run local

git clone https://github.com/LIU9293/musicAPI.git
cd musicAPI
npm install
npm start

// open another terminal
curl http://localhost:8080/api/search/song/all?key=taylor&limit=5&page=1

Usage

  • [x] search songs.
  • [x] search playlist.(xiami collects)
  • [x] search albums.
  • [x] get song play url.
  • [x] get playlist detail.
  • [x] get album detail.
  • [x] get suggestions albums.
  • [ ] get artists' detail.
  • [x] raw data / converted data available.

API

Package Sidebar

Install

npm i @magicdawn/music-api

Weekly Downloads

1

Version

0.3.11

License

MIT

Last publish

Collaborators

  • magicdawn