How Can You Get Started with the Spotify API?

Spread the love

Get Started with the Spotify API: Discover how to get the client credentials needed to use the Spotify API.

We’ll go over the following topics:

  • Make an app
  • Retrieve the “Client ID” and “Client Secret.”
  • Include the redirect URL.

To use the Spotify API, we must first obtain the “Client ID” and “Client Secret” from the Spotify API. We’ll also need to add a redirect URL on which we want to land once the user grants us the required permissions. To begin, we must create an account and an app on Spotify. In this lesson, we’ll go over how to do it step by step.

Make an app: Get Started with the Spotify API

Let’s take a look at how to make a Spotify app.

  • Create your Spotify account by going to the registration page.
  • Go to the Developers Dashboard once the account has been create. Spotify’s Developer Terms of Service will be display. We will be redirected to the Developers Dashboard once we accept these terms.
  • Then select the “CREATE AN APP” option. A dialogue box will appear for the app’s name and description.
  • Fill in this information and click the “CREATE” button. We’ll be redirected to the app overview page.

The following slides illustrate the process:

Obtain the “Client ID” and “Client Secret”

When you create an app, it generates a “Client ID” and a “Client Secret” that are unique to that app. We’ll need these keys to get an authorization token for making API calls. When we arrive at our app overview page, proceed as follows:

To see the “Client Secret” key, click the “SHOW CLIENT SECRET” button.

  • Note the “Client ID” and “Client Secret” keys.
  • In the widget below, click the “Edit” button.
  • Assign the “Client ID” and “Client Secret” values to the CLIENT ID and CLIENT SECRET keys, respectively.
  • To save these keys throughout the course, click the “Save” button.


Edit : Import Values from JSON

print(“Your Client ID is:  {{CLIENT_ID}}”);

print(“Your Client Secret is:  {{CLIENT_SECRET}}”);

Include the redirect URLL: Get Start with the Spotify API

The final step before generating the authentication token is to add a redirect URL to the Spotify app. This URL is where we want the user to land after logging in and granting us the necessary permissions. This course’s redirect URL is as follows:


To add this URL to your Spotify app, follow these steps:

  • On the app overview page, click the “EDIT SETTINGS” button. Because a dialogue box will appear where you can change your Spotify API app settings.
  • Copy the redirect URL from then widget above and add it to the “Redirect URIs” list in the dialogue box.
  • To save these settings, click the “SAVE” button at the bottom of the dialogue box.

15 thoughts on “How Can You Get Started with the Spotify API?”

Leave a Comment