/v1/flat-length
Blank length from flanges
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}