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
| Field | Type | Required | What it is |
|---|---|---|---|
minimum_age | integer | No | Minimum age to verify (default 18) |
date_of_birth | string | Yes | Date of birth (YYYY-MM-DD) |
reference_date | string | No | Date to check against (default today) |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
age_days | integer | Always (present in every successful answer) |
age_years | integer | Always (present in every successful answer) |
age_months | integer | Always (present in every successful answer) |
meets_minimum | boolean | Always (present in every successful answer) |
days_until_minimum | integer | Usually (present for most inputs) |
date_of_birth_valid | boolean | Always (present in every successful answer) |
minimum_age_checked | integer | Always (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
}' {
"tool": "strale_execute",
"arguments": {
"slug": "age-verify",
"inputs": {
"date_of_birth": "1990-01-15",
"minimum_age": 18
},
"max_price_cents": 2
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "age-verify",
inputs: {
"date_of_birth": "1990-01-15",
"minimum_age": 18
},
max_price_cents: 2,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="age-verify",
inputs={
"date_of_birth": "1990-01-15",
"minimum_age": 18,
},
max_price_cents=2,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/age-verify?date_of_birth=1990-01-15&minimum_age=18' 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
Related tools
- Address Validation €0.03
- Bank BIC Lookup €0.05
- Bulk Email Validation €0.15
- Business Day Check €0.02
- Company ID Detection €0.05
- Czech Bank Account Validation €0.02