AliAkhtari78/SpotifyScraper
Extract public Spotify data — tracks, albums, artists, playlists, podcasts & lyrics — without the official API. Sync + async, typed models, one dependency.
What it solves
SpotifyScraper provides a way to extract public metadata from Spotify (tracks, albums, artists, playlists, and podcasts) without requiring an official API key, app registration, or OAuth flow. It bypasses the setup overhead of the official Web API while still providing access to data like related artists and recommendations, which have recently become restricted for new official API apps.
How it works
The library bootstraps an anonymous token from Spotify's public embed pages and reads the same JSON endpoints used by the Spotify web player. It returns data as typed, immutable models. For advanced features like lyrics and podcast transcripts, users can optionally provide a Spotify sp_dc cookie to authenticate without needing a password.
Who it’s for
Developers who need fast, key-free access to Spotify's public metadata, as well as those building AI agents that require Spotify data integration via the Model Context Protocol (MCP).
Highlights
- No API Key Required: Access public data without registration or OAuth.
- MCP Server: Includes a drop-in MCP server to expose Spotify data to LLM agents like Claude.
- Comprehensive Data: Extracts tracks, albums, artists, playlists, shows, and episodes, including cover art and 30-second previews.
- Authenticated Extras: Supports lyrics and podcast transcripts via cookie authentication.
- Resilience: Features a daily canary test suite and automatic fallback mechanisms to handle Spotify's internal API changes.
- Developer Friendly: Offers both sync and async clients, a CLI tool, and optional response caching.
Related
- Project
- Project
- Project
- Project