Skip to content

meandavejustice/free-music-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Free Music Archive API

Basic wrapper around the free music archive api.

Usage

Main Endpoints

Main endpoints include the following methods:

  • recent
  • featured
  • tracks
  • albums
  • artists
  • genres

.. and are accessed like the following example:

var fma = require('free-music-archive');

fma.recent({limit: 2}, function(err, results) {
  if (err) console.error(err);
  console.log(JSON.stringify(results, null, 2));
})

Search

The search method is accessed a bit differently.

fma.search('woolen men', {limit: 10}, function(err, results) {
  if (err) console.error(err);
  console.log(JSON.stringify(results, null, 2));
})

You can also pass the query to the options object.

fma.search(null, {limit: 10, q: 'Annea Lockwood '}, function(err, results) {
  if (err) console.error(err);
  console.log(JSON.stringify(results, null, 2));
})

About

Node.js wrapper around the free music archive API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published