Ir al contenido
GET /v1/focus

Focused spot

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/laser-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "Diffraction-limited focal spot: w_f = λ·f/(π·w_in). A bigger input beam or shorter focal length gives a smaller spot.",
        "inputs": {
            "wavelength_nm": 1064,
            "focal_length_mm": 100,
            "input_radius_mm": 2
        },
        "f_number": 25,
        "depth_of_focus_um": 1693.408594,
        "focused_radius_um": 16.934086,
        "rayleigh_range_um": 846.704297,
        "focused_diameter_um": 33.868172
    },
    "meta": {
        "timestamp": "2026-06-05T03:09:03.575Z",
        "request_id": "5a8341f3-fcc7-4374-a1fc-dc0bc12e7dd0"
    },
    "status": "ok",
    "message": "Focused spot",
    "success": true
}