Naar de inhoud
GET /v1/descriptive

Descriptive statistics

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "q1": 4,
        "q3": 6,
        "iqr": 2,
        "max": 9,
        "min": 2,
        "sum": 40,
        "mean": 5,
        "mode": [
            4
        ],
        "note": "Population divides by n, sample by n−1. Quartiles by Tukey's method. Mode is null when all values are unique.",
        "range": 7,
        "inputs": {
            "count": 8
        },
        "median": 4.5,
        "q2_median": 4.5,
        "stddev_sample": 2.13809,
        "variance_sample": 4.571429,
        "stddev_population": 2,
        "variance_population": 4
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:14.976Z",
        "request_id": "d7340679-d55e-4b90-aefd-7d0497d416eb"
    },
    "status": "ok",
    "message": "Descriptive stats",
    "success": true
}