/v1/parse
Parse a size string to bytes
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/bytes-api/v1/parse" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bytes-api/v1/parse", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bytes-api/v1/parse");
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/bytes-api/v1/parse",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"bytes": 1610612736,
"input": "1.5 GiB",
"system": "iec"
},
"meta": {
"timestamp": "2026-06-02T16:51:45.871Z",
"request_id": "bb00821f-683c-4183-997f-15ba1994e9ed"
},
"status": "ok",
"message": "Parse a size string to bytes",
"success": true
}