Aller au contenu
GET /v1/reach

Maximum reach

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/opticalbudget-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/opticalbudget-api/v1/reach" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/opticalbudget-api/v1/reach", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/opticalbudget-api/v1/reach");
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/opticalbudget-api/v1/reach",
    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": {
        "note": "Maximum reach = (power budget − fixed losses − system margin) ÷ the fibre attenuation. The margin (typically 3 dB) reserves headroom for ageing, temperature, bends and future repair splices, so the link still works years on. Lower-attenuation 1550 nm fibre stretches the reach; this assumes the link is loss-limited, not dispersion-limited — at high bit rates dispersion can cap distance first.",
        "inputs": {
            "tx_power_dbm": 0,
            "fixed_loss_db": 2,
            "system_margin_db": 3,
            "attenuation_db_km": 0.35,
            "rx_sensitivity_dbm": -23
        },
        "max_distance_km": 51.429,
        "power_budget_db": 23,
        "usable_for_fiber_db": 18
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:07.417Z",
        "request_id": "748c6e17-4e76-4220-bca8-b6eb4da38aee"
    },
    "status": "ok",
    "message": "Max reach",
    "success": true
}