Zum Inhalt springen
GET /v1/time

Transfer time

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "time = file bits / (bandwidth bits-per-second × (1 − overhead)). Bytes are 8 bits; SI units (1 MB = 1,000,000 bytes).",
        "hours": 0.02222222,
        "human": "0h 1m 20s",
        "inputs": {
            "bandwidth": 100,
            "file_size": 1,
            "size_unit": "GB",
            "bandwidth_unit": "Mbps",
            "overhead_percent": 0
        },
        "minutes": 1.333333,
        "seconds": 80
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:14.204Z",
        "request_id": "e2b654f4-a198-4280-81c2-ecee71ad613d"
    },
    "status": "ok",
    "message": "Transfer time",
    "success": true
}