Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/bytes-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}