Boolean
GET/v0/boolean
Parses and validates boolean-like string values. Accepts common boolean representations including true, false, yes, no, 1, 0, on, off.
Try it
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| value | string | Yes | The value to parse as boolean |
Example Request
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.isvalid.dev/v0/boolean?value=yes"
Response Fields
| Field | Type | Description |
|---|---|---|
| valid | boolean | Whether the value was recognized as a boolean |
| normalized | boolean | The parsed boolean value (true or false) |
Example Response
{
"valid": true,
"normalized": true
}