Music Search API (alpha)
It's difficult to find quality previews of music, particularly around release date. MuSAPI aims to simplify searching multiple sources through a standard RESTful search interface, and return results in a standardised JSON format.
Currently Deezer and Bandcamp are implemented.
GET /api/v1/album/?q=Koan Sound - Forgotten Myths
{
"query": "Koan Sound - Forgotten Myths",
"bandcamp": {
"link": "http://koansound.bandcamp.com/album/forgotten-myths",
"title": "Forgotten Myths",
"artist": "KOAN Sound",
"id": "922192078"
},
"deezer": {
"id": 10716382,
"artist": "Koan Sound",
"title": "Forgotten Myths",
"link": "http://www.deezer.com/album/10716382"
}
}
GET /api/v1/album/?p=deezer&q=quanta - connecting patterns
{
"artist": "QUANTA",
"link": "http://www.deezer.com/album/9547378",
"id": 9547378,
"title": "Connecting Patterns"
}
GET /api/v1/album/?p=bandcamp&q=liquid stranger - the intergalactic slapstick
{
"artist": "Liquid Stranger",
"id": "4283774662",
"title": "The Intergalactic Slapstick",
"link": "http://liquidstranger.bandcamp.com/album/the-intergalactic-slapstick"
}
Tested using perl 5.22.0, redis 3.05 and cpanm:
cpanm --installdeps .
perl script/musapi daemon
The above serves a website at 127.0.0.1:3000
Alternately MuSAPI can be run on the command-line:
perl script/musapi get '/api/v1/album/?q=Koan Sound - Forgotten Myths'