Zum Inhalt springen
GET /v1/file-size

Bitrate / duration / size

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/bitrate-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "duration": {
            "hours": 1,
            "human": "1h 0m 0s",
            "minutes": 60,
            "seconds": 3600
        },
        "file_size": {
            "gb": 2.25,
            "kb": 2250000,
            "mb": 2250,
            "tb": 0.00225,
            "gib": 2.09548,
            "mib": 2145.77,
            "tib": 0.00204636,
            "bytes": 2250000000
        },
        "bitrate_bps": 5000000
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:04.126Z",
        "request_id": "46ae1b70-3c6a-4a9c-9475-7e6bd696098b"
    },
    "status": "ok",
    "message": "File size",
    "success": true
}