# Foundry Age Calculator

> Foundry Age Calculator is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Calculates a person's age in years and days, their birth weekday, next birthday date, and days until that birthday from a given birth date.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/age-calculator?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-age-calculator-f8be72ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xi2d1xJH0Kq0dyAKfhoqb

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 foundry-age-calculator-f8be72ba -d '<json body>'
```

Example prompt: How old am I exactly if I was born on 1992-03-21? I want to know my age in years and days, what day of the week I was born, and how many days until my next birthday.

## When to prefer this

Use this endpoint when you need a quick, precise age computation from a single birth date without requiring a calendar API or complex date library. Ideal for agents handling age verification, birthday reminders, or profile enrichment where exact day-level precision matters.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) causes a parsing error
- Future birth dates may return unexpected or negative age values
- Missing or empty input field returns an error
- Leap year edge cases (e.g. Feb 29) may need special handling for next birthday calculation

## How this service works

Age calculator: age in years and days, next birthday and days until it. Input: a birth date 'YYYY-MM-DD'.

## Output

Returns a JSON object with the input birth date, age in whole years, total age in days, the weekday the person was born, the date of their next birthday (YYYY-MM-DD), and the number of days remaining until that next birthday.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "Birth date as YYYY-MM-DD"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "born": "1995-06-15",
  "age_days": 11461,
  "age_years": 31,
  "born_weekday": "Thursday",
  "next_birthday": "2027-06-15",
  "days_to_birthday": 227
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-age-calculator-f8be72ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
