Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/statistics-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "notes": "Data as a JSON array or comma-separated list. Quartiles use Tukey's method. For x/y endpoints the two lists must be the same length.",
        "service": "statistics-api",
        "formulae": {
            "variance": "population /n, sample /(n−1)",
            "regression": "slope = Σ(x−x̄)(y−ȳ)/Σ(x−x̄)²,  intercept = ȳ − slope·x̄",
            "correlation": "r = Σ(x−x̄)(y−ȳ) / √(Σ(x−x̄)²·Σ(y−ȳ)²)"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/regression": "Least-squares linear regression (slope, intercept, R²) with optional prediction.",
            "GET /v1/correlation": "Pearson correlation and covariance between two equal-length series.",
            "GET /v1/descriptive": "Mean, median, mode, variance, standard deviation and quartiles for a list of numbers."
        },
        "description": "Descriptive-statistics calculator: summary statistics for a dataset, Pearson correlation, and simple linear regression."
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:15.170Z",
        "request_id": "98503cb4-4f91-49ff-8bbb-ee3bd2f08e36"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}