Μετάβαση στο περιεχόμενο
GET /v1/pipe-size

Minimum building-drain size

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/plumbing-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

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