Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/plumbing-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "notes": "Based on IPC Tables 709.1 / 710.1(1) and the Hunter demand curve. Slopes 0.125/0.25/0.5 in/ft. Estimates — verify against the code adopted in your jurisdiction; water closets need a 3-inch minimum drain.",
        "service": "plumbing-api",
        "endpoints": {
            "GET /v1/dfu": "Total drainage fixture units from a fixture list (type:count,...).",
            "GET /v1/meta": "This document.",
            "GET /v1/pipe-size": "Minimum building-drain size for a DFU load at a slope.",
            "GET /v1/supply-gpm": "Water-supply demand (GPM) from supply fixture units (Hunter curve)."
        },
        "description": "Plumbing-code maths: drainage fixture units for a fixture set, minimum building-drain size at a slope, and water-supply demand (GPM) from the Hunter curve."
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:43.672Z",
        "request_id": "5c7e6bc8-b8d5-4b58-a240-90d23c605304"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}