Get music metadata from AcoustID Web Service

npm install acoustid
6 downloads in the last week
15 downloads in the last month


Get MusicBrainz metadata for a given audio file via the AcoustID Web Service.


var acoustid = require("acoustid");
acoustid("./audio.mp3", { key: "8XaBELgH" }, callback);
function callback(err, results) {
    if (err) throw err;
    var artist = results[0].recordings[0].artists[0].name;


acoustid(file, options, callback)

Looks up information about the given audio file.

File must be the path to an audio file.

Options must be an object with the following keys:

  • key: Your AcoustID Web Service API Key
  • meta: Meta parameter used in AcoustID API call (default: all meta data) (see docs)

Callback must be a function that will be called with callback(err, results).


This module depends on node-fpcalc to calculate audio fingerprints. The fpcalc command-line tool must be installed. This is often available via your package manager (e.g., apt-get install libchromaprint-tools or brew install chromaprint).

npm install acoustid
npm loves you