sinikoding
age-calculator87

Age Calculator

Work out an exact age in years, months and days from a date of birth.

POST /api/v1/age-calculator
API version
v1
Output schema
1

The endpoint path is always /v1. The schema number below tracks this tool's output shape and changes independently.

Create a free account

Parameters

ParameterTypeRequiredDefault
birthtextyes
ontextno

Request

curl -X POST https://sinikoding.dev/api/v1/age-calculator \
  -H 'content-type: application/json' \
  -H 'x-api-key: tk_live_…' \
  -d '{"birth":"…","on":"…"}'

Returns

"output": { "kind": "table", "columns": ["…"], "rows": [["…"]] }
Try it

Calls a same-origin sandbox endpoint, not /api/v1. No key needed, capped at 15 requests a minute.

Request

curl -X POST https://sinikoding.dev/api/v1/age-calculator \
  -H 'content-type: application/json' \
  -H 'x-api-key: tk_live_…' \
  -d '{"birth":"","on":""}'

Response

Send a request to see the response.
Open the web version