To be able to use the Web API, the first thing you will need is a Spotify user account (Premium or Free). To get one, simply sign up at www.spotify.com.
When you have a user account, go to the My Applications page at the Spotify Developer website and, if necessary, log in. Accept the latest Developer Terms of Use to complete the set-up of your account.
Any application can request data from Spotify Web API endpoints and many endpoints are open and will return data without requiring registration. However, if your application seeks access to a user’s personal data (profile, playlists, etc.) it must be registered. Registered applications also get other benefits, like higher rate limits at some endpoints.
You can register your application, even before you have created it. Follow these steps to register an application:
http://localhost:1410/
as a Redirect URI.To generate an authentication token for API access, run the below code once at the beginning of the R session.
library(rspotify) spotify::spotifyConnect(app_name, client_id, client_secret)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.