Calculate Age - Public API

This is a public API to calculate the age in Year, month, and day format by providing a valid date in YYYY-MM-DD format. This API accept the "dob" header parameter and provide the calculated age.

  • Method
    GET
  • Type
    Restful
  • Language
    PHP
  • Skill level
    beginner
Calculate Age - Public API
Watch the video to understand the implementation.

API Detail


API Detail
API URL:https://outsystemsdeveloperschool.com/api/calculate-age-public
METHOD:GET
AUTHENTICATION:NO AUTH

Pass below parameter/s in the header, use exact parameter name

Header Parameters
dob Mandatory


Postman Implementation

Calculate Age - Public API

Sample Response

Example DOB: 1991-07-01

Response: {"data":"33 years 0 months 5 day(s)"}