/v1/prismoidal
Prismoidal (Simpson) volume
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/earthwork-api/v1/prismoidal" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/earthwork-api/v1/prismoidal", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/earthwork-api/v1/prismoidal");
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/earthwork-api/v1/prismoidal",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "The prismoidal (Simpson) method: volume = length ÷ 6 × (A₁ + 4·A_mid + A₂), using the true middle-section area, ÷ 27 for cubic yards. It is more accurate than average-end-area when the cross-section changes shape along the run — the difference is the 'prismoidal correction' — and is preferred for payment quantities on big jobs where the over-estimate would matter.",
"inputs": {
"length_ft": 100,
"area1_sqft": 100,
"area2_sqft": 150,
"area_mid_sqft": 125
},
"volume_cubic_ft": 12500,
"volume_cubic_yards": 462.96
},
"meta": {
"timestamp": "2026-06-07T08:18:02.554Z",
"request_id": "c67f2182-da1d-444b-8fb0-2027676a8137"
},
"status": "ok",
"message": "Prismoidal",
"success": true
}