Zing Mp3 API
Music Player Use ZingMp3 Api
https://github.com/phamhiep2506/music-player
Demo
https://music-player-pink.vercel.app
⚠️ Please create server use module zingmp3-api-full + Node.js + Express.js
ZingMp3API. Thank whoant 😘
Based moduleInstallation
npm i zingmp3-api-full
const {
getSong,
getDetailPlaylist,
getHome,
getTop100,
getChartHome,
getNewReleaseChart,
getInfoSong,
getArtist,
getLyric,
search,
getListMV,
getCategoryMV,
getVideo
} = require("zingmp3-api-full")
or
const ZingMp3 = require("zingmp3-api-full")
Usage
post.
How to get song ID? you can read myExample:
=> ID: ZOACFBBU
Get Song
getSong("ZOACFBBU").then((data) => {
console.log(data)
})
or
ZingMp3.getSong("ZOACFBBU").then((data) => {
console.log(data)
})
Get Detail Playlist
getDetailPlaylist("ZWZB969E").then((data) => {
console.log(data)
})
Get Home
param {page} : 1, 2, 3, 4...
getHome("1").then((data) => {
console.log(data)
})
Get Top 100
getTop100().then((data) => {
console.log(data)
})
Get Chart Home
getChartHome().then((data) => {
console.log(data)
})
Get New Release Chart
getNewReleaseChart().then((data) => {
console.log(data)
})
Get Song Info
getInfoSong("ZOACFBBU").then((data) => {
console.log(data)
})
Get Artist
param {name} : sontungmtp
getArtist("sontungmtp").then((data) => {
console.log(data)
})
Get Lyric Song
getLyric("ZOACFBBU").then((data) => {
console.log(data)
})
Search Song
search("sontungmtp").then((data) => {
console.log(data)
})
Get List MV
param {id, page, count}
getListMV("IWZ9Z08I", "1", "15").then((data) => {
console.log(data)
})
Get Category MV
param {id}
getCategoryMV("IWZ9Z08I").then((data) => {
console.log(data)
})
Get Video MV
param {id}
getVideo("ZWEW9WI8").then((data) => {
console.log(data)
})