lastfm-api-client

a Last.FM API Client for Node and the Browser

Usage no npm install needed!

<script type="module">
  import lastfmApiClient from 'https://cdn.skypack.dev/lastfm-api-client';
</script>

README

lastfm-api-client

a Last.FM API Client for Node and the Browser

Support

Buy me a Coffee

Features

  • support for all available GET methods
  • promises
  • works in node and browser

How to install

npm install lastfm-api-client

API usage

const LastFmApi = require('lastfm-api-client');
const LastFmClient = new LastFmApi({
    apiKey   : '<-- your last.fm api key -->',
    apiSecret: '<-- your last.fm api secret -->'
});

LastFmClient.track.getInfo({
    artist: 'Queens of the Stone Age',
    track : 'No One Knows'
}).then((response) => {
    console.log(response);
})