How to connect with Web Api Spotify (in Java)?

If you can describe what you wish to do with the API that would help me guide you down the correct path.

To start with most API’s need some way to authenticate the caller, spotify here is no exception. To start you must first setup your application as stated in their documentation. Pay extra attention to the “Application Credentials” as these are the values that will allow you to make requests to their API.

Now that you have these credentials you have two options, write your own classes to integrate with the Spotify API or use a external library like this one. Using an external library saves you a lot of time.

From here you will need to read up on the documentation on their endpoints, calling whichever endpoint you need for your usecase.

Leave a Comment