/v1/depth-of-field
Depth of field + hyperfocal
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}