Skip to content
GET /v1/pressure

Pressure at depth

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/hydrostatic-api

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

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "Gauge pressure = ρ·g·h. Absolute = gauge + atmospheric (101325 Pa default). For diving, ~10 m of seawater adds about 1 atm.",
        "fluid": "water",
        "depth_m": 10,
        "density_kg_m3": 1000,
        "gauge_pressure": {
            "pa": 98066.5,
            "atm": 0.96784,
            "bar": 0.98067,
            "kpa": 98.0665,
            "psi": 14.2233
        },
        "head_m_of_fluid": 10,
        "absolute_pressure": {
            "pa": 199391.5,
            "atm": 1.96784,
            "bar": 1.99392,
            "kpa": 199.3915,
            "psi": 28.9193
        }
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:04.732Z",
        "request_id": "012a046c-15b0-44e0-88d4-5083fbd070b9"
    },
    "status": "ok",
    "message": "Pressure at depth",
    "success": true
}