/v1/convert
Data unit conversion
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}