Aller au contenu
GET /v1/volume

Stack volume to cords

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/firewood-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/firewood-api/v1/volume" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/firewood-api/v1/volume", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/firewood-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/firewood-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": "1 cord = 128 ft³ (4×4×8 ft). A face cord is 8×4 ft by the piece length (default 16 in). 1 stere = 1 m³.",
        "input": {
            "unit": "ft",
            "depth": 4,
            "height": 4,
            "length": 8,
            "piece_length_ft": 1.3333
        },
        "volume": {
            "cords": 1,
            "steres": 3.6246,
            "cubic_feet": 128,
            "face_cords": 3,
            "cubic_metres": 3.6246
        }
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:19.103Z",
        "request_id": "d6c6fb3a-91b2-49bb-b368-261936266b53"
    },
    "status": "ok",
    "message": "Stack volume",
    "success": true
}