Aller au contenu
GET /v1/interval

Interval for a target clip

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/timelapse-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/timelapse-api/v1/interval" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/timelapse-api/v1/interval", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/timelapse-api/v1/interval");
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/timelapse-api/v1/interval",
    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": {
        "note": "To hit a target clip length, work backwards: the frames needed = the target clip length × the frame rate, and the interval = the shoot duration ÷ those frames. A 60-minute shoot for a 20-second clip at 24 fps needs 480 frames, so shoot one every 7.5 seconds. Round the interval to what the intervalometer allows, then re-check the clip length.",
        "inputs": {
            "fps": 24,
            "shoot_duration_min": 60,
            "target_clip_seconds": 20
        },
        "frames_needed": 480,
        "interval_seconds": 7.5
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:51.544Z",
        "request_id": "9e417085-969a-44a9-993b-60663816eabf"
    },
    "status": "ok",
    "message": "Interval",
    "success": true
}