# CoCo Age Calculator

> CoCo Age Calculator is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Calculates a person's age in years, total days lived, and days until their next birthday given a birthdate

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/age?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-age-calculator-840697a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7U8hhO_1jIQkeHineZO84

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 coco-age-calculator-840697a0
```

Example prompt: How old is someone born on March 15, 1998? Give me their age in years, total days lived, and how many days until their next birthday.

## When to prefer this

Choose this endpoint when you need a quick, low-cost computation of someone's age in years and days alongside a next-birthday countdown — especially in agent workflows where you want a single structured JSON result without doing date arithmetic yourself. It is a lightweight utility best suited for simple personal date queries rather than complex calendar logic.

## Known failure modes

- Missing or malformed birthdate query parameter returns an error
- Invalid date format (non-ISO string) may cause a computation failure
- Future birthdates may produce unexpected or negative age values
- Missing 'on' reference date may cause the API to default to current server date, which could yield inconsistent results

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object with the person's age in whole years, total number of days they have been alive, the date of their next birthday, and the number of days remaining until that next birthday.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "on": {
       "type": "string"
      },
      "birthdate": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "years"
     ],
     "properties": {
      "years": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "years": 26,
  "total_days": 9787,
  "next_birthday": "2027-01-01",
  "days_until_next": 75
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

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