{"repo":"lacymorrow/album-art","free":true,"listed":false,"github":"https://github.com/lacymorrow/album-art","clone":"git clone https://github.com/lacymorrow/album-art.git","description":"Fetch album or artist cover art — \"The Beatles\" → http://path/to/beatles.jpg","language":"JavaScript","stars":128,"topics":["nodejs","javascript","album-art","album","artists","cli","plugin","nextjs","react","album-cover"],"license":"MIT","category":"cli-tools","readme_excerpt":"Fetch album or artist cover art ➔ \"The Beatles\" → http://path/to/beatles.jpg --- [!IMPORTANT] This library is feature-complete and only receives bug-fix updates. Feature requests still welcome — please open an issue. [!NOTE] Last.fm cannabilized their own API and broke many applications, including this one. album-art now uses Spotify for image data. The public API is fully backwards-compatible. Features - Use anywhere, browser or Node (UMD bundle — browser support) - Works in React + Next.js, client and server, via cross-fetch - Promise and callback API - Fetch images for albums or artists - Multiple size options ( small · medium · large ) - Powered by Spotify's catalog Install In the browser: Also available via JSDelivr. Usage Callback form With album and size options [!TIP] Try it live without installing — open in RunKit (here's an example output). API albumArt(artist [, options] [, callback]) Accepts an artist string to search for. Returns a Promise that resolves to a URL string. Argument Type Required Description --- --- :---: --- artist string ✅ Artist to search for options.album string Album to search for options.size \"small\" \\ \"medium\" \\ \"large\" Requested image size callback (err, response) = void Optional Node-style callback CLI Install globally to use from the shell: Related Part of a small family of media-data utilities: - movie-info — Get info, images, and ratings about a movie. - movie-trailer — Find the trailer for a movie. - movie-art — Get the poster art for a ","default_branch":null,"files":null,"tree":[],"storefront":"/r/lacymorrow","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lacymorrow/album-art/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}