-
Notifications
You must be signed in to change notification settings - Fork 0
Spotify credentials
LakesCorp edited this page Oct 3, 2023
·
1 revision
Obtaining Spotify API Credentials 🗝️:
To interact with the Spotify API and fetch artist collaborations, you'll need to obtain your API credentials, which include a Client ID
and Client Secret
.
Follow these steps to get your Spotify API credentials:
-
Sign Up/Log In:
- Visit the Spotify Developer Dashboard.
- Sign up for a Spotify developer account or log in if you already have one.
-
Create an App:
- Once you're logged in to the Spotify Developer Dashboard, click on the
Create an App
button. - Fill out the form by providing an App Name, App Description, and check the required boxes in the terms of service.
- Click on
CREATE
to finalize the app creation.
- Once you're logged in to the Spotify Developer Dashboard, click on the
-
Access Your Credentials:
- After creating your app, you'll be redirected to your app's dashboard.
- Here, you can find your
Client ID
andClient Secret
under theApp Settings
section.
-
Set Redirect URIs:
- In the Spotify Developer Dashboard, click on
Edit Settings
. - Under
Redirect URIs
, addhttp://localhost:8888/callback
(or any other redirect URI your application uses). This is essential for the OAuth flow to work. - Save your changes.
- In the Spotify Developer Dashboard, click on
-
Using the Credentials:
- Safely store the
Client ID
andClient Secret
and use them in your application as required. Never expose these keys in public repositories or public parts of your application. - In the case of our Artist Network Generator, you'd add these credentials to the
.env
file in your project directory.
- Safely store the
Important Notes:
- Treat your
Client ID
and especially yourClient Secret
as sensitive data. Do not expose them in any public spaces. - The Spotify API has rate limits. If you make many requests in a short period, you might be temporarily blocked. Always refer to Spotify's official documentation for the most up-to-date information on rate limits and best practices.
For more detailed information and advanced configurations, refer to the official Spotify Developer documentation.