Catalog/eng-hydrostatic-pressure

Engineering

Hydrostatic pressure at depth API

Computes gauge pressure P=ρ·g·h at a fluid depth, the absolute pressure with atmosphere added, and the total force on a submerged flat area. Answers 'What is the water pressure at a given depth?', 'What is the absolute pressure underwater?'.

Price$0.02per request
MethodPOST
Route/v1/engineering/hydrostatic-pressure
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
engineeringmechanicsphysicshydrostatic-pressurefluiddepthgauge-pressurehydraulics
API URLhttps://x402.hexl.dev/v1/engineering/hydrostatic-pressure
Integration docs
Example request
{
  "depthM": 10,
  "fluidDensityKgM3": 1000,
  "areaM2": 2
}
Example response
{
  "depthM": 10,
  "fluidDensityKgM3": 1000,
  "gravityMs2": 9.80665,
  "atmosphericPa": 101325,
  "gaugePressurePa": 98066.5,
  "gaugePressureKPa": 98.0665,
  "absolutePressurePa": 199391.5,
  "absolutePressureKPa": 199.3915,
  "gaugePressureBar": 0.980665,
  "formula": "P_gauge = ρ*g*h; P_abs = P_gauge + P_atm",
  "areaM2": 2,
  "forceOnAreaN": 196133
}
Input schema
{
  "type": "object",
  "required": [
    "depthM",
    "fluidDensityKgM3"
  ],
  "properties": {
    "depthM": {
      "type": "number",
      "description": "depth below surface (m)",
      "examples": [
        10
      ]
    },
    "fluidDensityKgM3": {
      "type": "number",
      "description": "fluid density ρ (kg/m^3)"
    },
    "gravity": {
      "type": "number",
      "description": "gravity (m/s^2), default 9.80665"
    },
    "atmosphericPa": {
      "type": "number",
      "description": "atmospheric pressure (Pa), default 101325"
    },
    "areaM2": {
      "type": "number",
      "description": "flat area (m^2) for force on surface"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}