Vai al contenuto
GET /v1/fspl

Free-space path loss

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/pathloss-api

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "FSPL(dB) = 20·log₁₀(d_km) + 20·log₁₀(f_MHz) + 32.44. Free-space, line-of-sight only — real paths add obstruction and multipath loss.",
        "inputs": {
            "distance_km": 1,
            "frequency_mhz": 2400
        },
        "fspl_db": 100.0442,
        "wavelength_m": 0.124914
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:11.355Z",
        "request_id": "e4df9836-7348-44b3-b3d3-6cf7b2241604"
    },
    "status": "ok",
    "message": "Free-space path loss",
    "success": true
}