/v1/scale
Generate a modular 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/modularscale-api/v1/scale" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/modularscale-api/v1/scale", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/modularscale-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/modularscale-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": {
"up": 6,
"base": 16,
"down": 2,
"unit": "px",
"count": 9,
"ratio": "major-third",
"steps": [
{
"step": -2,
"value": 10.24,
"formatted": "10.24px"
},
{
"step": -1,
"value": 12.8,
"formatted": "12.8px"
},
{
"step": 0,
"value": 16,
"formatted": "16px"
},
{
"step": 1,
"value": 20,
"formatted": "20px"
},
{
"step": 2,
"value": 25,
"formatted": "25px"
},
{
"step": 3,
"value": 31.25,
"formatted": "31.25px"
},
{
"step": 4,
"value": 39.0625,
"formatted": "39.0625px"
},
{
"step": 5,
"value": 48.8281,
"formatted": "48.8281px"
},
{
"step": 6,
"value": 61.0352,
"formatted": "61.0352px"
}
],
"ratio_value": 1.25
},
"meta": {
"timestamp": "2026-06-03T09:25:05.302Z",
"request_id": "819243ca-56c2-4819-aa35-ab0c96247a9a"
},
"status": "ok",
"message": "Generate a modular scale",
"success": true
}