Vai al contenuto
GET /v1/pipe-size

Minimum building-drain size

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "note": "Minimum building-drain/sewer size = the smallest pipe whose DFU capacity (IPC Table 710.1(1), at this slope) meets the load. Note: any drain carrying a water closet must be at least 3 inches regardless of DFU. Steeper slope carries more; never undersize, and keep a clean-out at the base of every stack.",
        "inputs": {
            "total_dfu": 50,
            "slope_in_per_ft": 0.25
        },
        "capacity_dfu": 216,
        "min_drain_size_in": 4
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:43.504Z",
        "request_id": "1b16d98e-83e8-4ef7-895e-fe50c81ebd31"
    },
    "status": "ok",
    "message": "Pipe size",
    "success": true
}