# AgentTools Age Calculator

> AgentTools Age Calculator is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Calculates a person's exact age in calendar years, months, and days from their date of birth, plus total days lived, relative to today or a specified reference date.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/calculators/age-calculator?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-age-calculator-45c9c09d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sKIXBy26ieMXOAF_gHmgd

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 agenttools-age-calculator-45c9c09d
```

Example prompt: How old is someone born on 1990-03-15? Give me their exact age in years, months, and days as of today.

## When to prefer this

Use this endpoint when an agent needs a precise, broken-down age (years + months + days) from a date of birth rather than a simple year-difference calculation. Ideal for eligibility checks, birthday computations, legal age verification contexts, or any workflow requiring total days lived alongside the calendar breakdown.

## Known failure modes

- Missing required 'birth' query parameter returns an error
- Invalid date format (not YYYY-MM-DD) causes a parsing error
- Future birth dates may return zero or negative age
- Reference date ('on') earlier than birth date may produce unexpected results

## How this service works

Calculate a person's exact age in calendar years, months and days from their date of birth, plus total days lived. Reference date defaults to today (UTC). Use this when an agent needs to exact age in years, months and days.

## Output

Returns the person's exact age broken down into calendar years, months, and days, along with the total number of days they have been alive, calculated from the provided birth date to today's UTC date or a specified reference date.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "birth"
     ],
     "properties": {
      "on": {
       "type": "string",
       "description": "Defaults to today, YYYY-MM-DD"
      },
      "birth": {
       "type": "string",
       "description": "YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-age-calculator-45c9c09d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
