Skip to content
GET /v1/stagnation

Isentropic stagnation ratios

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

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "note": "Isentropic compressible flow: T0/T = 1+(γ−1)/2·M², P0/P = (T0/T)^(γ/(γ−1)), ρ0/ρ = (T0/T)^(1/(γ−1)). At M=2 (γ=1.4): T0/T=1.8, P0/P≈7.824.",
        "inputs": {
            "mach": 2,
            "gamma": 1.4
        },
        "p0_over_p": 7.82444907,
        "t0_over_t": 1.8,
        "rho0_over_rho": 4.34691615
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:29.981Z",
        "request_id": "b5fcf276-ee0b-44aa-ba86-29d1e77876e9"
    },
    "status": "ok",
    "message": "Isentropic stagnation ratios",
    "success": true
}