/v1/gas
Gas planning / SAC
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/scuba-api/v1/gas" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/scuba-api/v1/gas", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/scuba-api/v1/gas");
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/scuba-api/v1/gas",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Consumption at depth = SAC·(1+depth/10). Gas required = that × time. Duration = available gas ÷ consumption at depth. SAC can be derived from a logged dive.",
"inputs": {
"depth": 20,
"time_min": 30,
"cylinder_liters": 12
},
"derived_sac": false,
"duration_min": 40,
"sac_liters_per_min": 20,
"gas_required_liters": 1800,
"ambient_pressure_ata": 3,
"available_gas_liters": 2400,
"consumption_liters_per_min_at_depth": 60
},
"meta": {
"timestamp": "2026-06-05T21:48:49.639Z",
"request_id": "474ab975-86f7-48d9-a044-0788ce37fdb6"
},
"status": "ok",
"message": "Gas planning",
"success": true
}