/v1/convert
Data unit conversion
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/transfer-api/v1/convert" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/transfer-api/v1/convert", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/transfer-api/v1/convert");
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/convert",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"GB": 1,
"KB": 1000000,
"MB": 1000,
"TB": 0.001,
"GiB": 0.931322575,
"KiB": 976562.5,
"MiB": 953.674316,
"bits": 8000000000,
"mode": "size",
"note": "Decimal (KB=1000) and binary (KiB=1024) sizes from the input.",
"bytes": 1000000000,
"inputs": {
"from": "GB",
"value": 1
}
},
"meta": {
"timestamp": "2026-06-04T18:38:14.093Z",
"request_id": "a8e9e379-f0fe-48c8-aaad-b1fda5b0b4be"
},
"status": "ok",
"message": "Data unit convert",
"success": true
}