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

ParameterTypeRequiredDescription
valuestringYesThe value to parse as boolean

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/boolean?value=yes"

Response Fields

FieldTypeDescription
validbooleanWhether the value was recognized as a boolean
normalizedbooleanThe parsed boolean value (true or false)

Example Response

{
  "valid": true,
  "normalized": true
}