Skip to content
GET /v1/deviation

Minimum deviation

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/prism-api

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "note": "At minimum deviation the ray passes symmetrically: δ_min = 2·arcsin(n·sin(A/2)) − A, with equal incidence i and exit angles and internal refraction A/2 on each face. An equilateral prism (A=60°) of n=1.5 gives δ_min ≈ 37.18°.",
        "inputs": {
            "n": 1.5,
            "apex_angle": 60
        },
        "incidence_angle": 48.590378,
        "minimum_deviation": 37.180756,
        "internal_refraction_angle": 30
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:31.781Z",
        "request_id": "72df7eb6-0db2-4a2b-a169-397999494266"
    },
    "status": "ok",
    "message": "Minimum deviation",
    "success": true
}