/v1/power-budget
Optical power budget
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/opticalbudget-api/v1/power-budget" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/opticalbudget-api/v1/power-budget", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/opticalbudget-api/v1/power-budget");
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/power-budget",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "The optical power budget = transmit power − receiver sensitivity (both in dBm), the total loss the link can tolerate. A 0 dBm transmitter into a −23 dBm receiver gives a 23 dB budget. Everything between — fibre attenuation, connectors, splices — must fit inside it, with a margin left over for ageing and repairs. Because dBm is logarithmic, subtracting dBm gives dB of budget directly.",
"inputs": {
"tx_power_dbm": 0,
"rx_sensitivity_dbm": -23
},
"tx_power_mw": 1,
"power_budget_db": 23,
"rx_sensitivity_mw": 0.005011872
},
"meta": {
"timestamp": "2026-06-07T08:18:07.317Z",
"request_id": "ff995d99-a6a4-4bfa-a853-376ca05b7ee5"
},
"status": "ok",
"message": "Power budget",
"success": true
}