/v1/scale
Modular type scale
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}