Aller au contenu
GET /v1/table

Table interpolation

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/interpolation-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/interpolation-api/v1/table" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/interpolation-api/v1/table", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/interpolation-api/v1/table");
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/interpolation-api/v1/table",
    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": {
        "y": 125,
        "note": "Piecewise-linear interpolation between the two bracketing points. Outside the data range the nearest segment is extended and 'extrapolated' is true.",
        "inputs": {
            "x": 15,
            "points": 3
        },
        "segment": {
            "to": [
                20,
                150
            ],
            "from": [
                10,
                100
            ]
        },
        "extrapolated": false
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:06.833Z",
        "request_id": "f97f270f-c297-49d3-8c04-d5349bef80b0"
    },
    "status": "ok",
    "message": "Table interp",
    "success": true
}