# agent402.tools Age Calculator

> agent402.tools Age Calculator is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes a precise age (years, months, days, and total days) from a birth date to today or a specified reference date.

## Facts

- Endpoint: POST https://agent402.tools/api/age
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-age-calculator-e229e0c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RSee1GZy_ThVb_oYAE_XM

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 agent402-tools-age-calculator-e229e0c7 -d '<json body>'
```

Example prompt: How old is someone born on March 14, 1990 — give me their exact age in years, months, and days as of today?

## When to prefer this

Use this endpoint when you need a precise, decomposed age (years + months + days) rather than just a year difference, or when you need total days elapsed since birth. Prefer this over generic date-diff tools when the output must be in human-readable age format suitable for displaying a person's age.

## Known failure modes

- Invalid or unparseable birthdate format returns an error
- Future birthdate (birthdate after reference date) may return an error or zero/negative result
- Missing birthdate field causes a validation error
- Malformed JSON body returns a 400 bad request

## How this service works

Compute a precise age (years, months, days) from a birth date to today (or a given date), plus total days.

## Output

Returns the precise age broken down into years, months, and days, plus the total number of days elapsed since the birth date, computed relative to today or a specified asOf date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "asOf": {
   "description": "Reference date (default now)"
  },
  "birthdate": {
   "description": "Birth date"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": 22,
  "years": 36,
  "months": 0,
  "totalDays": 13166
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-age-calculator-e229e0c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
