66trust / 100
Calculators Age Calculator
by AgentTools in Company & people data
x402 APIFailing, checked 4 h ago
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.
GET https://agenttools-hub.vercel.app/api/v1/calculators/age-calculator
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 50.0%
- Response time
- 148 ms typical, 148 ms slowest 5%
- Last check
- 4 h ago: Expected HTTP 402, got 308
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/calculators/age-calculator?birth=1990-06-15&on=2026-09-01"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fcalculators%2Fage-calculator
const res = await pay("https://agenttools-hub.vercel.app/api/v1/calculators/age-calculator?birth=1990-06-15&on=2026-09-01");
console.log(await res.json());Example input
{
"birth": "1990-06-15",
"on": "2026-09-01"
}Example output
{
"result": {
"answer": "36 years, 2 months, 17 days",
"answerLabel": "Age at 2026-09-01",
"details": [
{
"label": "Total days lived",
"value": "13,227"
},
{
"label": "Total weeks",
"value": "1,889"
},
{
"label": "Next birthday in",
"value": "287 days"
}
],
"steps": [
"Birth 1990-06-15 → reference 2026-09-01 (UTC)",
"Calendar difference = 36y 2m 17d"
],
"value": 36
},
"tool": "age-calculator"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Expected HTTP 402, got 308 | 308 | 44 ms | - |
| 7 h ago | Expected HTTP 402, got 308 | 308 | 20 ms | - |
| 10 h ago | Passed | 402 | 155 ms | $0.002 |
| 15 h ago | Passed | 402 | 148 ms | $0.002 |