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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "name": "Photography Calculator API",
        "notes": "Hyperfocal H = f²/(N·c) + f. EV100 = log2(N²/t). Distances in metres, focal length in mm, shutter in seconds. Nothing is stored.",
        "sensors": [
            "full-frame",
            "aps-c",
            "aps-c-canon",
            "micro-four-thirds",
            "1-inch",
            "medium-format",
            "super-35"
        ],
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/depth-of-field",
                "params": {
                    "coc": "circle of confusion mm (optional)",
                    "sensor": "sensor format (default full-frame)",
                    "aperture": "f-number",
                    "distance": "focus distance in metres",
                    "focal_length": "mm"
                },
                "returns": "near/far limits, DoF and hyperfocal distance"
            },
            {
                "path": "/v1/field-of-view",
                "params": {
                    "sensor": "sensor format",
                    "focal_length": "mm"
                },
                "returns": "angle of view, crop factor and 35mm-equivalent focal length"
            },
            {
                "path": "/v1/exposure",
                "params": {
                    "ev": "or a target EV with one of aperture/shutter",
                    "iso": "ISO (default 100)",
                    "shutter": "seconds",
                    "aperture": "f-number"
                },
                "returns": "the exposure value (EV)"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Camera and optics maths as an API. The depth-of-field endpoint computes the near and far limits of sharp focus, the total depth of field and the hyperfocal distance from a focal length, aperture and focus distance, using the circle of confusion for your sensor format (full-frame, APS-C, Micro Four Thirds, 1-inch, medium format and more — or your own). The field-of-view endpoint gives the horizontal, vertical and diagonal angle of view for a focal length on a given sensor, plus the crop factor and the 35 mm-equivalent focal length. The exposure endpoint computes the exposure value (EV) from aperture, shutter speed and ISO, and can also solve for the shutter or aperture that hits a target EV. Everything is computed locally and deterministically, so it is instant and private. Ideal for photography and videography apps, camera and lens tools, focus-stacking and landscape planning, and teaching exposure. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. This computes camera optics; for reading EXIF metadata from photos use an EXIF API."
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:06.676Z",
        "request_id": "17fea7cd-97bf-4d3c
…