Music-api, a web-service to work with online music source
Introduction
There is no need to descript more about the project, the main role of this project named music-api is to provide a web service for developers to exploit indirectly the song’s information coming from any online source such as ZingMp3, Nhaccuatui.
This project is an open source software, developers contribute and developer my project. This time, this is only two online source ZingMp3 and Nhaccuatui, however, the number source will be increased regarding developers’ demand.
The song information includes name
, singers
, lyrics
, song's page
and
inparticular song's source
for downloading.
Why does it work ?
Fundamentally, this service send a request to music oridinary servers, after receiving responses, it analyze the response (inspect elements selectively). After finished analysis, it send json object which inlcluding all song’s information. Currently, the web service is deployed at USA by heroku, Because of IP filter applying by VNG(ZingMp3), there are some songs which you cannot search. I have tested by using VPN locating in the USA, the result is limited.
Good news is that Nhaccuatui is very generous, they allow foreign IP to access all song, meanwhile, you can exploit from more songs.
How-to guide
- The official website is: silverlink.herokuapp.com
- Request should be sent to http://silverlink.herokuapp.com/api, and server will return a result in JSON object
- there are three parameters to query: – source: the source of music (zing mp3 = 1, nhaccuatui = 2) - this is compulsory – keyword: the keyword - this is compulsory – number: the expect number of song - this is optional. The maximum number of song user can query from ZingMP3 is 60, and 111 for Nhaccuatui
- Example: http://silverlink.herokuapp.com/api?source=1&keyword=em&number=5 http://silverlink.herokuapp.com/api?source=1&keyword=em yeu&number=5 http://silverlink.herokuapp.com/api?source=1&keyword=em%20cua%20ngay%20hom%20qua http://silverlink.herokuapp.com/api?source=2&keyword=em&number=5