Skip to content
GET /v1/scale

Scale notes from root + type

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/musicnote-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/musicnote-api/v1/scale" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/musicnote-api/v1/scale", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/musicnote-api/v1/scale");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/musicnote-api/v1/scale",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "root": "C4",
        "notes": [
            {
                "midi": 60,
                "note": "C4",
                "enharmonic": null,
                "frequency_hz": 261.6256
            },
            {
                "midi": 62,
                "note": "D4",
                "enharmonic": null,
                "frequency_hz": 293.6648
            },
            {
                "midi": 64,
                "note": "E4",
                "enharmonic": null,
                "frequency_hz": 329.6276
            },
            {
                "midi": 65,
                "note": "F4",
                "enharmonic": null,
                "frequency_hz": 349.2282
            },
            {
                "midi": 67,
                "note": "G4",
                "enharmonic": null,
                "frequency_hz": 391.9954
            },
            {
                "midi": 69,
                "note": "A4",
                "enharmonic": null,
                "frequency_hz": 440
            },
            {
                "midi": 71,
                "note": "B4",
                "enharmonic": null,
                "frequency_hz": 493.8833
            },
            {
                "midi": 72,
                "note": "C5",
                "enharmonic": null,
                "frequency_hz": 523.2511
            }
        ],
        "scale": "major",
        "intervals": [
            0,
            2,
            4,
            5,
            7,
            9,
            11
        ]
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:12.147Z",
        "request_id": "3e8ab023-933d-44dc-913d-728ab490da28"
    },
    "status": "ok",
    "message": "Scale",
    "success": true
}