Vai al contenuto
GET /v1/capacity

Cigar capacity from interior volume

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/humidor-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/humidor-api/v1/capacity" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/humidor-api/v1/capacity", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/humidor-api/v1/capacity");
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/humidor-api/v1/capacity",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Capacity ≈ interior volume × packing efficiency ÷ one cigar's volume, where a cigar is a cylinder of its ring gauge (in 64ths of an inch) and length. Round cigars leave gaps, so ~0.62 packing is realistic — and leave room for a humidification device and air flow. Boxes and cellophane take more space again.",
        "inputs": {
            "ring_gauge": 50,
            "cigar_length_in": 6,
            "interior_width_in": 7,
            "interior_height_in": 3,
            "interior_length_in": 9
        },
        "capacity_cigars": 40,
        "interior_cubic_in": 189,
        "per_cigar_cubic_in": 2.876
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:44.900Z",
        "request_id": "539cda05-e12c-45f7-ac77-a6c9e9da2479"
    },
    "status": "ok",
    "message": "Capacity",
    "success": true
}