/v1/meta
Spec
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/opticalbudget-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/opticalbudget-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/opticalbudget-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/opticalbudget-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"notes": "dBm, dB, dB/km, km. budget = Tx − Rx; loss = α·L + connectors + splices; reach = (budget − fixed − margin)/α. SMF ≈ 0.35 dB/km @1310 nm, 0.20 @1550 nm. Loss-limited; dispersion may cap distance at high bit rates. For fibre NA/photonics use a fiber API; for RF line-of-sight a Fresnel-zone API.",
"service": "opticalbudget-api",
"endpoints": {
"GET /v1/loss": "Total link loss from fiber, connectors and splices.",
"GET /v1/meta": "This document.",
"GET /v1/reach": "Maximum reach from the budget, attenuation and margin.",
"GET /v1/power-budget": "Power budget from transmit power and receiver sensitivity."
},
"description": "Fiber-optic link-budget maths: optical power budget, total link loss, and maximum reach."
},
"meta": {
"timestamp": "2026-06-07T08:18:07.522Z",
"request_id": "11c28c29-d89e-406d-88ee-4fa2190b10f8"
},
"status": "ok",
"message": "Meta",
"success": true
}