An open API service indexing awesome lists of open source software.

https://github.com/thomas-basham/spotify-cover-art-serverless-function

A serverless API used to retrieve an image src for any song on Spotify. Built with Python and Vercel.
https://github.com/thomas-basham/spotify-cover-art-serverless-function

serverless spotify

Last synced: 4 months ago
JSON representation

A serverless API used to retrieve an image src for any song on Spotify. Built with Python and Vercel.

Awesome Lists containing this project

README

        

# Spotify Cover-art Serverless Function

[![Python application](https://github.com/Thomas-Basham/spotify-cover-art-serverless-function/actions/workflows/python-app.yml/badge.svg)](https://github.com/Thomas-Basham/spotify-cover-art-serverless-function/actions/workflows/python-app.yml)

## **Author:** Thomas Basham

### Description

This API is programmed so that you can Spotify data from any song.
I'm using it to retrieve the cover art, however it's also useful to
retrieve html for an iFrame with a Spotify media player for that song.

## Deployed Functions

[https://spotify-cover-art-serverless-function.vercel.app/api/spotify-data?spotifyurl= < Spotify Song Link here > ](https://spotify-cover-art-serverless-function.vercel.app/api/spotify-data?spotifyurl=https://open.spotify.com/track/3gdewACMIVMEWVbyb8O9sY?si=54f5722a4c5f482e)

## How to use

**Copy This link to get Spotify Song Link**
helper screen shot

Then send a http GET request (or just enter into your browser)

https://spotify-cover-art-serverless-function.vercel.app/api/spotify-data?spotifyurl= < Spotify Song Link >
## Resources
[Vercel](https://vercel.com/docs/concepts/functions/serverless-functions/supported-languages#python)

[Vercel Cli](https://vercel.com/docs/concepts/deployments/overview#vercel-cli)