> For the complete documentation index, see [llms.txt](https://induja.gitbook.io/statify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://induja.gitbook.io/statify/run-statify-locally/setting-up-the-spotify-web-api.md).

# Setting up the Spotify Web API

## Register the app with the Spotify API

* Head to [developer.spotify.com](https://developer.spotify.com/).
* Login with your Spotify account.
* Once redirected to your Dashboard, Click on 'Create an App'.
* Register the app via the pop up that appears.
  * Name the app `Statify`&#x20;

## Configure the App

* Click on the `Edit Settings` button on the right side of your app's dashboard.\
  ![](/files/IHk9mLqVKUZMTpI9uzT0)<br>
* Look for the `Redirect URIs` field. Add the following link to it:

```
https://induviduality.github.io/local-redirect/
```

{% hint style="info" %}
Make sure to include the `/` at the end too
{% endhint %}

* Click the `Save` button to save and close.

## Add Users to the App

* Next, click on the `Users and Access` button next to the `Edit Settings` button.
* Under the 'Users and Access' heading, click on the `Add new User` button.![](/files/WL8Cu5pBiRCXcxEG6AQY)
* Enter the display name of the Spotify account you will use to login while running the app. Enter the email ID associated with the account too. Click the `Add` button to save.![](/files/HLANTNePOm9kkvoKgvWD)

{% hint style="info" %}
If your account uses Google/Facebook sign-in, enter the email associated with the Google or Facebook account
{% endhint %}

## Save your API Credentials

* In your app dashboard, copy the `Client ID` and paste it somewhere safe till we use it in the following steps.
* Click on `Show Client Secret` to reveal your `Client Secret` and copy the same.

{% hint style="danger" %}
Your Client ID and Client Secret are to be highly confidential. Do not make it public at any cost.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://induja.gitbook.io/statify/run-statify-locally/setting-up-the-spotify-web-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
