Calculate Age - Secure API

This is a secure 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 along with a KEY and SECRET, and provide the calculated age. You will have to login to the portal to get the secret

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

API Detail


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

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

Authentication Header Parameters
key:9f9462c0-4989-1254-b5d5-m9501c273e65
secret: Click here to login/register to get your secret key.

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

Header Parameters
dob Mandatory


Postman Implementation

Calculate Age - Secure API

Sample Response

Example DOB: 1991-07-01

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