Spotify Web API

Provides access to Spotify's music catalog, user library, playlists, playback controls, and audio analysis features for building music-aware applications and automation.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Other spotify music streaming playlists playback audio-features search recommendations
⚙ Agent Friendliness
64
/ 100
Can an agent use this?
🔒 Security
90
/ 100
Is it safe for agents?
⚡ Reliability
84
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
90
Error Messages
85
Auth Simplicity
78
Rate Limits
82

🔒 Security

TLS Enforcement
100
Auth Strength
88
Scope Granularity
90
Dep. Hygiene
85
Secret Handling
85

Very granular OAuth scope system allows least-privilege access. PKCE support for public clients eliminates client secret exposure risk. Client Credentials flow for non-user data avoids unnecessary user token usage. Well-maintained official SDKs reduce implementation error risk.

⚡ Reliability

Uptime/SLA
88
Version Stability
85
Breaking Changes
78
Error Recovery
85
AF Security Reliability

Best When

Building music-aware agents, playlist automation tools, or ambient computing integrations for users with active Spotify accounts, especially Premium subscribers for full playback control.

Avoid When

Your users are on Spotify free tier and you need player control, or you need to stream or download audio files rather than just control playback.

Use Cases

  • Programmatically create and populate playlists based on mood or activity context detected by an agent
  • Fetch audio features (tempo, energy, valence, danceability) for tracks to build a music recommendation engine
  • Control active Spotify playback — skip tracks, adjust volume, or queue songs — as part of a smart environment agent
  • Monitor a user's recently played tracks and top artists to generate personalized weekly music digest reports
  • Search the catalog and retrieve track metadata to enrich a music knowledge base or trivia bot

Not For

  • Downloading or redistributing audio content — the API provides streaming control and metadata, not audio file downloads
  • Playback control on free-tier accounts — several player endpoints require an active Spotify Premium subscription
  • Building competing music streaming services — Spotify's ToS explicitly prohibits using the API to replicate core streaming functionality

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: oauth2 client_credentials
OAuth: Yes Scopes: Yes

OAuth 2.0 with 13+ scopes covering playlist management, user library, listening history, playback control, user profile, and follow actions. Client Credentials flow available for catalog searches that don't require user context. Authorization Code with PKCE recommended for user-facing apps. Tokens expire in 1 hour and must be refreshed.

Pricing

Model: freemium
Free tier: Yes
Requires CC: No

Apps in Development mode are limited to 25 users. To serve more users, you must apply for a quota extension, which requires Spotify review and approval. Spotify has tightened API access in recent years, restricting some endpoints (e.g., audio features) for new apps.

Agent Metadata

Pagination
offset
Idempotent
Partial
Retry Guidance
Documented

Known Gotchas

  • Player endpoints (pause, skip, queue) require an active Spotify Premium subscription AND an active device — calls against free accounts or with no active device return 403/404 with misleading error messages
  • Audio features endpoint has been restricted for new apps as of 2024 — agents should not assume access to acoustic analysis data without verifying app permissions
  • OAuth tokens expire after 1 hour; agents running long background workflows must proactively refresh tokens or face mid-run 401 failures
  • Adding duplicate tracks to a playlist is allowed and not idempotent — agents performing playlist sync must deduplicate before writing
  • Rate limiting is per-app globally, not per-endpoint — a burst on search can exhaust the budget for concurrent playback control calls in the same agent session

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Spotify Web API.

$99

Scores are editorial opinions as of 2026-03-06.

5173
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered