/v1/bandwidth
Required bandwidth
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}