/v1/boards
Stock needed for a quantity
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/kerf-api/v1/boards" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/kerf-api/v1/boards", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/kerf-api/v1/boards");
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/kerf-api/v1/boards",
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": "Stock needed = ⌈quantity / pieces-per-stock⌉. Leftover pieces are spare cuts on the last stock length.",
"inputs": {
"kerf": 3,
"quantity": 20,
"piece_length": 300,
"stock_length": 2400
},
"stock_needed": 3,
"leftover_pieces": 1,
"total_kerf_loss": 54,
"pieces_per_stock": 7
},
"meta": {
"timestamp": "2026-06-05T19:50:19.200Z",
"request_id": "16c36576-4ef7-4b06-8ea6-bcb12d79b530"
},
"status": "ok",
"message": "Stock needed",
"success": true
}