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/regression-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/regression-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/regression-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/regression-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/regression-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": "Pass x and y as comma-separated lists (x=1,2,3&y=2,4,5) or JSON arrays in a POST body; they must be equal length. This is the regression line; for the Pearson correlation alone or descriptive stats use a statistics API.",
        "service": "regression-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/linear": "Fit a line through x/y data; returns slope, intercept, R² and (optionally) a prediction.",
            "GET /v1/predict": "Predict y from a slope, intercept and x."
        },
        "description": "Linear least-squares regression: fit y = a + b·x, goodness of fit (R², standard errors), and prediction."
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:22.832Z",
        "request_id": "dbd468bb-5076-40d1-85e8-ed08b9d4ded0"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}