Docs/Business Utils/GET /v1/age-calculator

GET /v1/age-calculatorCalculate age from birth date

Business Utils lf-business-utils

Works out how old someone is on a chosen date, right down to the day. Calculates precise age in years, months, and days between a birth date and a target date (or today). Returns total days, weeks, months, hours, zodiac sign, and next birthday.

Query Parameters

ParameterTypeRequiredDescription
birthstringYesBirth date YYYY-MM-DD
datestringNoTarget date (default today)

Response Schema

success (boolean): Operation success
birth_date (string): Birth date
target_date (string): Target date
years (integer): Age in years
months (integer): Additional months
days (integer): Additional days
age_string (string): Human-readable age
total_days (integer): Total days
zodiac (string): Western zodiac sign
next_birthday (string): Next birthday date

cURL Example

curl 'https://lf-business-utils.laminarforge.dev/v1/age-calculator?birth=<birth>' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/age-calculator'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'birth': '<birth>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())