/v1/meta
Spec
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/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bytes-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bytes-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"name": "Bytes API",
"notes": "SI uses powers of 1000 (kB, MB, GB); IEC uses powers of 1024 (KiB, MiB, GiB). Unit names are case-insensitive.",
"version": "v1",
"endpoints": [
{
"path": "/v1/format",
"params": {
"bytes": "a byte count (required)",
"system": "si|iec (default iec)",
"decimals": "0-10 (default 2)"
},
"returns": "human string + both si and iec forms"
},
{
"path": "/v1/parse",
"params": {
"value": "\"1.5 GiB\", \"2GB\", \"500 kB\" (required)"
},
"returns": "the size in bytes"
},
{
"path": "/v1/convert",
"params": {
"to": "target unit (required)",
"from": "source unit (default B)",
"value": "amount (required)"
},
"returns": "converted value + bytes"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Humanize, parse and convert byte sizes in both SI (kB, MB, GB — 1000) and IEC (KiB, MiB, GiB — 1024) units. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-02T16:51:45.983Z",
"request_id": "e6102f3f-bda5-4274-bf09-1c86a6e83088"
},
"status": "ok",
"message": "Meta",
"success": true
}