At time of writing, Spotify doesn’t provide a track’s artwork via its API.
So, I’ve written a simple function to get the image; but please note, not only is it quick and dirty, but it’s horribly inefficient and should be used sparingly — at the very least, make sure you cache the results somewhere!
You can access a public-facing web-page about a particular track using the following URL:
…where [TRACK-ID] is the last part of the track’s URI — so for example, for the track represented by the URI
spotify:track:5fpizYGbi5IQoEraj6FP0R, the track ID would be
5fpizYGbi5IQoEraj6FP0R, and thus the URL to the page would be: