# Age Calculator: Exact Age from Date of Birth

> Age Calculator: Exact Age from Date of Birth is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-24).

Calculates exact age in years, months, and days from a birthdate, plus total days lived, day of birth, and next birthday info, measured today or on any given date.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/calc/age?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-age-calculator-exact-age-4fd87ff0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_crhoKQeANKVzyJp7ZUhjs

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 agent-data-tools-revmesh2074-workers-dev-age-calculator-exact-age-4fd87ff0
```

Example prompt: How old is someone born on March 14, 1990 — give me their exact age in years, months, and days, how many days they've lived, what day of the week they were born, and when their next birthday is.

## When to prefer this

Choose this endpoint when you need precise, broken-down age data (years + months + days), not just age in years. Ideal for eligibility checks, form validation, birthday countdown features, and anniversaries where exact granularity matters. It also returns the weekday of birth and next birthday date, making it more comprehensive than a simple year-difference calculator.

## Known failure modes

- Missing required 'birthdate' parameter returns an error
- Invalid date format (not YYYY-MM-DD) causes a parsing error
- Future birthdate may return zero or negative age values
- Invalid 'on' date format causes a similar parsing failure
- Birthdate after the 'on' date may produce unexpected results

## How this service works

Age calculator. Exact age from a date of birth in years, months and days, total days lived, the weekday of birth, and the date of and days until the next birthday, measured today (UTC) or on any date you give. Use for age checks, forms and anniversaries.

## Output

Returns a JSON object with the person's age broken down into years, months, and days; the total number of days lived; the weekday name they were born on (bornOn); the date of their next birthday (nextBirthday in YYYY-MM-DD); and the number of days until that next birthday (daysUntilNextBirthday). All calculations are UTC-based.

## 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": [
      "birthdate"
     ],
     "properties": {
      "on": {
       "type": "string",
       "examples": [
        "2026-10-23"
       ],
       "description": "Measure on this date, YYYY-MM-DD (default today)"
      },
      "birthdate": {
       "type": "string",
       "examples": [
        "1990-05-17"
       ],
       "description": "Date of birth, YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "days": {
       "type": "number"
      },
      "years": {
       "type": "number"
      },
      "bornOn": {
       "type": "string"
      },
      "months": {
       "type": "number"
      },
      "totalDays": {
       "type": "number"
      },
      "nextBirthday": {
       "type": "string"
      },
      "daysUntilNextBirthday": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "days": {
   "type": "number"
  },
  "years": {
   "type": "number"
  },
  "bornOn": {
   "type": "string"
  },
  "months": {
   "type": "number"
  },
  "totalDays": {
   "type": "number"
  },
  "nextBirthday": {
   "type": "string"
  },
  "daysUntilNextBirthday": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-age-calculator-exact-age-4fd87ff0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
