Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Simple access the Spotify WEB API for general requests about artists, albums or songs
Readme
Easy-Spotify is a python Wrapper for the Spotify Web API. It was conceived with ease of use in mind. It allows you to retrieve data from Spotify such as track or artist information, images, related artists, top tracks, and more.
Install the package as usual.
pip install easy-spotify
To be able to access Spotify Web API you need to provide easy-spotify with your client_id
and client_secret
which you can obtain here.
from easy_spotify import Spotify
spotify = Spotify(MY_CLIENT_ID, MY_CLIENT_SECRET)
Search for an artist or track in Spotify's catalogue and get back the top results.
my_artist_id = spotify.get_artist_id("Adele", only_id=False)
my_track_id = spotify.get_track_id("Starboy")
multiple_tracks_id = spotify.get_multiple_track_id(["Starboy"], ["Hello"], ["Cake By The Ocean"])
artist_info_name = spotify.get_artist_info_from_name("Adele")
artist_info_id = spotify.get_artist_info_from_id("ARTIST_ID")
my_albums_name = spotify.get_albums_from_name("Adele")
my_albums_id = spotify.get_albums_from_id("ARTIST_ID")
top_tracks_name = spotify.get_artist_top_tracks_from_name("Adele", just_id_and_name=False)
top_tracks_id = spotify.get_artist_top_tracks_from_id("ARTIST_ID", just_id_and_name=True)
related_artists = spotify.get_related_artists("ARTIST_ID")
track_features = spotify.get_track_audio_features("TRACK_ID")
multiple_track_features = spotify.get_multiple_tracks_audio_features(["TRACK_ID", "TRACK_ID", "TRACK_ID"])
track_info = spotify.get_track_info("TRACK_ID")
multiple_track_info = spotify.get_multiple_tracks_info(["TRACK_ID", "TRACK_ID", "TRACK_ID"])
FAQs
Simple access the Spotify WEB API for general requests about artists, albums or songs
We found that easy-spotify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.