Typed async Spotify tools for Python, built on Spotify’s private API. Search public data without an API key, control playback without Premium, and build catalogue, playlist and player apps.

★ 1,217⑂ 144👁 12⑃ 52● 54▤ 5
PythonGPL-3.0Created 2024-07-01
下载:SpotAPI 2.1.4 — Additional Lyrics FeatureSpotAPI-2.1.4 ↓2.1.42026-11-26
+33
日增长
1,217
stars
144
forks
12
watchers
52
prs
54
issues
5
releases

README

SpotAPI


  Build Spotify apps in Python with a typed, async API.



  Use SpotAPI for Spotify's public catalogue, playlists and connected players.
  No developer app or API key for public data.



  Get started ·
  Explore ·
  Python API ·
  Documentation ·
  Sponsor



  



  Language: English · Português (Brasil) · Español · Français · 日本語


 Get started

Python 3.11+ is required. Start with a real search—no Spotify login, Client ID or configuration needed.

bash
python -m pip install spotapi
python -m spotapi search "Daft Punk"


Use the same API in Python:

python
import asyncio
from spotapi import Public

async def main():
    results = await Public.search("Daft Punk", limit=5)
    for track in results.tracks:
        print(track.name, track.uri)

asyncio.run(main())


More Python examples · Playlist audit and CSV export · No-API-key Python guide

The first request may be slower while SpotAPI discovers and caches the current web-player queries.

Try the interactive terminal explorer:

bash
python -m pip install "spotapi[demo]"
python -m spotapi discover "Daft Punk"


Navigate search results, artwork and Spotify links without signing in. Discover example · Troubleshooting

 Explore in the terminal

The CLI goes beyond search. Inspect an artist, pull track credits, or list a public playlist:

bash
python -m spotapi search "Daft Punk" --type artist --json
python -m spotapi get SPOTIFY_URL
python -m spotapi playlist items PLAYLIST_ID --limit 10


These work without a developer API key. Account operations—liked music, private playlists and control of your existing Spotify player—require your own Spotify session. See the account guide and player guide.

 Connect: control your Spotify player

Connect brings searching, device selection, up-next, playback and a live activity log into one keyboard-friendly terminal session. It operates an existing signed-in Spotify player; it does not stream, download or decrypt tracks.

!SpotAPI Connect controlling a real Spotify player from the terminal

Connect · Search, navigate and control an existing Spotify player from your terminal. Spotify plays the audio; SpotAPI sends the controls.

Launch Connect:

bash
python -m pip install "spotapi[connect,browser]"
python -m playwright install chromium
python -m spotapi connect


First-time browser sign-in is covered by these commands. Already use SPOTIFY_COOKIE or a saved Connect profile? Install only spotapi[connect] and skip the browser download.

Use search Daft Punk, queue 1, pause, next or seek 1:30. Ctrl+P opens the command palette. See the Connect guide for device selection and setup.

 See what else it can do

SpotAPI also powers Studio, a desktop music explorer built on the same library. Open tracks, inspect credits, follow artists and albums, and display timed lyrics. With a connected Spotify player, clicking a lyric can seek playback to that line.

!SpotAPI Studio desktop application preview

Watch the synchronized-lyrics demo (GIF, about 11 MB) · Studio i

Top issues

Discussions

Latest release

SpotAPI 2.1.4 — Additional Lyrics Feature v2.1.4 2026-11-26
What's New

SpotAPI 2.1.4 introduces bulk lyrics synchronization for local music libraries, powered by LRCLIB. No Spotify account or API key required.

- Recursively scan local MP3 and FLAC files.
- Automatically match synchronized and unsynchronized lyrics.
- Save lyrics as .lrc or .txt files, or embed them where supported.
- Preview changes with --dry-run.
- Review lyric differences before overwriting existing files.
- Preserve existing synchronized lyrics when only unsynchronized lyrics are available.

 Getting Started

bash
pip install -U "spotapi[media]"
spotapi lyrics-sync

Snapshot: 2026-11-28T10:06:57Z · Data license Apache-2.0 · JSON