← All tool references

Lifestyle · not_available

Birthday Calculator

Calculate current age, days lived, next birthday date, weekday, and countdown from a birth date.

Open public tool

Overview

Category
Lifestyle
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/birthday-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/birthday-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

birth_date · string · required
Choose the birth date used in the date calculation.
as_of_date · string · required
Choose the calculate as of used in the date calculation.
{
    "type": "object",
    "properties": {
        "birth_date": {
            "type": "string",
            "description": "Choose the birth date used in the date calculation."
        },
        "as_of_date": {
            "type": "string",
            "description": "Choose the calculate as of used in the date calculation."
        }
    },
    "required": [
        "birth_date",
        "as_of_date"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

age · string
Calendar age produced by the calculation.
total_days_lived · number
Total days lived produced by the calculation.
next_birthday · string
Next birthday produced by the calculation.
days_until_birthday · number
Days until next birthday produced by the calculation.
birth_weekday · string
Birth weekday produced by the calculation.
{
    "type": "object",
    "properties": {
        "age": {
            "type": "string",
            "description": "Calendar age produced by the calculation."
        },
        "total_days_lived": {
            "type": "number",
            "description": "Total days lived produced by the calculation."
        },
        "next_birthday": {
            "type": "string",
            "description": "Next birthday produced by the calculation."
        },
        "days_until_birthday": {
            "type": "number",
            "description": "Days until next birthday produced by the calculation."
        },
        "birth_weekday": {
            "type": "string",
            "description": "Birth weekday produced by the calculation."
        }
    },
    "additionalProperties": false
}

Birthday Calculator example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/birthday-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "birth_date": "1990-04-18",
    "as_of_date": "2026-07-13"
}'
{
    "ok": true,
    "data": {
        "slug": "birthday-calculator",
        "result": {
            "values": {
                "age": "36 years, 2 months, 25 days",
                "total_days_lived": 13235,
                "next_birthday": "2027-04-18",
                "days_until_birthday": 279,
                "birth_weekday": "Wednesday"
            },
            "display": {
                "display": "36 years, 2 months, 25 days"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.