Git Product home page Git Product logo

zingmp3-api-full's Introduction

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

Based module ZingMp3API. Thank whoant 😘

Installation

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

How to get song ID? you can read my post.

Example:

https://zingmp3.vn/api/v2/song/get/streaming?id=ZOACFBBU&ctime=1641375546&version=1.5.4&sig=f9ecb61628fad98d3d5d04fa40d3246af6817b2bab1a52674cf218770637497308060f943b0677318754cf2099564689ab1163c31bd2682aa94905804369dc23&apiKey=88265e23d4284f25963e6eedac8fbfa3

=> 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)
})

zingmp3-api-full's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.