go-spotify is a Go client library for accessing the Spotify API
go get github.com/tsirysndr/go-spotify
Import the package into your project.
import "github.com/tsirysndr/go-spotify"
Construct a new Spotify client, then use the various services on the client to access different parts of the Spotify API. For example:
client := spotify.NewClient("<YOUR TOKEN AUTHORIZATION>")
result, err := client.Track.List("6rqhFgbbKwnb9MLmUQDhG6")
Currently the following services are supported:
- Search for an Item
- Get Audio Analysis for a Track
- Get Audio Features for Several Tracks
- Get Audio Features for a Track
- Get Several Tracks
- Get a Track
- Get Current User's Profile
- Get a User's Profile
- Remove Tracks from a Playlist
- Get a List of Current User's Playlists
- Get a Playlist's Tracks
- Get a Playlist
- Get a List of a User's Playlists
- Add Tracks to a Playlist
- Create a Playlist
- Reorder or replace a Playlist's Tracks
- Change a Playlist's Details
- Get the Current User's Recently Played Tracks
- Get Information About The User's Current Playback
- Get a User's Available Devices
- Get the User's Currently Playing Track
- Skip User's Playback To Next Track
- Skip User's Playback To Previous Track
- Pause a User's Playback
- Start/Resume a User's Playback
- Set Repeat Mode On User's Playback
- Seek To Position In Currently Playing Track
- Toggle Shuffle For User's Playback
- Transfer a User's Playback
- Set Volume For User's Playback
- Get User's Top Artists and Tracks
- Remove Albums for Current User
- Remove Tracks for Current User
- Check Current User's Saved Albums
- Check Current User's Saved Tracks
- Get Current User's Saved Albums
- Get Current User's Saved Tracks
- Save Albums for Current User
- Save Tracks for Current User
- Unfollow Artists or Users
- Unfollow a Playlist
- Check if Current User Follows Artists or Users
- Get Followed Artists
- Check if Users Follow a Playlist
- Follow Artists or Users
- Follow a Playlist
- Get Available Genre Seeds
- Get a List of Browse Categories
- Get a Single Browse Category
- Get a Category's playlists
- Get a List of Featured Playlists
- Get a List of New Releases
- Get Recommendations Based on Seeds
- Get an Artist's Albums
- Get an Artist's Related Artists
- Get an Artist's Top Tracks
- Get an Artist
- Get Several Artists
- Get an Album's Tracks
- Get an Album
- Get Several Albums
- Search for an Item
👤 Tsiry Sandratraina
- Twitter: @tsiry_sndr
- Github: @tsirysndr
Give a ⭐️ if this project helped you!