--- id: shazamio version: "0.8.1" license: MIT license_treatment: permissive maintenance: aging --- # shazamio — Is a asynchronous framework from reverse engineered Shazam API written in Python 3.8+ with asyncio and aiohttp. License: permissive · Maintenance: aging · Downloads: 86.9K/mo ## 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 above — 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 pip install shazamio uv add shazamio poetry add shazamio ## Installing 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_current - Install friction: low - Maintenance: aging - Downloads: 86.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags song recognition from audio file, shazam api python async, music identification library, track metadata lookup, artist information retrieval, music charts by country, asyncio music search, music-identification, reverse-engineered-api, async-http [View on SkillFed](https://skillfed.io/packages/shazamio) · [View on PyPI](https://pypi.org/project/shazamio/)