/v1/confidence
Confidence interval
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/inference-api/v1/confidence" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/inference-api/v1/confidence", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/inference-api/v1/confidence");
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/inference-api/v1/confidence",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "CI = estimate ± Z·SE. For a mean SE = σ/√n; for a proportion SE = √(p(1−p)/n). Uses the normal (z) approximation.",
"lower": 95.842289,
"upper": 104.157711,
"inputs": {
"n": 50,
"type": "mean",
"confidence": 95
},
"z_score": 1.959964,
"estimate": 100,
"standard_error": 2.12132,
"margin_of_error": 4.157711
},
"meta": {
"timestamp": "2026-06-04T18:38:14.415Z",
"request_id": "41e4a104-21cc-4fd3-8779-c6ffdad834fc"
},
"status": "ok",
"message": "Confidence interval",
"success": true
}