Skip to content
GET /v1/scale

Modular type scale

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

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "note": "Modular scale value = base · ratio^step. Used for typographic and spacing scales; common ratios include major-third (1.25), perfect-fourth (1.333) and golden (φ≈1.618).",
        "steps": [
            {
                "step": -2,
                "value": 10.24
            },
            {
                "step": -1,
                "value": 12.8
            },
            {
                "step": 0,
                "value": 16
            },
            {
                "step": 1,
                "value": 20
            },
            {
                "step": 2,
                "value": 25
            },
            {
                "step": 3,
                "value": 31.25
            },
            {
                "step": 4,
                "value": 39.0625
            },
            {
                "step": 5,
                "value": 48.828125
            }
        ],
        "inputs": {
            "base": 16,
            "ratio": 1.25,
            "ratio_name": "major-third"
        }
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:18.952Z",
        "request_id": "f401e94e-5850-4e68-84ba-8ea1fac7c8fd"
    },
    "status": "ok",
    "message": "Modular scale",
    "success": true
}