Skip to content
GET /v1/spacing

Section spacing layout

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

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

Get an API key

Code snippets

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

Example response

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

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