/v1/boards
Decking boards
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/deck-api/v1/boards" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/deck-api/v1/boards", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/deck-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/deck-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": "Rows = deck width ÷ (board width + gap), rounded up. Boards run the length; each row needs ⌈length ÷ stock board length⌉ boards. A 5/4×6 board is about 5.5\" wide; 1/8\" gaps are typical. Waste covers cuts and culls.",
"rows": 26,
"inputs": {
"gap_in": 0.125,
"width_ft": 12,
"length_ft": 16,
"waste_percent": 10,
"board_width_in": 5.5,
"board_length_ft": 16
},
"linear_feet": 416,
"boards_per_row": 1,
"deck_area_sqft": 192,
"boards_no_waste": 26,
"boards_with_waste": 29
},
"meta": {
"timestamp": "2026-06-06T07:14:05.722Z",
"request_id": "aaaaa53d-68d9-41af-8e47-6d87c5d9c9e5"
},
"status": "ok",
"message": "Decking boards",
"success": true
}