The complete source code of the app that will create in this tutorial is available on GitHub. In this example we retrieve data from the Web API /me endpoint, that includes information about the current user. The code-to-token exchange requires a secret key, and for security is done through direct server-to-server communication. This flow first gets a code from the Spotify Accounts Service, then exchanges that code for an access token. The authorization flow we use in this tutorial is the Authorization Code Flow. Retrieve the data from a Web API endpoint.Authenticate a user and get authorization to access user data.In this tutorial we create a simple application using Node.js and JavaScript and demonstrate how to: To access user-related data through the Web API, an application must be authorized by the user to access that particular information. Through the Spotify Web API, external applications retrieve Spotify content such as album data and playlists. Note: By using the Spotify Tools, you accept our Developer Terms of Service. App Remote SDK and the Application LifecycleĬreate a simple server-side application that accesses user related data through the Spotify Web API.Authorization Scopes Authorization Scopes.