Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/samplesize-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}