/v1/inspect
Inspect an integer at a bit width
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}