AgeCalculatorProfessional Edition
Main CalculatorAge in DaysAge in WeeksAge in MonthsAge on DatePremature Baby Age
How It WorksBlogFAQAPI Documentation
About UsContactPrivacy PolicyTerms of Service
Try Our API
AgeCalculatorProfessional Edition

The most accurate and comprehensive age calculator on the web. Trusted by millions worldwide for precise age calculations.

SSL Secured
GDPR Compliant

Calculators

  • Main Age Calculator
  • Age in Days
  • Age in Weeks
  • Age in Months
  • Age on Specific Date
  • Premature Baby Age

Resources

  • How It Works
  • Blog & Articles
  • Frequently Asked Questions
  • API Documentation
  • Sitemap

Company

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

Connect

  • Twitter
  • Facebook
  • LinkedIn
  • GitHub
  • Newsletter

Subscribe to our newsletter

Get the latest updates on new features and age calculation tips.

© 2025 AgeCalculator Professional. All rights reserved. |Privacy |Terms |Cookies
Built with precision and care for accurate age calculations worldwide

API Documentation

Use our REST API to calculate ages programmatically. All endpoints are free to use with reasonable rate limits.

Single Age Calculation

GET /api/age

Parameters

ParameterTypeRequiredDescription
dobstringYesDate of birth (YYYY-MM-DD format)
asofstringNoCalculate age as of this date (YYYY-MM-DD). Defaults to today.
leap_policystringNoPolicy for Feb 29 birthdays: 'us', 'eu', or 'iso' (default: 'iso')
tzstringNoTime zone (e.g., 'America/New_York'). Defaults to UTC.
ga_weeksnumberNoGestational age in weeks (24-42) for corrected age calculation

Example Request

curl "https://agecalculator.pro/api/age?dob=2000-01-15&asof=2025-09-01&leap_policy=us&tz=America/New_York"

Example Response

{
  "years": 25,
  "months": 7,
  "days": 17,
  "totalDays": 9361,
  "totalWeeks": 1337,
  "weekRemainderDays": 2,
  "hours": 224664,
  "minutes": 13479840,
  "seconds": 808790400,
  "totalMonthsInteger": 307,
  "totalMonthsFloat": 307.48,
  "nextBirthday": {
    "date": "2026-01-15",
    "inDays": 136,
    "inWeeks": 19
  },
  "legalAgeNote": null,
  "correctedAge": null,
  "paramsEcho": {
    "dob": "2000-01-15",
    "timeZone": "America/New_York",
    "asOf": "2025-09-01",
    "leapPolicy": "us"
  }
}

Bulk CSV Calculation

POST /api/age/bulk

Request Headers

Content-Type: text/csv

CSV Format

Upload a CSV file with the following columns:

  • dob (required): Date of birth
  • asof (optional): Calculate as of date
  • ga_weeks (optional): Gestational age
  • leap_policy (optional): Leap year policy
  • tz (optional): Time zone

Example CSV Input

dob,asof,ga_weeks,leap_policy,tz
2000-01-15,2025-09-01,,us,America/New_York
2016-02-29,2025-02-28,,eu,Europe/London
2025-07-01,2025-09-01,32,iso,UTC

Example Request

curl -X POST https://agecalculator.pro/api/age/bulk \
  -H "Content-Type: text/csv" \
  --data-binary @ages.csv

Response

Returns a CSV file with all input columns plus calculated age fields.

Error Responses

400 Bad Request

Invalid parameters or missing required fields

{
  "error": {
    "fieldErrors": {
      "dob": ["Date of birth is required"]
    }
  }
}

500 Internal Server Error

Server error during calculation

{
  "error": "Failed to calculate age",
  "details": "Error message"
}

Rate Limits

  • 100 requests per minute per IP address
  • 1000 requests per hour per IP address
  • 10,000 requests per day per IP address
  • Bulk CSV limited to 1000 rows per request

For higher limits, please contact us for enterprise access.

Code Examples

JavaScript/Node.js

const response = await fetch('https://agecalculator.pro/api/age?' + 
  new URLSearchParams({
    dob: '2000-01-15',
    asof: '2025-09-01',
    leap_policy: 'us',
    tz: 'America/New_York'
  })
);

const data = await response.json();
console.log(`Age: ${data.years} years, ${data.months} months, ${data.days} days`);

Python

import requests

params = {
    'dob': '2000-01-15',
    'asof': '2025-09-01',
    'leap_policy': 'us',
    'tz': 'America/New_York'
}

response = requests.get('https://agecalculator.pro/api/age', params=params)
data = response.json()

print(f"Age: {data['years']} years, {data['months']} months, {data['days']} days")

© 2025 Chronological Age Calculator API. Free for reasonable use.