Zum Inhalt springen
GET /v1/volume

Pond water volume

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/pond-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Volume = length × width × average depth × a shape factor (rectangular 1.0, oval/round 0.79, irregular 0.85), then 7.48 gallons per cubic foot. Use the AVERAGE depth, not the deepest point. A liner pond rarely holds the full box.",
        "inputs": {
            "shape": "rectangular",
            "width_ft": 6,
            "length_ft": 8,
            "avg_depth_ft": 2
        },
        "liters": 2718,
        "gallons": 718,
        "cubic_feet": 96,
        "shape_factor": 1
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:48.458Z",
        "request_id": "e78100a7-b663-43b1-80b2-0831f6274532"
    },
    "status": "ok",
    "message": "Pond volume",
    "success": true
}