Skip to main content
Spotify API provides access to millions of songs, playlists, and user listening data.
Spotify API requires a Spotify premium account

Overview

Create Account

Sign up for a Spotify Developer account

Get API Key

Generate your Spotify API credentials

Copy into Anything

Add your API keys to Anything’s secrets

Account Creation

1

Visit Spotify Developer Portal

Go to developer.spotify.com and click “Dashboard”
2

Sign up

  • Log in with your Spotify account
3

Create an App

  • Click “Create App” in the dashboard
4

Add Details

  • Fill in app name and description
  • The redirect uri will be your create project live site url + /api/callback

Generate API Keys

1

Access Credentials

  1. Go to your app settings
  2. Find your Client ID and Client Secret
Keep your Client Secret secure and never share it
2

Configure OAuth

This step is only relevant if you use the Spotify User Info
  1. Be sure your project is published
  2. Ensure there is a callback path in your page and functions setting

Add to Anything project

1

Add the integration

  1. In your Anything project, type / in the chat
  2. Select “Spotify” from the menu
2

Add your API keys

  1. Paste your Client ID into the “SPOTIFY_CLIENT_ID” field
  2. Paste your Client Secret into the “SPOTIFY_CLIENT_SECRET” field
Need new credentials? Generate them in your Spotify Developer dashboard.
3

Start using

You can now use prompts with the integration to access music data.Example prompts:
  • Get user's playlists using /Spotify
  • Search for songs with /Spotify
  • Create a music player using /Spotify
The API limits how often your app can fetch data. If your app loads the same data often, ask the agent to save it locally so it doesn’t re-fetch every time.
Example prompt for optimization:
When using /Spotify, save the track data so my app doesn't have to fetch it again
Your Spotify integration is ready! Use /Spotify in chat to access music data.