Skip to content
GET /v1/modes

Mode count

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/fiber-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "Guided modes: step-index M ≈ V²/2, graded-index M ≈ V²/4 (large-V approximation). Below V = 2.405 only the single fundamental mode propagates.",
        "inputs": {
            "profile": "step",
            "v_number": 5.234
        },
        "single_mode": false,
        "raw_mode_estimate": 13.6974,
        "approximate_mode_count": 13
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:30.632Z",
        "request_id": "bd6a8d0b-c1fe-4027-825e-b6219b4ce53a"
    },
    "status": "ok",
    "message": "Mode count",
    "success": true
}