Cover Art for Node
Cover Art allows you to fetch album artwork from the Cover Art Archive using their API.
Example Usage
It's always a good idea to give your client a unique User Agent.
var CA = ; // Initialize Cover Artvar ca = userAgent:'my-awesome-app/0.0.1 ( http://my-awesome-app.com )';
Resources
There are two main resources: release
and release group
.
Release
Fetches a JSON listing of available cover art for a MusicBrainz release.
ca;
Fetching a specific piece of album art
With the option piece
set to front
, fetch the image that is most suitable to be called the "front" of a release. piece
also accepts back
and an image id
ca;
Specifiying a size
Album art thumbnails comes in two sizes: small
(up to 250 px) and large
(up to 500 px). In the options you can either specifiy the size by the string or by pixels
ca;
Release Group
Fetches a JSON listing of available cover art for a MusicBrainz release group
, as well as the url for the specific release from which the art was sourced.
ca;