Skip to content

pyxfluff/spotify_embedpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Embed Generator

A small program which serves a FastAPI webserver to get embeds from Spotify based on a song name, artist, or album.

Setup

Copy .config.tmp to .config and enter your Spotify-generated credentials, which you can generate here.

Install packages with pip install httpx uvicorn fastapi and you're done! Just run uvicorn main:app. You can also fork the code and remove the webserver if you want, this is just how I built it.

Usage

POST /search

In:

[
    {
        "name": "Misery Business"
    },
    {
        "name": "Into You",
        "artist": "Ariana Grande"
    }
]

Out:

[
    {
        "title": "Misery Business",
        "artist": "Paramore",
        "album": "Riot!",
        "embed_url": "https://open.spotify.com/embed/track/6SpLc7EXZIPpy0sVko0aoU"
    },
    {
        "title": "Into You",
        "artist": "Ariana Grande",
        "album": "Dangerous Woman",
        "embed_url": "https://open.spotify.com/embed/track/63y6xWR4gXz7bnUGOk8iI6"
    }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages