# Age Verification by Date of Birth

> Age Verification by Date of Birth is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-13).

Verifies whether a person meets a minimum age requirement based on their date of birth, with optional custom age threshold and reference date.

## Facts

- Endpoint: GET https://api.strale.io/x402/age-verify
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-1a213db0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__a7D82428Vd85KOJKLyhK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-1a213db0
```

Example prompt: Is someone born on 1998-03-15 old enough to meet the minimum age of 21 as of today?

## When to prefer this

Use this endpoint when you need a lightweight, purely algorithmic age check against a date of birth without requiring document upload or identity verification. Ideal for onboarding flows, age-gating, or compliance checks where you already have the user's date of birth and need a fast, cheap, deterministic pass/fail result.

## Known failure modes

- Missing or malformed date_of_birth (not in YYYY-MM-DD format) — returns 400 or validation error
- Invalid minimum_age value (e.g. non-integer or negative) — returns error
- reference_date provided in wrong format — parsing error
- Payment not provided or insufficient — 402 Payment Required
- Future date of birth (impossible age) — may return false or error

## How this service works

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.

## Output

Returns a boolean or structured result indicating whether the person meets the specified minimum age requirement, given their date of birth and an optional reference date.

## Example request

```json
{
 "minimum_age": 18,
 "date_of_birth": "2000-06-15"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "date_of_birth"
     ],
     "properties": {
      "minimum_age": {
       "type": "integer",
       "description": "Minimum age to verify (default 18)"
      },
      "date_of_birth": {
       "type": "string",
       "description": "Date of birth (YYYY-MM-DD)"
      },
      "reference_date": {
       "type": "string",
       "description": "Date to check against (default today)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-1a213db0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
