Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/stats-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "name": "Statistics API",
        "notes": "Sample statistics (variance/stddev) need n≥2, skewness n≥3, kurtosis n≥4; geometric/harmonic mean need all-positive values (null otherwise). Operates on raw number arrays, not CSV.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/describe",
                "params": {
                    "numbers": "JSON array or comma list (required)"
                },
                "returns": "full descriptive summary"
            },
            {
                "path": "/v1/percentile",
                "params": {
                    "p": "0-100 (required)",
                    "numbers": "array (required)"
                },
                "returns": "the p-th percentile"
            },
            {
                "path": "/v1/correlation",
                "params": {
                    "x": "array (required)",
                    "y": "array, same length (required)"
                },
                "returns": "Pearson r and r²"
            },
            {
                "path": "/v1/regression",
                "params": {
                    "x": "array (required)",
                    "y": "array, same length (required)"
                },
                "returns": "slope, intercept, r², equation"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Descriptive and bivariate statistics on raw numeric arrays — mean/median/mode, variance, standard deviation, quartiles, percentiles, skewness, kurtosis, plus Pearson correlation and linear regression between two series. Powered by simple-statistics. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-02T16:51:49.246Z",
        "request_id": "6bca192b-91d0-458f-989a-8286366e7a42"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}