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/remap-api

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/remap-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/remap-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/remap-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/remap-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": "Range Remap API",
        "notes": "Mapped value = out_min + (value − in_min) ÷ (in_max − in_min) × (out_max − out_min). Output ranges may be reversed (out_min > out_max) to invert. Without clamp, values outside the input range extrapolate. This maps scalars — for vector interpolation use a vector API and for animation easing curves use an easing API. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/scale",
                "params": {
                    "clamp": "keep the result within the output range (default false)",
                    "round": "round to N decimals",
                    "value": "the input value (required)",
                    "in_max": "input range end (required)",
                    "in_min": "input range start (required)",
                    "out_max": "output range end (default 1)",
                    "out_min": "output range start (default 0)"
                },
                "returns": "the mapped value and its 0–1 position t"
            },
            {
                "path": "/v1/clamp",
                "params": {
                    "max": "maximum (required)",
                    "min": "minimum (required)",
                    "step": "optional — snap to the nearest multiple of step",
                    "round": "round to N decimals",
                    "value": "the value (required)"
                },
                "returns": "the clamped (and optionally snapped) value"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Map numbers between ranges. The scale endpoint linearly maps a value from an input range [in_min, in_max] to an output range [out_min, out_max] — the classic map() used for sensors, sliders, gauges, progress bars and data-visualisation axes. It also returns the 0–1 position t, so with the default 0–1 output it normalizes a value, and with a 0–1 input it interpolates (lerp). Turn on clamp to keep the result inside the output range. The clamp endpoint constrains a value to a min/max and can snap it to the nearest step. Pure local maths, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:20.457Z",
        "request_id": "5552f476-6e23-480c-b3ce-092630b73f1f"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}