Zum Inhalt springen
GET /v1/volume

Stack volume to cords

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/firewood-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}