skillfed

shazamio

Is a asynchronous framework from reverse engineered Shazam API written in Python 3.8+ with asyncio and aiohttp.

shazamio v0.8.1 86.9K downloads/30d#13,825 on PyPI937
Permissive license MIT AGING released

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 shazamio

uv

uv add shazamio

poetry

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 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

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

song recognition from audio fileshazam api python asyncmusic identification librarytrack metadata lookupartist information retrievalmusic charts by countryasyncio music search
music-identificationreverse-engineered-apiasync-http

More WWW/HTTP packages