GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LIU9293/musicAPI: Centralized package to get data from qq, xiami, netease music

BranchesTags
Open more actions menu

Latest commit

 

History

80 Commits
80 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.prettierrc.json
.prettierrc.json
 
 
.travis.yml
.travis.yml
 
 
index.js
index.js
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
server.js
server.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

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

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

API

  • musicAPI.searchSong(vendor, query)

    vendor: one if ['netease', 'xiami', 'qq', 'all'];
    query: {
      key: KEY,
      limit: 10,
      page: 1,
      raw: true or false
    }
    

    example: https://music-api-jwzcyzizya.now.sh/api/search/song/netease?key=刘瑞琦&limit=5&page=1

  • musicAPI.searchAlbum(vendor, query)

    vendor: one if ['netease', 'xiami', 'qq', 'all'];
    query: {
      key: KEY,
      limit: 10,
      page: 1,
      raw: true or false
    }
    

    example: https://music-api-jwzcyzizya.now.sh/api/search/album/xiami?key=范宗沛&limit=5&page=1

  • musicAPI.searchPlaylist(vendor, query)

    vendor: one if ['netease', 'xiami', 'qq', 'all'];
    query: {
      key: KEY,
      limit: 10,
      page: 1,
      raw: true or false
    }
    

    example: https://music-api-jwzcyzizya.now.sh/api/search/playlist/qq?key=周杰伦&limit=5&page=1

  • musicAPI.getSong(vendor, query) (not work with raw now, keep it false)

    vendor: one of ['netease', 'xiami', 'qq'];
    query: {
      id: songID,
      raw: true or false
      br: Bit rate (only support Netease ! default is 999000, example 128000 or 192000 or 320000)
    }
    

    example: https://music-api-jwzcyzizya.now.sh/api/get/song/qq?id=003OUlho2HcRHC

  • musicAPI.getAlbum(vendor, query)

    vendor: one of ['netease', 'xiami', 'qq'];
    query: {
      id: albumID,
      raw: true or false
    }
    

    example: https://music-api-jwzcyzizya.now.sh/api/get/album/qq?id=002J7XNt2m9sNc

  • musicAPI.getPlaylist(vendor, query)

    vendor: one of ['netease', 'xiami', 'qq'];
    query: {
      id: playlistID,
      raw: true or false
    }
    

    example: https://music-api-jwzcyzizya.now.sh/api/get/playlist/netease?id=461600464

  • musicAPI.getSuggestAlbums(vendor, query)

    vendor: one of ['all', 'xiami', 'qq'];
    query: {
      limit: limit,
      raw: true or false
    }
    

    example: https://music-api-jwzcyzizya.now.sh/api/suggest/album/all?limit=10

About

Centralized package to get data from qq, xiami, netease music

Topics

apimusicneteaseskdxiami

Resources

Readme
Activity

Stars

484 stars

Watchers

18 watching

Forks

72 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.