Build something with your music.¶
Spotify tools for Python. Typed results. Async by default. No developer API key for public data.
Search tracks, browse releases, inspect public playlists or build a live now-playing display. Start anonymously; connect your own account when you need saved music, playlist edits, entitled lyrics or podcast captions.
Get your first result Search Spotify in Python without an API key Coming from Spotipy?
Want a visual first result? Install the demo extra and run
spotapi discover "Daft Punk". See
terminal setup.
import asyncio
from spotapi import Public
async def main() -> None:
hits = await Public.search("Daft Punk", types="track", limit=5)
for track in hits.tracks:
print(track.name, track.uri)
asyncio.run(main())
Pick what you want to build¶
| Your project | Start here |
|---|---|
| A catalogue browser or music dashboard | Search and reusable catalogue clients |
| A release explorer or concert finder | Discovery and artist events |
| A duplicate-aware playlist organiser | Account and playlist operations |
| A now-playing overlay | Player snapshots and events |
| A working application to explore and learn from | Studio and its source |
| A podcast-caption tool | Authenticated transcripts |
| A Python script or notebook | Synchronous access |
| A local assistant integration | Read-only MCP tools |
Small API, explicit behavior¶
- Result fields have types and autocomplete. Inspecting a model never sends a request.
- Reuse one
Cataloguefor related reads, or letPublicclean up a one-shot call. - Batch independent resources without losing input order or individual errors.
- Choose explicit account and player scopes. Mutations are not silently replayed.
Choose the integration that fits¶
SpotAPI uses unofficial Spotify web-player endpoints. It does not provide an official API contract, unlimited access, or a legal exemption. Endpoint behavior, rate limits, availability and entitlement can change. Official Web API clients such as Spotipy remain useful when that integration is the right fit.
See player capabilities, troubleshooting, request policy and the legal notice.
If SpotAPI helped you get a useful result, star the repository or share what you built in its Discussions. Specific bug reports and small integration examples help other developers get started too.