Aller au contenu
GET /v1/scale

Modular type scale

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/goldenratio-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}