Aller au contenu
GET /v1/volume

Cubic volume (Smalian/Huber)

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/logscale-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/logscale-api/v1/volume" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/logscale-api/v1/volume", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/logscale-api/v1/volume");
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/logscale-api/v1/volume",
    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": "Smalian's = (large-end area + small-end area) ÷ 2 × length. Huber's = mid area × length (usually the most accurate). Areas use diameter inside bark. 128 ft³ = 1 stacked cord.",
        "inputs": {
            "length_ft": 16,
            "small_diameter_in": 18
        },
        "huber_cuft": 34.907,
        "huber_cords": 0.273,
        "smalian_cuft": 35.256,
        "smalian_cords": 0.275,
        "mid_diameter_in": 20,
        "large_diameter_in": 22
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:03.501Z",
        "request_id": "6331830d-b008-44ff-8183-5fa735fd0c4e"
    },
    "status": "ok",
    "message": "Log volume",
    "success": true
}