Aller au contenu
GET /v1/meta

Spec

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/fiber-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/fiber-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fiber-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fiber-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/fiber-api/v1/meta",
    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": {
        "notes": "Core radius and wavelength in metres (e.g. 1310 nm = 1.31e-6 m), indices dimensionless. Single-mode cutoff V = 2.405.",
        "service": "fiber-api",
        "formulae": {
            "modes": "step M ≈ V²/2 ; graded M ≈ V²/4",
            "v_number": "V = 2π·a·NA/λ",
            "numerical_aperture": "NA = √(n1² − n2²)"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/modes": "Approximate guided-mode count for a step- or graded-index fibre.",
            "GET /v1/v-number": "V-number, single/multimode classification and cutoff wavelength.",
            "GET /v1/numerical-aperture": "NA, acceptance angle and index difference from core and cladding indices."
        },
        "description": "Optical-fibre calculator: numerical aperture and acceptance angle, the V-number (normalized frequency) with single-mode cutoff, and the number of guided modes."
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:30.924Z",
        "request_id": "ff34e0d9-2690-46f9-bed5-52c8e949e326"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}