Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/prism-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "notes": "Angles in degrees. n = sin((A+δ_min)/2)/sin(A/2). This is geometric prism optics; for a single flat-surface refraction use a Snell's-law API and for thin lenses a lens API.",
        "service": "prism-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/deviation": "Minimum deviation for a prism of apex angle A and index n.",
            "GET /v1/dispersion": "Angular dispersion between two lines and/or dispersive power and Abbe number.",
            "GET /v1/refractive-index": "Refractive index from apex angle and minimum deviation."
        },
        "description": "Optical prism calculator: minimum deviation, refractive index from measured deviation (spectrometer formula), and dispersion / dispersive power."
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:32.083Z",
        "request_id": "9416ac00-7814-428f-8e63-bdf238ed3329"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}