Zum Inhalt springen
GET /v1/bandwidth

Required bandwidth

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

Beispiel-Response

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

{
    "data": {
        "gbps": 0.133333333,
        "mbps": 133.333333,
        "note": "bandwidth = file bits / time / (1 − overhead). Mbps is megabits per second; MB/s is megabytes per second (×8).",
        "inputs": {
            "seconds": 60,
            "file_size": 1,
            "size_unit": "GB",
            "overhead_percent": 0
        },
        "mb_per_s": 16.666667,
        "bits_per_second": 133333333.3333
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:13.969Z",
        "request_id": "987c81b2-5840-421c-a7fc-7c7f121dcca6"
    },
    "status": "ok",
    "message": "Required bandwidth",
    "success": true
}