Skip to content
GET /v1/file-size

Bitrate / duration / size

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/bitrate-api

It works. Grab an API key and use it in your project.

Get an API key

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

Example response

A real response from this endpoint, captured by the latest 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
}