Vai al contenuto
GET /v1/flat-length

Blank length from flanges

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/sheetmetal-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/sheetmetal-api/v1/flat-length" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sheetmetal-api/v1/flat-length", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sheetmetal-api/v1/flat-length");
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/sheetmetal-api/v1/flat-length",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Blank length = sum of outside (mold-line) flange lengths − (number of bends × bend deduction).",
        "bends": 2,
        "flanges": [
            50,
            30,
            40
        ],
        "k_factor": 0.44,
        "thickness": 2,
        "blank_length": 112.18938,
        "inside_radius": 3,
        "bend_angle_deg": 90,
        "bend_deduction_each": 3.90531,
        "outside_total_length": 120
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:05.024Z",
        "request_id": "f2893a7e-80e2-4cd1-a466-f409203bb361"
    },
    "status": "ok",
    "message": "Blank length from flanges",
    "success": true
}