Skip to content
GET /v1/gas

Gas planning / SAC

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/scuba-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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
}