Skip to main content

sonovault

CI PyPI

Python client for the SonoVault music metadata API. 93M+ tracks with ISRC, ISWC, genre, BPM, musical key, record label, canonical release dates, and cross-platform IDs for Spotify, Apple Music, Tidal, Beatport, Discogs, MusicBrainz, YouTube, Deezer, and SoundCloud. One call resolves them all.

  • One key, no OAuth. A single x-api-key header, no approval queue.
  • Free tier. 1,000 requests/month, no credit card: get an API key.
  • Docs. Full API reference at sonovault.now/docs.

Install

pip install sonovault

Python 3.9+.

Quickstart

from sonovault import SonoVault

sv = SonoVault(api_key="YOUR_API_KEY")

# Find a track's ISRC from artist + title
page = sv.tracks.search(artist="Daft Punk", title="One More Time")
track = page["results"][0]
print(track["isrc"])   # "GBDUW0000053"
print(track["genre"], track["releases"][0]["label"]["name"])
print(track["bpm"], track["key_alphanumeric"])  # 123 "10B"

# An album's tracklist, in playing order
release = sv.releases.get(7)
for t in release["tracks"]:
    print(t["disc_number"], t["track_number"], t["title"])  # 1 1 One More Time

# One record groups every edition of an album, so pick the one you mean
for e in release["editions"]:
    print(e["id"], e["format"], e["release_date"], e["track_count"])  # 16216 cd 2001-03-12 14
deluxe = sv.releases.get(7, edition=16216)

# Find an album's UPC from its name, or the release behind a barcode
found = sv.releases.search(title="Discovery", artist="Daft Punk")["results"][0]
print(found["digital_upc"])  # 724384960650
by_barcode = sv.releases.by_upc("724384960650")  # UPC-A or EAN-13, 404 if unknown
print(by_barcode["results"][0]["title"])  # Discovery

# Resolve that ISRC to its ID on every platform
links = sv.tracks.links(isrc=track["isrc"])
for link in links["links"]:
    print(link["source"], link["url"])  # spotify https://open.spotify.com/track/...

# Recording to composition (ISWC), for royalty and publishing workflows
work = sv.tracks.iswc(isrc=track["isrc"])

# What a label released on one day (from_ / until are inclusive YYYY-MM-DD)
friday = sv.labels.releases(1, from_="2026-09-11", until="2026-09-11")

Key and BPM

Every track (search, lookups, browse, resolve, release tracklists, stream events) carries its tempo and musical key. Key comes from OpenKeyScan and BPM from the Lexicon DJ beat detector (trusted by 100k+ DJs), both run by SonoVault on the audio.

track = sv.tracks.by_isrc("GBDUW0000053")  # Daft Punk, One More Time

track["bpm"]               # 123 (full tempo, up to 2 decimals)
track["key_alphanumeric"]  # "10B" (1 to 12, A = minor, B = major)
track["key_musical"]       # "D"
track["key_open"]          # "3d" (Open Key notation)

# Every key we hold, one entry per source
for k in track["keys"]:
    print(k["source"], k["key_alphanumeric"])  # openkeyscan 10B

All of these are None (and keys is []) when a track has not been analysed yet. Other audio features such as energy or danceability are not exposed.

Bulk resolve

Resolve up to 100 lines in one request: track names, ISRCs, or platform IDs. Useful for enriching play logs and library exports.

batch = sv.tracks.resolve(
    input_type="track_name",
    items=[
        {"artist": "Daft Punk", "title": "Harder, Better, Faster, Stronger"},
        {"artist": "Daft Punk", "title": "Around the World"},
    ],
)
for row in batch["results"]:
    print(row["status"], row["track"] and row["track"]["isrc"])

Pagination

List endpoints return {"results": [...], "next_cursor": ...}. Pass the cursor back for the next page. next_cursor is None on the last page.

from sonovault import paginate

for release in paginate(lambda cursor: sv.artists.releases(42, cursor=cursor)):
    print(release["title"])

Or walk the cursor yourself:

cursor = None
while True:
    page = sv.artists.releases(42, cursor=cursor)
    # ...use page["results"]
    cursor = page.get("next_cursor")
    if not cursor:
        break

Error handling

Non-2xx responses raise SonoVaultError:

from sonovault import SonoVaultError

try:
    sv.tracks.browse(genre="House")  # paid-tier endpoint
except SonoVaultError as err:
    print(err.status, err.is_forbidden, err)

Rate-limited responses that carry a Retry-After header are retried automatically. The default is 2 retries, configurable with max_retries.

Examples

Runnable scripts live in examples/: find an ISRC, resolve cross-platform links, enrich a play log, follow live stream events over SSE, and verify webhook deliveries.

API coverage

Namespace Methods
sv.tracks search, get, by_isrc, iswc, by_iswc, links, resolve, identify_audio, browse
sv.artists search, get, releases
sv.labels search, get, releases, artists
sv.releases search, get, by_upc, latest
sv.genres list
sv.suggestions submit, list
sv.streams create, list, get, update, history, report, live, stop

If a station moves to a new stream URL, sv.streams.update(stream_id, {"url": new_url}) repoints the stream in place, keeping its id and history. | sv.webhooks | create, list, get, update, delete, test, deliveries |

Some endpoints (audio identify, browse, stream monitoring) need a paid tier. See pricing. Everything else works on the free tier.

License

MIT

Metadata

Release files for sonovault 2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sonovault 2.8.0
File Size Uploaded Provenance Actions
sonovault-2.8.0.tar.gz 21.5 kB With provenance Details for sonovault-2.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sonovault 2.8.0
File Interpreter ABI Platform Actions
sonovault-2.8.0-py3-none-any.whl Python 3 none any Details for sonovault-2.8.0-py3-none-any.whl

Total release size: 35.1 kB

Release files / sonovault-2.8.0.tar.gz

Download URL sonovault-2.8.0.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6aed0ab1486484136a81f9ae1c6c6f40af8be3d86c4134f2428c401bc012b1f5
BLAKE2b-256 checksum
How to use checksums
a44eb29c8626611462ffb42e5e7b3844b29174b3041cf3bd8c64a6551063af9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / sonovault-2.8.0-py3-none-any.whl

Download URL sonovault-2.8.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04b4095878401a770637e4a4ed9aac8f34fc959447a552bfd6974a28a2e3a49f
BLAKE2b-256 checksum
How to use checksums
95b03fc1ae228246ef37cdfb3fa77ce615e78c351dbe3d896d81460579b8c5f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for sonovault 2.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sonovault-2.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page