Skip to content
GET /v1/capacity

Cigar capacity from interior volume

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/humidor-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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
}