Spotify API
Set up API access for Spotify, enabling search, playback control, playlist management, and access to music metadata.
getapi spotify
Prerequisites
- A Spotify account (free or premium)
Credentials
| Variable | Description | Sensitive |
|---|---|---|
SPOTIFY_CLIENT_ID |
Client ID for your Spotify application | Public |
SPOTIFY_CLIENT_SECRET |
Client Secret for server-side authentication | Secret |
Setup Steps
- 1 Info
- 2 Open URL
- 3 Info
- 4 Confirm
- 6 Input
- 7 Input
- 8 Validate
Things to Know
- The Client Secret must NEVER be exposed in client-side code. Use the Authorization Code flow with PKCE for frontend apps.
- Spotify's free tier has no hard rate limit, but aggressive usage may trigger 429 errors. Back off and retry.
- Apps start in 'development mode' with a 25-user limit. Submit a quota extension request for production use.
- Some endpoints (e.g. playback control) require Spotify Premium on the user's account.
- Redirect URIs must be registered in your app settings before they can be used in the OAuth flow.