Skip to content
GET /v1/ratios

List named ratios

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/modularscale-api

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

Get an API key

Code snippets

curl "https://api.oanor.com/modularscale-api/v1/ratios" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/modularscale-api/v1/ratios", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/modularscale-api/v1/ratios");
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/modularscale-api/v1/ratios",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

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

{
    "data": {
        "count": 17,
        "usage": "Pass ?ratio=<name|number|a:b>&base=<n>&up=<n>&down=<n> to /v1/scale.",
        "ratios": [
            {
                "name": "minor-second",
                "value": 1.06667
            },
            {
                "name": "major-second",
                "value": 1.125
            },
            {
                "name": "minor-third",
                "value": 1.2
            },
            {
                "name": "major-third",
                "value": 1.25
            },
            {
                "name": "perfect-fourth",
                "value": 1.33333
            },
            {
                "name": "augmented-fourth",
                "value": 1.41421
            },
            {
                "name": "perfect-fifth",
                "value": 1.5
            },
            {
                "name": "minor-sixth",
                "value": 1.6
            },
            {
                "name": "golden",
                "value": 1.61803
            },
            {
                "name": "major-sixth",
                "value": 1.66667
            },
            {
                "name": "minor-seventh",
                "value": 1.77778
            },
            {
                "name": "major-seventh",
                "value": 1.875
            },
            {
                "name": "octave",
                "value": 2
            },
            {
                "name": "major-tenth",
                "value": 2.5
            },
            {
                "name": "major-eleventh",
                "value": 2.66667
            },
            {
                "name": "major-twelfth",
                "value": 3
            },
            {
                "name": "double-octave",
                "value": 4
            }
        ],
        "aliases": [
            {
                "alias": "phi",
                "ratio": "golden"
            },
            {
                "alias": "golden-ratio",
                "ratio": "golden"
            },
            {
                "alias": "tritone",
                "ratio": "augmented-fourth"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:05.200Z",
        "request_id": "18c8f906-f7c5-444e-ae57-7fad8c602a5e"
    },
    "status": "ok",
    "message": "List named ratios",
    "success": true
}