/v1/volume
Stack volume to cords
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}