Age Check

Check whether a date of birth meets a minimum age. Returns the exact age, whether the threshold is met, and the days until it is.

Pay by wallet (x402) age-verify

Example

Example answer
{
  "age_days": 15,
  "age_years": 0,
  "age_months": 5,
  "date_of_birth": "2026-05-12",
  "meets_minimum": false,
  "reference_date": "2026-10-27",
  "days_until_minimum": 6407,
  "date_of_birth_valid": true,
  "minimum_age_checked": 18
}

Inputs

FieldTypeRequiredWhat it is
minimum_ageintegerNoMinimum age to verify (default 18)
date_of_birthstringYesDate of birth (YYYY-MM-DD)
reference_datestringNoDate to check against (default today)

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
age_daysintegerAlways (present in every successful answer)
age_yearsintegerAlways (present in every successful answer)
age_monthsintegerAlways (present in every successful answer)
meets_minimumbooleanAlways (present in every successful answer)
days_until_minimumintegerUsually (present for most inputs)
date_of_birth_validbooleanAlways (present in every successful answer)
minimum_age_checkedintegerAlways (present in every successful answer)
reference_date—Always (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "age-verify",
    "inputs": {
      "date_of_birth": "1990-01-15",
      "minimum_age": 18
    },
    "max_price_cents": 2
  }'

Limitations

  • Does not verify identity

    Verifies age from a provided date of birth — does not verify the person's identity or that the DOB is authentic