amresh.sinha

service 07 / 07

Spotify PromoCards API

An unofficial generator for Spotify style shareable song cards.

event
Personal project
year
2021
status
shipped
stack
JavaScriptNode.jsExpressSpotify Web APInode-canvasDocker
upstream
spotify-cards.fossian.com (opens in a new tab)
A generated promo card: the Alchemy album art by Blanke on a pale blue background with a Listen on Spotify mark

What it is

Spotify makes those shareable song cards inside its own app. This API makes one for any track, album or artist from a URL, so you can embed it anywhere.

How it works

Express fetches metadata and artwork from the Spotify Web API, samples a background colour from the cover, and draws the card with node-canvas. Packaged in Docker. My first project that other people actually used.