Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/statistics-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}