Zum Inhalt springen
GET /v1/inspect

Inspect an integer at a bit width

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/bitwise-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/bitwise-api/v1/inspect" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitwise-api/v1/inspect", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitwise-api/v1/inspect");
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/bitwise-api/v1/inspect",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "hex": "0xff",
        "octal": "0o377",
        "width": 8,
        "binary": "11111111",
        "parity": "even",
        "decimal": "255",
        "byte_swapped": "0xff",
        "leading_zeros": 0,
        "reversed_bits": "0xff",
        "signed_decimal": "-1",
        "trailing_zeros": 0,
        "is_power_of_two": false,
        "population_count": 8
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:10.156Z",
        "request_id": "a26c9408-7c56-4ddd-b777-b6e75269242e"
    },
    "status": "ok",
    "message": "Inspect",
    "success": true
}