shazamio
Is a asynchronous framework from reverse engineered Shazam API written in Python 3.8+ with asyncio and aiohttp.
What it is and what it does
Shazamio is an asynchronous Python wrapper around Shazam's undocumented API, built on reverse engineering. It lets you identify songs from audio files, search for tracks and artists, fetch detailed metadata, and retrieve charts ranked by country, city, or genre. The library uses aiohttp for HTTP requests and pydub for audio handling, making it suitable for concurrent music identification tasks in async applications.
The package includes a serialization layer via dataclass-factory that converts raw API responses into structured Python objects, reducing manual dictionary navigation. It targets modern Python versions (3.10+) and is designed for developers building music recognition features, playlist analysis tools, or applications that need programmatic access to Shazam's music data.
Use it for:
- Identify a song from an uploaded audio file in a web application or bot.
- Build a music discovery tool that retrieves top tracks by country, city, or genre.
- Fetch artist profiles and track metadata for music database enrichment.
- Search for songs or artists by name and retrieve structured results.
- Monitor listening counts and find similar tracks for recommendation systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Asynchronous Python library that recognizes songs by audio file and retrieves detailed information about tracks, artists, and charts from Shazam's API.
Yes, with conditions. Install if you need Shazam integration and accept that the library relies on reverse engineering, making it subject to API breakage. Low install friction and no known vulnerabilities are positives. However, the aging maintenance status (last update 2025-06-11, no recent commits) means you should verify the API remains functional before committing to production use and be prepared to fork or find alternatives if Shazam changes their endpoints.
Install
shazamio on PyPI
pip
pip install shazamiouv
uv add shazamiopoetry
poetry add shazamioInstalling shazamio
Before you install
Low friction installation with a pure Python wheel. Maintenance status is aging—last commit was 2025-06-11 and the repository has not been updated in several months, though it remains unarchived with 937 stars.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice in distributions.
Quickstart
pip install shazamio
import asyncio
from shazamio import Shazam
async def main():
shazam = Shazam()
result = await shazam.recognize('song.ogg')
print(result)
asyncio.run(main())
Requires Python 3.10 or later; all operations are async and must run within an event loop.
Verify before relying
- Whether the reverse-engineered Shazam API remains stable or is subject to breaking changes without notice.
- Performance characteristics and rate limits when making concurrent requests.
- Whether audio file format support extends beyond the examples shown (e.g., MP3, WAV, FLAC).
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — numpy, aiohttp, pydub, dataclass-factory, aiofiles, anyio, aiohttp-retry, pydantic, shazamio-core |
| Maintenance | aging — 429 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,899/month — #13,825 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: shazamio-0.8.1-py3-none-any.whl
Keywords: python, shazam, music, recognize, api, async, asyncio, aiohttp, identification
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
ytmusicapiytmusicapi lets you programmatically interact…
permissive · top 15,000 on PyPI
pyobjc-framework-ShazamKitProvides Python bindings to macOS's ShazamKit…
permissive · top 15,000 on PyPI
discogs-clientA Python client library for querying and…
permissive · top 15,000 on PyPI
spotifywebapipythonA Python library that wraps the Spotify Web…
permissive · top 15,000 on PyPI
spotapiSpotAPI wraps Spotify's private and public APIs…
unclear · top 15,000 on PyPI
eyeD3eyeD3 reads, edits, and displays ID3 metadata…
copyleft · top 15,000 on PyPI
spotipySpotipy is a Python client library for the…
permissive · top 15,000 on PyPI
pyacoustidProvides Python bindings for Chromaprint…
permissive · top 15,000 on PyPI
socoSoCo is a Python library for programmatic…
permissive · top 15,000 on PyPI
tinytagReads metadata (artist, title, duration,…
permissive · top 5,000 on PyPI