MeloData API

Look up available audio features and metadata by ISRC. Get BPM, key, energy, danceability, valence, and more. Built for music apps, recommendation engines, playlist tools, and audio analysis pipelines.

Base URL

Quick Start

1

Create an account in the developer portal.

2

Generate an API key from the dashboard. Save it immediately; it is shown only once.

3

Make your first request:

bash
curl -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  https://melodata.voltenworks.com/api/v1/tracks/USRC17607839/features

Note

Coverage: MeloData combines an archive seed dataset with analysis of available audio previews. Uncached tracks may return HTTP 202 while analysis is queued. Follow Retry-After with a bounded retry policy; a later result may contain features, partial metadata or an unavailable status.

Authentication

All API requests require a Bearer token in the Authorization header. Keys are created in the developer dashboard and follow the format:

melo_sk_{64 hex characters}    # 72 characters total

Example header

Authorization: Bearer melo_sk_a1b2c3d4e5f6...
DetailValue
Prefixmelo_sk_
Full key length72 characters
ShownOnce at creation. Store it securely.
Dashboard displaymelo_sk_a1b2c3d4... (prefix only)
Max active keys5 per account

Key Rotation

Create a new key, then update your application. Both keys work at the same time, so rotations have zero downtime. Keys never expire on their own: revoke the old key from the dashboard once your deployment is fully on the new one. Revocation takes effect within 5 minutes.


Rate Limiting

Requests are rate-limited per account using a sliding window algorithm. Limits scale with your plan.

PlanRequests / secondRequests / minute
Free5100
Dev10300
Pro251,000
Scale503,000

Rate Limit Headers

Every response includes these headers:

HeaderDescription
X-RateLimit-LimitMax requests in the current window
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp in milliseconds when the window resets

Tip

429 responses do not count against your monthly quota. You are never billed for rate-limited requests.

Quotas & Billing

PlanPriceMonthly Quota
Free$01,000 lookups
Dev$19 / mo25,000 lookups
Pro$79 / mo200,000 lookups
Scale$299 / mo1,000,000 lookups + SLA

Overage billing is opt-in. When enabled, requests beyond your quota are billed at $0.002 per lookup. When disabled, requests are rejected with 429 once quota is exhausted.

Quota Headers

HeaderDescription
X-Quota-UsedBilled lookups this billing period
X-Quota-LimitMonthly quota for your plan
X-Quota-ResetUnix timestamp in seconds when the monthly quota resets. Not sent through RapidAPI.

What Gets Billed

StatusBilled?Reason
2xxYesSuccessful lookup
202NoTrack is being analyzed
200 unavailableNoSingle-track features or metadata for a track we found no audio source for (status unavailable)
4xxNoClient error (bad request, invalid key, not found)
429NoRate limited or quota exceeded
5xxNoServer error (our fault)

Response Format

All responses use a consistent JSON envelope. Every response includes a unique request_id for debugging.

Success

json
{
  "data": {
    "isrc": "USRC17607839",
    "title": "Bohemian Rhapsody",
    "features": { ... }
  },
  "meta": {
    "request_id": "req_a1b2c3d4e5f6",
    "quota": {
      "used": 4521,
      "limit": 25000,
      "resets_at": "2026-05-01T00:00:00Z"
    }
  }
}

Error

json
{
  "error": {
    "message": "Invalid API key",
    "status": 401
  },
  "meta": {
    "request_id": "req_f6e5d4c3b2a1"
  }
}

Note

The X-Request-Id header is also set on every response. Include it in support requests for fast debugging.

Endpoints

Get Track Features

GET/v1/tracks/{isrc}/features

Returns audio features for a track identified by ISRC. If the track has not been analyzed yet, it is queued for analysis and the request waits up to 5 seconds for it. Most new tracks finish in that time and come back as a normal 200. If the analysis takes longer, a 202 is returned instead. The 202 is not billed.

ParameterTypeRequiredDescription
isrcstring (path)requiredInternational Standard Recording Code: 2 letters, 3 alphanumeric characters, then 7 digits (for example USRC17607839). The hyphenated form printed on releases (US-RC1-76-07839) is also accepted. Case-insensitive. Anything else is a 400.
waitinteger (query)optionalSeconds to wait for a track we have not analyzed yet. Default 5. 0 returns the 202 straight away; the most is 20. Anything other than a whole number from 0 to 20 is a 400. A track already in the catalog is returned at once whatever this is.

200 Response: Features Available

json
{
  "data": {
    "isrc": "USRC17607839",
    "title": "Bohemian Rhapsody",
    "artist": "Queen",
    "features": {
      "bpm": 143.8,
      "tempo_confidence": 0.93,
      "key": "Bb",
      "key_confidence": 0.87,
      "energy": 0.72,
      "danceability": 0.39,
      "valence": 0.23,
      "acousticness": 0.28,
      "loudness": -7.2,
      "instrumentalness": 0.01,
      "speechiness": 0.05,
      "liveness": null,
      "time_signature": 4
    }
  },
  "meta": {
    "request_id": "req_a1b2c3d4e5f6",
    "quota": { "used": 4521, "limit": 25000, "resets_at": "2026-05-01T00:00:00Z" }
  }
}

Some ISRCs are a specific version of a song, such as a live cut, a DJ-mix cut or a radio edit. When that is the case and our stored title does not say so, the response also includes matched_title with the fuller title: title "Bruises" comes with matched_title "Bruises (Live)". The field is left out for every other track.

202 Response: Analysis QueuedNOT BILLED

Returned when the analysis is not done by the end of the wait, or straight away when many tracks are already queued ahead of this one. Headers include Retry-After: 10

json
{
  "data": {
    "isrc": "USRC17607839",
    "status": "analyzing",
    "estimated_seconds": 10
  },
  "meta": {
    "request_id": "req_c3d4e5f6a1b2"
  }
}

200 Response: Unavailable

We found no audio source for this track, so it has no audio features. This answer is not billed. When you ask for the track again, we look again in the background: a day after the first try, then a week, then a month. Your request still gets this answer right away, and once audio turns up the next request returns the features.

json
{
  "data": {
    "isrc": "XX1234567890",
    "status": "unavailable",
    "reason": "No audio source found for analysis. This track may be unreleased, region-locked, or have an incorrect ISRC."
  }
}

Note

See Handling 202s for retry strategies including simple polling, webhooks, and batch pre-analysis.

Get Track Metadata

GET/v1/tracks/{isrc}/metadata

Returns metadata for a track: title, artist, album, release date and duration. A track we have not analyzed yet is queued and waited for, the same as the features endpoint: a 200 if the analysis finishes within the wait, otherwise HTTP 202 and a Retry-After header. A 202 is not billed.

If we found no audio source for the track, the answer is a 200 with status set to unavailable and a reason, the same as the features endpoint, plus whatever metadata we hold for it (title, artist, album, release date, duration). Fields we do not have are left out. This answer is not billed.

ParameterTypeRequiredDescription
isrcstring (path)requiredISRC identifier: 2 letters, 3 alphanumeric characters, then 7 digits. The hyphenated form (US-RC1-76-07839) is also accepted. Case-insensitive. Anything else is a 400.
waitinteger (query)optionalSeconds to wait for a track we have not analyzed yet. Default 5. 0 returns the 202 straight away; the most is 20. Anything other than a whole number from 0 to 20 is a 400. A track already in the catalog is returned at once whatever this is.
json
{
  "data": {
    "isrc": "USRC17607839",
    "title": "Bohemian Rhapsody",
    "artist": "Queen",
    "album": "A Night at the Opera",
    "release_date": "1975-10-31",
    "duration_ms": 354320
  },
  "meta": {
    "request_id": "req_d4e5f6a1b2c3",
    "quota": { "used": 4522, "limit": 25000, "resets_at": "2026-05-01T00:00:00Z" }
  }
}

When the ISRC is a specific version of the song and our stored title does not say so, the response also includes matched_title with the fuller title, the same field as on the features endpoint.

200 Response: Unavailable (not billed)

json
{
  "data": {
    "isrc": "XX1234567890",
    "status": "unavailable",
    "reason": "No audio source found for analysis. This track may be unreleased, region-locked, or have an incorrect ISRC.",
    "title": "Demo Version",
    "artist": "Example Artist",
    "album": "Early Tapes",
    "duration_ms": 201000
  }
}

Search Tracks

GET/v1/tracks/search?q={query}

Search for tracks by title or artist name. Returns tracks that have been analyzed (excludes unavailable tracks).

ParameterTypeRequiredDescription
qstring (query)requiredSearch query. 2 to 200 characters. The SQL wildcard characters % and _ are rejected with a 400.
limitinteger (query)optionalResults per page. Default 20, max 50.
offsetinteger (query)optionalNumber of results to skip. Default 0, max 10000.
json
{
  "data": {
    "results": [
      {
        "isrc": "USRC17607839",
        "title": "Bohemian Rhapsody",
        "artist": "Queen",
        "album": "A Night at the Opera",
        "release_date": "1975-10-31"
      },
      {
        "isrc": "GBARL9300135",
        "title": "Bohemian Rhapsody (Live)",
        "artist": "Queen",
        "album": "Live at Wembley",
        "release_date": "1992-05-25"
      }
    ],
    "pagination": {
      "offset": 0,
      "limit": 20,
      "count": 2
    }
  },
  "meta": { "request_id": "req_e5f6a1b2c3d4", "quota": { "used": 4523, "limit": 25000, "resets_at": "2026-05-01T00:00:00Z" } }
}

Resolve to ISRC

GET/v1/tracks/resolve?title={title}&artist={artist}

Turns a human track name into an ISRC, so you can use the rest of the API without already holding one. It checks our catalog first, then external music databases. This is a read: it never queues an analysis and never spends analysis budget. Take the ISRC it returns and call Get Track Features.

ParameterTypeRequiredDescription
titlestring (query)requiredTrack title. 2 to 200 characters.
artiststring (query)requiredArtist name. 2 to 200 characters.

Every match carries a confidence between 0 and 1 and a confidence_level of exact, high, medium or low. Anything below 0.45 is not returned at all, it is a 404. Anything below high also carries a plain-English warning string. Read it: a name is not a unique identifier, and this endpoint tells you when it is guessing.

Recording variants matter. A live cut, a remix and an acoustic version are separate recordings with separate ISRCs and genuinely different features. If your query names a variant the match does not have (or the other way round), the confidence is capped below high and the warning is set. Include the variant in the title when you know it. Release-only qualifiers such as (2011 Remaster) are ignored, because that is the same performance, and (Original Mix) matches the plain title. When the variant you named is not available, the closest one is returned: the same mix at another length before the original, and the original before someone else's remix.

Results are cached for 7 days on a hit and 1 hour on a miss, and the external providers are called under a shared budget. If we cannot reach any source you get a 503 with a Retry-After header rather than a 404, so a temporary outage is never reported to you as "no such track". Both the 404 and the 503 are free: only a successful resolve counts against your quota.

bash
curl -G https://melodata.voltenworks.com/api/v1/tracks/resolve \
  -H "Authorization: Bearer melo_sk_your_key_here" \
  --data-urlencode "title=Bohemian Rhapsody" \
  --data-urlencode "artist=Queen"
json
{
  "data": {
    "query": { "title": "Bohemian Rhapsody", "artist": "Queen" },
    "isrc": "GBUM71029604",
    "matched": {
      "title": "Bohemian Rhapsody",
      "artist": "Queen",
      "album": "A Night at the Opera",
      "release_date": "1975-10-31"
    },
    "confidence": 1,
    "confidence_level": "exact",
    "warning": null,
    "source": "catalog",
    "cached": false,
    "providers": { "deezer": "not_tried", "itunes": "not_tried" },
    "analysis_queued": false
  },
  "meta": { "request_id": "req_a1b2c3d4e5f6", "quota": { "used": 4524, "limit": 25000, "resets_at": "2026-05-01T00:00:00Z" } }
}
StatusMeaning
200Resolved. Check confidence and warning before you rely on it.
400Missing or out-of-range title or artist.
404Every source answered and none of them knew this track. Not billed.
503No source could answer. Retry after the Retry-After header. Not billed.

Get Recommendations

GET/v1/recommendations

Returns similar tracks based on audio feature similarity to your seed tracks. Optionally override target feature values to steer recommendations.

ParameterTypeRequiredDescription
seedstring (query, repeatable)requiredISRC of a seed track. 1 to 5 seeds.
limitinteger (query)optionalMax results. Default 10, max 50.
target_bpmnumber (query)optionalOverride target BPM instead of averaging seeds.
target_energynumber (query)optionalOverride target energy (0.0 to 1.0).
target_danceabilitynumber (query)optionalOverride target danceability (0.0 to 1.0).
target_valencenumber (query)optionalOverride target valence (0.0 to 1.0).
bash
curl -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  "https://melodata.voltenworks.com/api/v1/recommendations?seed=USRC17607839&seed=GBAYE0601498&target_energy=0.8&limit=5"
json
{
  "data": {
    "recommendations": [
      {
        "isrc": "GBAYE0601498",
        "title": "Don't Stop Me Now",
        "artist": "Queen",
        "match_score": 0.91,
        "features": { "bpm": 156.2, "energy": 0.84, "danceability": 0.55, "valence": 0.68 }
      },
      {
        "isrc": "USIR10211015",
        "title": "Mr. Brightside",
        "artist": "The Killers",
        "match_score": 0.86,
        "features": { "bpm": 148.1, "energy": 0.78, "danceability": 0.42, "valence": 0.31 }
      }
    ],
    "seed_count": 2
  },
  "meta": { "request_id": "req_a1b2c3d4e5f6", "quota": { "used": 4525, "limit": 25000, "resets_at": "2026-05-01T00:00:00Z" } }
}

Note

match_score ranges from 0 to 1, where 1 is an exact feature match. Scores are based on Euclidean distance across BPM, energy, danceability, and valence.

Batch Get Features

POST/v1/tracks/batch/features

Look up audio features for multiple tracks in one request. Maximum 50 ISRCs per batch. A successful request counts as one API lookup, regardless of how many ISRCs it contains. This differs from saved bulk jobs, which count submitted rows.

Request Body

json
{
  "isrcs": ["USRC17607839", "GBAYE0601498", "XX0000000000"]
}

Response

json
{
  "data": {
    "tracks": [
      {
        "isrc": "USRC17607839",
        "title": "Bohemian Rhapsody",
        "artist": "Queen",
        "features": { "bpm": 143.8, "key": "Bb", "energy": 0.72, "danceability": 0.39, ... }
      },
      {
        "isrc": "GBAYE0601498",
        "title": "Don't Stop Me Now",
        "artist": "Queen",
        "features": { "bpm": 156.2, "key": "F", "energy": 0.84, "danceability": 0.55, ... }
      },
      {
        "isrc": "XX0000000000",
        "status": "analyzing"
      }
    ]
  },
  "meta": { "request_id": "req_b2c3d4e5f6a1", "quota": { "used": 4528, "limit": 25000, "resets_at": "2026-05-01T00:00:00Z" } }
}

Important

Each ISRC in the batch counts as one billed lookup. A batch of 50 ISRCs uses 50 from your quota.

Batch Pre-Analyze

POST/v1/tracks/batch/analyze

Queue ISRCs for analysis without returning features. A successful request counts as one API lookup. This endpoint uses the ordinary lookup allowance, separate from saved bulk jobs.

Request Body

json
{
  "isrcs": ["USRC17607839", "GBAYE0601498"]
}

Response

json
{
  "data": {
    "queued": 3,
    "already_analyzed": 1,
    "already_queued": 1,
    "total": 5
  },
  "meta": { "request_id": "req_c3d4e5f6a1b2" }
}

Tip

Use batch pre-analyze when you have a playlist or catalog of ISRCs. Queue them all ahead of time, then query features individually when your users request them. Later requests can use completed cached results, but some recordings may remain pending or unavailable.

Saved Bulk Jobs

POST/v1/tracks/jobs

Submit titles and artists once, then retrieve matching and audio-feature results as they finish. Work continues when you stop polling. Temporary failures retry automatically, and completed tracks stay saved if processing is interrupted. Requires a direct MeloData API key.

bash
curl -X POST https://melodata.voltenworks.com/api/v1/tracks/jobs \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: my-library-2026-09-07" \
  -d '{"tracks":[{"title":"Blinding Lights","artist":"The Weeknd"}]}'

The 202 response contains a job ID and status_url. Reuse the same Idempotency-Key when retrying a submission after a network error. The same key and inputs return the original job; changed inputs return 409. Keys accept 8-128 letters, numbers, periods, colons, underscores or hyphens.

PlanRows/monthRows/jobActive jobs
Free25101
Dev1,0002503
Pro10,0002503
Scale50,0002503

Note

Bulk allowance is separate from lookup quota. Each submitted row uses one bulk unit, including duplicates and unmatched tracks. Reading results, replaying a submission key, and retrying failed items use no extra units. There are no bulk overage charges.
  • GET /v1/tracks/jobs lists your latest 50 unexpired jobs and monthly allowance.
  • GET /v1/tracks/jobs/{id} returns ordered tracks, total, remaining, counts and expires_at. Poll every 30 seconds while processing.
  • POST /v1/tracks/jobs/{id}/retry retries only failed items after the job finishes. Use a fresh Idempotency-Key for each retry cycle. Repeating that key is safe. At most two cycles per job.

Item statuses are pending, retrying, analyzing, completed, partial, unavailable, not_found, needs_review and failed. A finished job means every row has an outcome, including unsuccessful matches. Weak matches are marked needs_review and are not analyzed automatically. Partial results contain available metadata and features; unavailable means no audio source was found.

Each processing cycle has a 24-hour deadline. Download your results within seven days of submission. Retries preserve completed results and do not extend expiry. Expired jobs return 410. Minimal job metadata and submission keys are retained for 90 days; monthly allowance totals remain until account deletion. Deleting your account removes all bulk records.


Reanalyze Track

POST/v1/tracks/{isrc}/reanalyze

Request re-analysis for a track marked as unavailable. Available on Pro and Scale plans only. After a re-analysis finishes, the same ISRC can be re-analyzed again in 30 days. A re-analysis that fails does not start the 30 days. If you send this request again while a re-analysis of the track is already running, you get the same answer with already_queued: true, and it is not billed.

ParameterTypeRequiredDescription
isrcstring (path)requiredISRC of the unavailable track.

200 Response

json
{
  "data": {
    "isrc": "XX1234567890",
    "status": "queued_for_reanalysis",
    "estimated_seconds": 10
  }
}

Error Responses

StatusCondition
403Free or Dev plan (Pro+ required)
404Track not in database (use GET features first)
409Track already has valid analysis data
429Less than 30 days since the last finished re-analysis of this ISRC

Data Sources & Limitations

Completed feature records include source and analysis_version fields so you can branch on them programmatically.

Two sources of features

source: essentialive analysis

For an uncached ISRC, the worker attempts to find a preview through iTunes or Deezer, decode it with ffmpeg, and analyze it with Essentia (open-source MIR library). Completed results are cached for later requests. Current pipeline version is 1.2.

source: acousticbrainz_archivecached archive

Millions of tracks pre-analyzed by the AcousticBrainz community using Essentia on full-track files (frozen when the project shut down in 2022). Includes valence, acousticness, instrumentalness from trained classifiers that we don't run in the live pipeline. Archive rows carry ab_1.1 (the original sample) or ab_1.2 (the full archive, added October 2026). On ab_1.2 rows, loudness, tempo_confidence and time_signature are null, because the published archive data does not include them. We do not return the archive's key on any archive row: checked against songs with known keys, it was right less often than our own analysis. These fields fill in over time: when you request features for an archive track, we queue an analysis of its audio preview in the background and add key, key_confidence, loudness, time_signature and tempo_confidence where they are still null. Until then the response returns them as null; request the track again later. On an archive row, a key always comes with a key_confidence. A value the archive already has is never changed, and the request is billed the same as any other. Tracks with no preview stay null.

Check accuracy for your recordings

BPM, key, time signature, and rhythmic features describe the available preview. Tempo and key can change within a recording, and detection can be wrong. Check confidence fields when available and test recordings you know before relying on the measurements.

What's an approximation

For source: essentia rows:

  • loudness attempts integrated LUFS over the preview window, with an RMS-derived dB fallback if the LUFS calculation fails. The response does not identify the fallback separately. Neither value establishes full-track loudness; do not use this field as a guaranteed LUFS or compliance measurement.
  • energy is a perceptual proxy mapped from dB loudness into a 0..1 scale. It's monotonic and useful for relative comparison across tracks, but it is not the same as Spotify's trained “energy” classifier.
  • speechiness reflects the preview window: if the preview catches a vocal section vs an instrumental break, the value can drift.

What we don't return (yet)

valence, acousticness, and instrumentalness return null for live-analyzed tracks. We don't run mood/timbre classifiers in the live pipeline; only archive-sourced rows have them. liveness is null for every row, live or archive. It is not computed yet and is planned for a future release.

Note

If preview-window approximations don't fit your use case (audio mastering, compliance loudness reporting), get in touch, full-track analysis is on the roadmap as a paid tier through a licensed analysis partner.

Handling Cache Misses (202 Responses)

When you query a track that hasn't been analyzed yet, the API queues it for analysis and waits up to 5 seconds for the result (set the wait with ?wait=, from 0 to 20 seconds). Most new tracks come back as a 200 on that first request. If the analysis takes longer, or many tracks are already queued, the API returns 202 Accepted instead. The 202 is not billed. The retry interval is not a completion guarantee. Apply a retry limit and handle partial or unavailable results. Three strategies for handling a 202:

Strategy 1: Simple RetryRecommended

Read the Retry-After header and wait. A retry may still return HTTP 202. A later HTTP 200 from the features or metadata endpoint can be complete or partial, which counts toward lookup usage, or unavailable, which does not.

javascript
const API_KEY = process.env.MELODATA_API_KEY;
const BASE = "https://melodata.voltenworks.com/api/v1";

async function getFeatures(isrc) {
  for (let attempt = 0; attempt < 4; attempt++) {
    const res = await fetch(`${BASE}/tracks/${isrc}/features`, {
      headers: { Authorization: `Bearer ${API_KEY}` },
      signal: AbortSignal.timeout(20000),
    });
    if (res.status === 202) {
      if (attempt === 3) throw new Error("Analysis still pending");
      const delay = Number(res.headers.get("Retry-After") ?? 10);
      if (!Number.isFinite(delay) || delay < 0 || delay > 120) {
        throw new Error("Retry later using the Retry-After header");
      }
      await new Promise(resolve => setTimeout(resolve, delay * 1000));
      continue;
    }
    if (!res.ok) throw new Error(`HTTP ${res.status}`);
    return res.json();
  }
}

const result = await getFeatures("USRC17607839");
// A successful response can be partial or unavailable.
console.log(result.data?.features?.bpm ?? null);
console.log(result.data?.features?.key ?? null);

Strategy 2: Webhook NotificationPro & Scale

Register a webhook URL in your dashboard. When analysis completes, we POST the result to your server. No polling required.

json
// POST https://your-app.com/webhooks/melodata
{
  "event": "track.analyzed",
  "data": {
    "isrc": "USRC17607839",
    "features": {
      "bpm": 143.8,
      "tempo_confidence": 0.93,
      "key": "Bb",
      "energy": 0.72,
      "danceability": 0.39,
      "valence": 0.23,
      ...
    }
  }
}

Strategy 3: Batch Pre-AnalyzeAll plans

If you have a list of ISRCs you will need later, submit them through batch analyze. A successful request counts as one API lookup. Later feature requests are billed separately and may still return pending or unavailable results. A single-track features or metadata request that answers pending (202) or unavailable is not billed.

See Batch Analyze for the request format, and use the bounded polling example above when retrieving features.


Migrating from Spotify

If your code calls Spotify's audio features endpoint, it can call MeloData instead. The responses come back in Spotify's shape, so you change three things and keep your parsing code.

MeloData is not affiliated with or endorsed by Spotify. Spotify is a trademark of Spotify AB, named here only to describe compatibility.

WhatSpotifyMeloData
Base URLhttps://api.spotify.comhttps://melodata.voltenworks.com/api/spotify
TokenSpotify access tokenYour MeloData API key, in the same Authorization: Bearer header
Track idsSpotify track idsISRCs

Several Tracks' Audio Features

GET/spotify/v1/audio-features?ids={isrcs}

Up to 100 ISRCs, comma separated. The answer is audio_features with one entry per id, in the order you sent them. A call counts as one lookup, the same as Batch Features, and only when at least one entry has features. The single-track form is /spotify/v1/audio-features/{isrc}, which answers the object on its own.

bash
curl -s -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  "https://melodata.voltenworks.com/api/spotify/v1/audio-features?ids=USRC17607839,GBUM71029604"
json
{
  "audio_features": [
    {
      "acousticness": 0.12,
      "analysis_url": null,
      "danceability": 0.64,
      "duration_ms": 214000,
      "energy": 0.71,
      "id": "USRC17607839",
      "instrumentalness": 0.02,
      "key": 10,
      "liveness": null,
      "loudness": -7.4,
      "mode": 1,
      "speechiness": 0.05,
      "tempo": 143.8,
      "time_signature": 4,
      "track_href": "https://melodata.voltenworks.com/api/v1/tracks/USRC17607839/metadata",
      "type": "audio_features",
      "uri": "melodata:track:USRC17607839",
      "valence": 0.55
    },
    null
  ]
}

Ids are ISRCs

Spotify track ids are not accepted yet. In a list, a Spotify id gets a null entry. On the single-track route it is a 400 that says so. If you start from track names, find the ISRC first with Resolve to ISRC, then ask for its features. That is two calls:

bash
# 1. Name to ISRC
ISRC=$(curl -sG https://melodata.voltenworks.com/api/v1/tracks/resolve \
  -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  --data-urlencode "title=Bohemian Rhapsody" \
  --data-urlencode "artist=Queen" | jq -r .data.isrc)

# 2. ISRC to audio features, in Spotify's shape
curl -s -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  "https://melodata.voltenworks.com/api/spotify/v1/audio-features/$ISRC"

Where the fields differ

  • The values are our own measurements, not copies of Spotify's, so they will not match old Spotify numbers exactly. energy is based on loudness, liveness is always null today, and valence, acousticness and instrumentalness are null for tracks we analyzed ourselves. See Data Sources & Limitations.
  • id is the ISRC.
  • key is a pitch class from 0 (C) to 11 (B), or -1 when we have no key. When the key is -1, mode is null rather than a guess.
  • uri is melodata:track:{ISRC}. track_href points to the track's MeloData metadata. analysis_url is always null: there is no audio analysis endpoint.
  • Any feature we do not have for a track is null, never a made-up number. tempo is null when we have no reliable tempo.
  • MeloData's extra fields, such as tempo_confidence, are not in this shape. Use Get Track Features for them.

Tracks we have not analyzed yet

A track we have not analyzed yet is a null entry, and we queue it for analysis. The response names every queued ISRC in the X-MeloData-Pending header, with a Retry-After. Ask again after that and the entry will usually have its features.

  • If every id in a list is waiting on analysis, the answer is a 202 with all entries null, and it is not billed.
  • If no entry has features and nothing is waiting (for example, only Spotify ids), the answer is a 200 and it is not billed.
  • On the single-track route, a track we have not analyzed yet is queued and the request waits up to 5 seconds for it (?wait= sets 0 to 20 seconds, as on Get Track Features). A track still waiting after that is a 202 with a body of null.
  • A track with no audio we can analyze is null in a list and a 404 on the single-track route. It is not queued.

Note

Errors come back as {"error": {"status": 401, "message": "Invalid API key"}}, the same shape Spotify uses, so your existing error handling keeps working. A bad or missing key is a 401, and rate or quota limits are a 429.

Code Examples

JavaScript / Node.js

javascript
const API_KEY = process.env.MELODATA_API_KEY;
const BASE = "https://melodata.voltenworks.com/api/v1";

async function getFeatures(isrc) {
  for (let attempt = 0; attempt < 4; attempt++) {
    const res = await fetch(`${BASE}/tracks/${isrc}/features`, {
      headers: { Authorization: `Bearer ${API_KEY}` },
      signal: AbortSignal.timeout(20000),
    });
    if (res.status === 202) {
      if (attempt === 3) throw new Error("Analysis still pending");
      const delay = Number(res.headers.get("Retry-After") ?? 10);
      if (!Number.isFinite(delay) || delay < 0 || delay > 120) {
        throw new Error("Retry later using the Retry-After header");
      }
      await new Promise(resolve => setTimeout(resolve, delay * 1000));
      continue;
    }
    if (!res.ok) throw new Error(`HTTP ${res.status}`);
    return res.json();
  }
}

const result = await getFeatures("USRC17607839");
// A successful response can be partial or unavailable.
console.log(result.data?.features?.bpm ?? null);
console.log(result.data?.features?.key ?? null);

Python

python
import os, time, requests

BASE = "https://melodata.voltenworks.com/api/v1"
headers = {"Authorization": f"Bearer {os.environ['MELODATA_API_KEY']}"}

def get_features(isrc):
    for attempt in range(4):
        res = requests.get(
            f"{BASE}/tracks/{isrc}/features",
            headers=headers, timeout=20,
        )
        if res.status_code == 202:
            if attempt == 3:
                raise RuntimeError("Analysis still pending")
            delay = float(res.headers.get("Retry-After", 10))
            if not 0 <= delay <= 120:
                raise RuntimeError("Retry later using Retry-After")
            time.sleep(delay)
            continue
        res.raise_for_status()
        return res.json()

result = get_features("USRC17607839")
# A successful response can be partial or unavailable.
features = (result.get("data") or {}).get("features") or {}
print(features.get("bpm"))
print(features.get("key"))

curl

bash
# Get features for a single track
curl -s -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  https://melodata.voltenworks.com/api/v1/tracks/USRC17607839/features | jq .

# Search for tracks
curl -s -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  "https://melodata.voltenworks.com/api/v1/tracks/search?q=bohemian+rhapsody&limit=5" | jq .

# Batch feature lookup
curl -s -X POST \
  -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"isrcs":["USRC17607839","GBAYE0601498"]}' \
  https://melodata.voltenworks.com/api/v1/tracks/batch/features | jq .

# Get recommendations from seed tracks
curl -s -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  "https://melodata.voltenworks.com/api/v1/recommendations?seed=USRC17607839&seed=GBAYE0601498&limit=10" | jq .

# Request batch analysis (a successful request counts as one lookup)
curl -s -X POST \
  -H "Authorization: Bearer melo_sk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"isrcs":["USRC17607839","GBAYE0601498"]}' \
  https://melodata.voltenworks.com/api/v1/tracks/batch/analyze | jq .

SDKs & Libraries

Official SDKs for JavaScript, Python, and Ruby are in development. For now, the API is straightforward to call with any HTTP client. The patterns above work with fetch, requests, curl, or any library that speaks HTTP.

SDKStatusInstall
JavaScript / TypeScriptComing soonNot published
PythonComing soonNot published
RubyPlannedNot published

Note

Want early access to an SDK? Let us know which language you need and we will prioritize accordingly.

AI Agent Skill

Building with an AI coding agent (Claude Code, Cursor, etc.)? Copy the MeloData agent skill to give your AI full API context, including endpoints, auth patterns, 202 retry handling, and integration examples.

melodata-api skill

SKILL.md + reference files for Claude Code, Cursor, Windsurf, and other AI agents. Includes all endpoints, auth, billing rules, 202 handling, and integration patterns.

Get Skill

Errors Reference

All error responses use the standard error envelope. Below is every error code the API can return.

StatusMeaningCommon Causes
400Bad RequestInvalid ISRC, missing required parameter, malformed JSON body, batch size exceeds 50
401UnauthorizedMissing Authorization header, invalid API key, revoked key, wrong key format
403ForbiddenEndpoint requires a higher plan (e.g. reanalyze requires Pro+)
404Not FoundTrack not in database. Use GET features to trigger analysis first.
409ConflictTrack already has valid analysis (reanalyze endpoint only)
429Too Many RequestsRate limit exceeded: check the X-RateLimit-Reset header. Monthly quota exhausted: check X-Quota-Reset or error.resets_at.
500Internal Server ErrorUnexpected server failure. Not billed. Include X-Request-Id in support requests.
503Service UnavailableA dependency we rely on is degraded, so we could not safely serve the request. This is our problem, not yours, and it is never billed. Wait the number of seconds in the Retry-After header, then retry.

Example Error Response

json
// 401 Unauthorized
{
  "error": {
    "message": "Missing or invalid Authorization header",
    "status": 401
  },
  "meta": {
    "request_id": "req_f6a1b2c3d4e5"
  }
}

// 429 Rate Limited
{
  "error": {
    "message": "Rate limit exceeded",
    "status": 429
  },
  "meta": {
    "request_id": "req_a1b2c3d4e5f6"
  }
}
// Headers: X-RateLimit-Reset: 1711234567000 (unix milliseconds)

// 429 Quota Exceeded
{
  "error": {
    "message": "Monthly quota exceeded: you've used this month's 1,000 free lookups. They reset on December 1 (UTC). Upgrade to Dev ($19/mo, 25,000 lookups) to keep going: https://melodata.voltenworks.com/dashboard/billing?plan=dev&from=quota_429",
    "status": 429,
    "code": "quota_exhausted",
    "upgrade_url": "https://melodata.voltenworks.com/dashboard/billing?plan=dev&from=quota_429",
    "resets_at": "2026-12-01T00:00:00.000Z"
  },
  "meta": {
    "request_id": "req_b2c3d4e5f6a1"
  }
}
// Headers: X-Quota-Used: 1000, X-Quota-Limit: 1000, X-Quota-Reset: 1796083200 (unix seconds)
// upgrade_url is null on Scale, which has no plan above it.
// resets_at and X-Quota-Reset say when the monthly count starts again (midnight UTC on the 1st).

Changelog

v1.12.02026-12-03CURRENT

Top-up packs, faster name lookups that find artists who style their names with symbols, and a busy moment no longer slows other requests down.

  • Added: top-up packs. 10,000 extra lookups for $9, paid once. They never expire and are used only after your monthly lookups run out, so you can finish a project without changing plans. Buy one from the billing page. When you reach the monthly limit, the 429 now includes topup_url and an options list with the top-up and the next plan, and from 80% of your allowance every response carries X-Quota-Topup-Url.
  • Better: name lookups are faster. The catalog search behind GET /v1/tracks/resolve now answers in under half a second for common words. Some took several seconds before.
  • Fixed: one slow search could hold up other requests. While a slow catalog search was running, other requests could wait up to 10 seconds for our database. That no longer happens.
  • Better: artist names written with symbols. "Pink" now finds P!nk and "Kesha" finds Ke$ha, at full confidence. It works the other way round too.
  • Better: titles that end in a library tag. A title sent with a trailing "Bnb" tag, such as Für Immer Ab Jetzt_Bnb, is looked up again without the tag when the first try finds nothing.
  • Changed: earlier misses are looked up fresh. Name lookups that found nothing before this release are not answered from our cache. The next request searches again.
v1.11.02026-11-18

Tracks we could not find audio for get another look and a second place to look, and the monthly limit answer says when your lookups reset.

  • Better: an "unavailable" track is tried again. A track we found no audio for used to stay unavailable. Now, when you ask for it again, we look again in the background: a day after the first try, then a week, then a month. Your request still answers right away, and an unavailable answer is still not billed. When audio turns up, the next request returns the features.
  • Added: a second catalog searched by ISRC. When our first source has no audio for an ISRC, we now look the same ISRC up in a second catalog before searching by name.
  • Better: a search by name must be the same recording. When we look for a track by the title and artist we hold, we accept a result only if the title, the artist and the version agree, and the length does too when we know it. A live cut, a remix or a re-recording is not used for the plain title.
  • Fixed: a slow or busy source no longer marks a track unavailable. If a source times out or asks us to slow down while we look, the track is tried again after two minutes and then ten. It used to be stored as unavailable.
  • Changed: a repeat re-analysis request is not billed. If you send POST /v1/tracks/{isrc}/reanalyze while a re-analysis of that track is already running, you get the same queued answer with already_queued: true and it is not billed. It used to answer 404. A track under re-analysis keeps its title and artist.
  • Added: the reset date on a monthly limit answer. When you have used the month's lookups, the 429 now says the day they reset, in the message and as error.resets_at. Every response made with a MeloData API key also carries X-Quota-Reset, the same moment in unix seconds, so a client can wait for it without parsing text.
  • Docs: the two reset headers use different units. X-Quota-Reset is unix seconds. X-RateLimit-Reset is unix milliseconds, as it always has been. The errors section now states both and points a monthly limit answer at the right one.
  • Changed: our contact address is contact@voltenworks.com. It replaces the support address in error messages, emails and the terms page.
  • Added: matched_title on features and metadata. Some ISRCs are a specific version of a song, such as a live cut, a DJ-mix cut or a radio edit. When that is the case and our stored title does not say so, the response now carries the fuller title: title "Bruises" comes with matched_title "Bruises (Live)". The field is left out for every other track. Batch features carries it too.
v1.10.02026-11-17

New tracks answer on the first request, tracks we cannot analyze no longer count against your quota, and name lookup gets more songs right.

  • Faster: a track we have not analyzed yet now answers on the first request. The API holds your request for up to 5 seconds while the track is analyzed, then returns it as a normal 200. More than half of new tracks finish in that time. If one takes longer, you get the same 202 as before, with Retry-After: 10. Add ?wait=0 to get the 202 straight away, or ?wait=20 to wait longer. This works on features, metadata and the Spotify-compatible audio features route. A 202 is still not billed.
  • Changed: an "unavailable" answer is no longer billed. When we cannot find audio for a track, features and metadata answer with status "unavailable" and the request does not count against your quota. Metadata used to return empty fields for these tracks. It now says unavailable and includes whatever we do hold, such as the title, artist and album. This applies to requests made with a MeloData API key.
  • Better: name lookup finds a song when you send every credited artist. "NO LÈCHE" by "Gazo, Favé, Kerchak & Leto" now returns the track our sources list under Gazo alone. We only do this when the track's own credits name the other artists you sent.
  • Fixed: a live recording returned in place of the studio one. When a song sits on a live album and you asked for the plain title, a studio recording now wins if we have one. "California Love" by 2Pac returns the studio recording. If the live recording is all we found, it comes back as a weak match with a warning. Ask for "Song (Live)" to get the live one.
  • Fixed: titles and artists that arrive with broken encoding. A name like "Beyoncé", or Japanese text that turned into symbols on the way to us, is read as intended before we search.
v1.9.12026-11-08

Name lookup finds more songs, and new tracks are ready to collect sooner.

  • Better: name lookup finds songs that are in our sources but missing from their search. When a lookup by title and artist comes up empty, we now also check the artist's own releases. For example, "In The Dark" by Purple Disco Machine now returns its ISRC. When a release comes in several mixes, you get the mix you asked for.
  • Faster: a 202 now says Retry-After: 10 and estimated_seconds: 10, down from 30. Most new tracks finish analyzing in a few seconds, so following the header gets you the result sooner.
v1.9.02026-10-22

Code written for Spotify's audio features endpoint can now call MeloData, and you can check our uptime any time.

  • New: audio features in Spotify's format. /api/spotify/v1/audio-features answers the same object Spotify did, for up to 100 tracks per call. Change the base URL, use your MeloData key, and send ISRCs instead of Spotify ids. See Migrating from Spotify.
  • A call counts as one lookup, and only when at least one track in it has features. Tracks we have not analyzed yet come back as null, are queued, and are named in the X-MeloData-Pending header.
  • New: a public status page. melodata.voltenworks.com/status shows whether the API, track catalog, cache and analysis worker are up right now, plus daily uptime and response times. We check every 5 minutes from a separate server outside our hosting provider. The same check is public at /api/health.
v1.8.02026-10-13

Faster first answers, better name matching, and corrected tempos on about 1,400 tracks.

  • Fixed: about 1,400 tracks reported double their real tempo. Their bpm is now the correct value (for example 178.2 is now 89.1), and each now carries a tempo_confidence. Nothing else on those tracks changed.
  • Faster: a new track starts analyzing right away. After a quiet spell, a 202 used to wait up to 30 seconds before analysis began. It now starts within a second or two.
  • Better: track search finds more songs. Searching by name now handles a title written as "Artist - Title", featured-artist credits ("feat.", "ft."), full-width characters and Cyrillic artist names. When we take the artist from inside the title, confidence is capped at 0.85.
  • Fixed: re-analyzing a track that was already queued returned a 500. It now returns 200 and keeps the one queued job.
v1.7.02026-10-02

Every feature response now says how likely its BPM is to be right.

  • Added: tempo_confidence. A number from 0 to 1 next to bpm in feature responses, batch results and the track.analyzed webhook. It is the chance that bpm is within 4% of the true tempo, not half or double. We measured it against songs with known tempos, so a value of 0.9 means about 9 in 10 such BPMs are right. Use it to skip or double-check low-confidence tempos.
  • It can be null. tempo_confidence is null when there is nothing to measure it from: the track has no audio preview, or a fresh analysis heard a different tempo than the stored bpm. Archive tracks get one once their preview is analyzed.
v1.6.02026-10-01

About 1.77 million more tracks answer straight away, from the full AcousticBrainz archive.

  • Added: the full AcousticBrainz archive, about 1.77 million tracks. The catalog grows from about 87,000 tracks to about 1.85 million. Features for these ISRCs now come back right away instead of a 202 and a wait. They carry source: "acousticbrainz_archive" and analysis_version: "ab_1.2".
  • Some fields are null on archive rows. On ab_1.2 rows, loudness, tempo_confidence and time_signature are null, because the published archive data does not include them. BPM, energy, danceability, valence and the other archive features are included on nearly every row.
  • Changed: archive rows no longer return the archive's key. Checked against public sets of songs with known keys, the archive key was exactly right on 42% of them and our own analysis on 61%. So key and key_confidence on every archive row (ab_1.1 and ab_1.2) now come from our own analysis of the audio preview. The first request for one of these tracks returns key: null and queues that analysis; a later request returns the key with its key_confidence. On an archive row, a key always comes with a confidence. Tracks with no preview keep key: null. Billing is the same.
  • Filling in over time: loudness, time_signature and tempo_confidence on archive rows. When you request features for an ab_1.2 track, we analyze its audio preview in the background and add those three where they are null, along with the key. Archive values never change, the response is not slowed down, and billing is the same. Tracks with no preview stay null.
  • Filled: missing names and IDs on existing tracks. Tracks that were missing an artist ID, a MusicBrainz recording ID, a title or an artist name have them filled in where the archive has them. Features we analyzed ourselves did not change.
  • Fixed: bpm is never 0. About 130 archive tracks returned bpm: 0, which is not a tempo. They now return bpm: null, the same as any track where no tempo was detected.
  • Corrected: the docs example showed a liveness value. liveness is null on every row. It is not computed yet. Responses did not change.
v1.5.12026-09-30

A quota refusal now links to the plan that gets you going again.

  • Added: code and upgrade_url on the monthly quota 429. The error now carries code: "quota_exhausted", so you can tell it apart from a rate limit 429, and upgrade_url, a link to the billing page with the next plan selected (null on Scale). The message names that plan, its price and its monthly lookups. The status code, headers and existing fields are unchanged, and the message still starts with "Monthly quota exceeded".
v1.5.02026-09-29

A track we do not have yet is queued instead of reported missing, and name lookups return the mix you asked for more often.

Tracks we have not analyzed yet

  • Changed: metadata for a new track returns 202, not 404. GET /v1/tracks/{isrc}/metadata now queues a track we have not analyzed yet and answers 202 with a Retry-After header, the same as the features endpoint. Ask again after the wait and the metadata is there. A 202 is not billed.
  • Changed: batch features queues what it does not have. An ISRC in POST /v1/tracks/batch/features that we have not analyzed yet now comes back as analyzing and is queued, instead of not_found with nothing queued. Send the same batch again later to collect it.

Name lookups

  • Fixed: a lookup returning the wrong mix. When the exact mix or version you asked for was not available, a name lookup could return whichever version the provider listed first, such as another producer's remix or a cut from a DJ mix, even when the original or your mix at a different length was in the same results. It now returns the closest version: your mix at another length first, then the original. A different version is still reported as a weak match with a warning.
  • "(Original Mix)" now matches the plain title. Most streaming catalogs list a track's original mix with no version name, so a lookup for Offshore (Original Mix) now returns Offshore as an exact match instead of a weak one, and the other way round. An original extended mix still counts as the extended mix.
  • Part numbers and possessives. Part I now matches Part 1, and a mix name written with a possessive, such as PvD's E-Werk Club Mix, matches the same name without it.
  • Cached lookups use the new matching. Lookup results cached before this release are no longer reused, so repeating a lookup uses the new matching rules instead of the previous result.

MeloData API by Voltenworks