/v1/spacing
Section spacing layout
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/rebar-api/v1/spacing" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rebar-api/v1/spacing", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rebar-api/v1/spacing");
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/rebar-api/v1/spacing",
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": "Outer bars sit at cover + ½d from each face; n = floor((width − 2·cover − d)/spacing) + 1.",
"inputs": {
"count": null,
"cover": 25,
"width": 1000,
"spacing": 150,
"diameter": 12
},
"spacing_mm": 150,
"number_of_bars": 7,
"total_area_mm2": 791.6813,
"area_per_metre_mm2_m": 791.6813
},
"meta": {
"timestamp": "2026-06-04T18:38:25.181Z",
"request_id": "1a8a6a1c-462a-409a-8365-df88acba3faa"
},
"status": "ok",
"message": "Section spacing",
"success": true
}