Skip to content
ToolsOnDuty - free online tools
Browse documentation

Reference / Health

Health API

2 endpoints for health workflows. Every call requires bearer authentication and uses the standard ToolsOnDuty response envelope.

Try it

Runs a real request from your browser to your own ToolsOnDuty account. Your key is only kept in this page and is never stored.

POST/v1/health/due-date1 credit / call

Pregnancy due-date estimate

Estimate due date and trimester milestones from the last menstrual period and cycle length.

ParameterTypeRequiredDescription
lastMenstrualPeriodstringYesFirst day of the last menstrual period, YYYY-MM-DD.
cycleLengthnumberNoTypical cycle length in days. Default: 28.

Request

curl -X POST https://toolsonduty.com/api/v1/health/due-date \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"lastMenstrualPeriod":"2026-01-01","cycleLength":28}'

Response

{
  "ok": true,
  "data": {
    "estimatedDueDate": "2026-10-08"
  }
}
POST/v1/health/ovulation1 credit / call

Ovulation calculator

Estimate ovulation, fertile-window and next-period dates from the first day of the last period and average cycle length.

ParameterTypeRequiredDescription
lastPeriodDatestringYesFirst day of the last period in YYYY-MM-DD format.
cycleLengthnumberNoAverage cycle length in days (21-45). Default: 28.

Request

curl -X POST https://toolsonduty.com/api/v1/health/ovulation \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"lastPeriodDate":"2026-10-01","cycleLength":28}'

Response

{
  "ok": true,
  "data": {
    "ovulationDate": "2026-10-15",
    "fertileWindowStart": "2026-10-10"
  }
}