# Age Calculator from Birth Date

> Age Calculator from Birth Date is a paid API for AI agents from timezone-time.x402tookit.com, paid per call via x402, $0.02/call, status down (last checked 2026-10-23).

Calculates exact age in years, months, and days from a birth date as of a given date, plus next birthday date and days until it.

## Facts

- Endpoint: GET https://timezone-time.x402tookit.com/age-calc?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/age-calculator-from-birth-date-7b9acd14
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_twg-IJBVCo81EQrD2Q8FK

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 age-calculator-from-birth-date-7b9acd14
```

Example prompt: How old is someone born on 1990-03-15 as of today — give me their exact age in years, months, and days, and tell me when their next birthday is and how many days away it is.

## When to prefer this

Use this endpoint when you need a precise breakdown of someone's age (years + months + days) from a birth date, especially when you also need next-birthday information or adult-status flags (18+/21+). It is purpose-built for date arithmetic around birthdates and is more reliable than general-purpose date-difference endpoints for age-specific calculations, including legal majority checks.

## Known failure modes

- Missing birth_date parameter returns an error
- Invalid date format (not YYYY-MM-DD) causes a parse error
- Future birth_date may return zero or negative age values
- Invalid as_of date format causes failure
- Network timeout or service unavailability returns no response

## How this service works

Exact age in years, months and days from a birth date as of a date, plus next birthday and days until it.

## Output

Returns a JSON object containing the exact age broken down into years, months, and days; total days lived; the date of the next birthday; days until the next birthday; boolean flags for whether the person is 18+ (adult18) and 21+ (adult21); a human-readable summary; the as_of date used; and optionally a verdict, reasons array, and disclaimer.

## 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_date"
     ],
     "properties": {
      "as_of": {
       "type": "string",
       "description": "YYYY-MM-DD, default today (UTC)"
      },
      "birth_date": {
       "type": "string",
       "description": "YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "days": {
       "type": [
        "null",
        "number"
       ]
      },
      "years": {
       "type": [
        "null",
        "number"
       ]
      },
      "months": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "adult18": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "adult21": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "ageAsOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "birthDate": {
       "type": [
        "null",
        "string"
       ]
      },
      "totalDays": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "nextBirthday": {
       "type": [
        "null",
        "stri
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/age-calculator-from-birth-date-7b9acd14/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from timezone-time.x402tookit.com](https://www.zero.xyz/host/timezone-time.x402tookit.com/llms.txt)
