Vai al contenuto
GET /v1/clip-length

Clip length from shoot, interval, fps

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/timelapse-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}