/v1/depth-of-field
Depth of field + hyperfocal
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/photography-api/v1/depth-of-field" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/photography-api/v1/depth-of-field", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/photography-api/v1/depth-of-field");
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/depth-of-field",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"sensor": "full-frame",
"aperture": 8,
"distance_m": 5,
"far_limit_m": 9.2121,
"hyperfocal_m": 10.826,
"near_limit_m": 3.4311,
"focal_length_mm": 50,
"depth_of_field_m": 5.781,
"in_focus_to_infinity": false,
"circle_of_confusion_mm": 0.029
},
"meta": {
"timestamp": "2026-06-03T17:42:06.329Z",
"request_id": "92b43336-73bd-4c2a-b50d-e8cd873a929d"
},
"status": "ok",
"message": "Depth of field",
"success": true
}