Naar de inhoud
GET /v1/clip-length

Clip length from shoot, interval, fps

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/timelapse-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "A time-lapse trades a long shoot for a short clip: the frames captured = the shoot duration ÷ the interval, and the clip length = those frames ÷ the playback frame rate. Shooting for 60 minutes at one frame every 5 seconds gives 720 frames, and at 24 fps that plays back in 30 seconds — a 120× speed-up. Longer intervals compress time harder but can stutter on fast motion.",
        "inputs": {
            "fps": 24,
            "interval_seconds": 5,
            "shoot_duration_min": 60
        },
        "frame_count": 720,
        "clip_length_seconds": 30,
        "clip_length_formatted": "0:30"
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:51.448Z",
        "request_id": "ae9b780b-6f27-4462-9574-ae66c9a6923c"
    },
    "status": "ok",
    "message": "Clip length",
    "success": true
}