/v1/file-size
Bitrate / duration / size
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}