Skip to content
javascript musiXmatch API library for nodejs
Latest commit 6365393 Feb 13, 2012 @pilu tabs to soft tabs
Failed to load latest commit information.
lib/mXm tabs to soft tabs Feb 13, 2012
test tabs to soft tabs Feb 13, 2012
.gitignore initial import Feb 11, 2012
LICENSE added license file Feb 12, 2012 updated README and package.json Feb 12, 2012
package.json added license url Feb 12, 2012

musiXmatch API library for NodeJS


npm install -g musixmatch


var util  = require("util");
var mXm   = require("musixmatch");

mXm.Config.API_KEY = "YOUR_API_KEY";

var successCallback = function(modelOrCollection) {
  console.log("  " + util.inspect(modelOrCollection));

var errorCallback = function(response) {
  console.log("Error callback:");
  console.log("  " + util.inspect(response));

mXm.API.getTrack(TRACK_ID, successCallback, errorCallback);
mXm.API.getLyrics(LYRICS_ID, successCallback, errorCallback);
mXm.API.getArtist(ARTIST_ID, successCallback, errorCallback);
mXm.API.getAlbum(ALBUM_ID, successCallback, errorCallback);
mXm.API.getSubtitle(TRACK_ID, successCallback, errorCallback);
mXm.API.searchTrack({q: QUERY}, successCallback);
Something went wrong with that request. Please try again.