Pressure Converter
Converts among psi, bar, kPa, MPa, atm, kg/cm², inH₂O and mmHg, and between gauge and absolute with a stated atmospheric reference.
POST /v1/petroleum/pressure-convert $0.005 per call
Specification
- Endpoint
POST /v1/petroleum/pressure-convert- Price
- $0.005 per call · tier
basic_data - Payment
-
x402 on X Layer (chain 196) · settled in USDG or USDT0 · schemes
exact,aggr_deferred - Data source
- Published petroleum-engineering correlations, cited per endpoint
- Timeout
- 15 seconds
- Max request
- 64 KB
- Version
1.0.0
Calling it
The first call returns a 402 with the payment challenge. Retry with a
signed authorisation in the X-PAYMENT header — see
the payment guide for the exact shape.
curl -i -X POST "https://api.dana-edu.pp.ua/v1/petroleum/pressure-convert" \
-H "content-type: application/json" \
-d '{ ... }' Response
Real output, captured by running this endpoint at build time — not written by hand. Volatile fields such as timestamps are elided. Captured 2026-07-30.
{
"input": {
"value": 3500,
"unit": "psi"
},
"output": {
"value": 241.316505,
"unit": "bar"
},
"value_in_pa": 24131650.5261,
"all_units": {
"pa": 24131650.526088,
"kpa": 24131.650526,
"mpa": 24.131651,
"bar": 241.316505,
"psi": 3500,
"atm": 238.160874,
"kg_cm2": 246.074353,
"inh2o": 96879.670375,
"mmhg": 181002.238214
},
"gauge_absolute_conversion": "none",
"atmospheric_reference_kpa": 101.325,
"note": "Conversions use exact SI-defined factors. 1 psi = 6894.757293168 Pa exactly; 1 atm = 101325 Pa exactly."
}
Every response is wrapped in the same envelope: data plus
warnings, sources, confidence,
informational_only and a measured processing_ms.
See the envelope reference.
Related endpoints
API Gravity Calculator
Converts between API gravity, specific gravity and density at 60 °F using the API 2540 definition, with the formula returned.
Temperature Converter
Converts among Celsius, Fahrenheit, Kelvin and Rankine with absolute-zero bounds enforced.
Gas Z-Factor
Gas compressibility factor by the Dranchuk–Abou-Kassem correlation with Sutton pseudo-critical properties and optional sour-gas correction, reporting convergence and whether inputs are inside the correlation's validated range.
Oil Viscosity Correlation
Dead, saturated and undersaturated oil viscosity by Beggs–Robinson with Vasquez–Beggs above bubble point, with valid ranges and extrapolation warnings.