x402

Age Verify (x402)

Verify if a person meets a minimum age requirement based on their date of birth. Returns exact age, whether the threshold is met, and days until the threshold (if not met). Accounts for leap years.

get/x402/v2/age-verify

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/age-verify
  • Auth: none required

Query parameters

minimum_ageinteger

Minimum age to verify (default 18)

date_of_birthstring required

Date of birth (YYYY-MM-DD)

reference_datestring

Date to check against (default today)

Response

Success

age_daysinteger
age_yearsinteger
age_monthsinteger
meets_minimumboolean
days_until_minimuminteger
date_of_birth_validboolean
minimum_age_checkedinteger

Example response

{
  "age_days": 15,
  "age_years": 36,
  "age_months": 3,
  "date_of_birth": "1990-01-15",
  "meets_minimum": true,
  "reference_date": "2026-04-30",
  "days_until_minimum": null,
  "date_of_birth_valid": true,
  "minimum_age_checked": 18
}

Changes

No recorded changes to this operation across all 1 revision of this API.