/v1/volume
Pond water volume
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}