/v1/meta
Spec
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/samplesize-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/samplesize-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/samplesize-api/v1/meta");
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/samplesize-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"notes": "Margin of error and proportion as decimals (0.05 = ±5 %, 0.5 = 50 %); confidence as a decimal (0.95). Optional finite population N applies the correction. Uses the normal (z) approximation; for hypothesis testing use an A/B-test API.",
"service": "samplesize-api",
"endpoints": {
"GET /v1/mean": "Required sample size for estimating a mean.",
"GET /v1/meta": "This document.",
"GET /v1/margin": "Margin of error achieved for a given sample size.",
"GET /v1/proportion": "Required sample size for a proportion (survey/poll)."
},
"description": "Survey / poll sample-size planning: required n for a target margin of error, and margin of error for a given n, for a proportion or a mean."
},
"meta": {
"timestamp": "2026-06-05T19:50:22.483Z",
"request_id": "7c1f666f-345f-43b6-8758-079b2e6af5cc"
},
"status": "ok",
"message": "Meta",
"success": true
}