# Due Date Calculator API

> Due Date Calculator estimates pregnancy due dates using either last menstrual period or conception date, providing comprehensive pregnancy timeline information.

**Endpoint:** `GET https://api.apiverve.com/v1/duedatecalculator`  
**Category:** Lifestyle  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/duedatecalculator

## Overview

Includes pregnancy milestones, percentage completion, and important dates like trimester transitions, perfect for pregnancy tracking and prenatal care applications.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/duedatecalculator?last_period=2026-06-01&cycle_length=28" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `last_period` | string | Yes | First day of last menstrual period (YYYY-MM-DD). date |
| `cycle_length` | integer | No | Average menstrual cycle length in days (default 28). The due date, conception date and milestones move by cycle_length minus 28 days (modified Naegele rule). default 28. range 20-45 |

## Response fields

- `calculation_method` — string · Method used for calculation: last_period or conception_date
- `last_period_date` — string · First day of last menstrual period in ISO format, echoed from the input
- `estimated_conception_date` — string · Estimated conception date calculated from last period · (premium)
- `due_date` — string · Estimated delivery date in ISO format
- `current_progress` — object · How far along the pregnancy is today, in days and weeks
  - `current_progress.days_pregnant` — number · Total number of days pregnant · (premium)
  - `current_progress.weeks_pregnant` — number · Number of complete weeks of pregnancy · (premium)
  - `current_progress.days_into_week` — number · Additional days beyond complete weeks · (premium)
  - `current_progress.formatted` — string · Human-readable pregnancy duration with weeks and days · (premium)
  - `current_progress.trimester` — number · Current trimester number: 1, 2, or 3 · (premium)
  - `current_progress.percentage_complete` — number · Pregnancy completion percentage relative to due date; capped at 100 once the pregnancy has ended · (premium)
- `time_until_due` — object · How long until the due date, with a formatted summary
  - `time_until_due.days` — number · Complete days remaining until due date · (premium)
  - `time_until_due.weeks` — number · Complete weeks remaining until due date · (premium)
  - `time_until_due.days_extra` — number · Additional days beyond complete weeks remaining · (premium)
  - `time_until_due.formatted` — string · Human-readable time remaining until delivery · (premium)
  - `time_until_due.is_overdue` — boolean · Whether pregnancy has passed the due date · (premium)
- `upcoming_milestones` — array · Array of upcoming pregnancy milestones and dates · (premium)
- `important_dates` — object · Key milestones: the end of each trimester and viability
  - `important_dates.end_first_trimester` — string · Estimated end date of first trimester · (premium)
  - `important_dates.end_second_trimester` — string · Estimated end date of second trimester · (premium)
  - `important_dates.full_term_begins` — string · Date when pregnancy reaches full term status · (premium)
- `disclaimer` — string · Medical disclaimer about estimated due dates

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "calculation_method": "last_period",
    "last_period_date": "2024-01-01",
    "estimated_conception_date": "2024-01-15",
    "due_date": "2024-10-07",
    "current_progress": {
      "days_pregnant": 715,
      "weeks_pregnant": 102,
      "days_into_week": 1,
      "formatted": "102 weeks, 1 days",
      "trimester": 3,
      "percentage_complete": 255.36
    },
    "time_until_due": {
      "days": 0,
      "weeks": 0,
      "days_extra": 0,
      "formatted": "Past due date",
      "is_overdue": true
    },
    "upcoming_milestones": [],
    "important_dates": {
      "end_first_trimester": "2024-04-01",
      "end_second_trimester": "2024-07-08",
      "full_term_begins": "2024-09-16"
    },
    "disclaimer": "This is an estimate only. Due dates can vary. Consult your healthcare provider for medical advice."
  }
}
```

## Use cases

- **Pregnancy Tracking** — Build pregnancy tracking applications with accurate due date calculations based on last menstrual period or conception date
- **Prenatal Care** — Calculate gestational age for prenatal care appointments, monitoring fetal development, and scheduling medical tests
- **Maternity Planning** — Create maternity planning tools with delivery date estimates, trimester breakdowns, and important date tracking
- **Milestone Tracking** — Provide pregnancy milestone information with week-by-week pregnancy timeline and key development stages

## SDKs

- **npm** — `npm install @apiverve/duedatecalculator` (https://www.npmjs.com/package/@apiverve/duedatecalculator)
- **NuGet** — `dotnet add package APIVerve.API.DueDateCalculator` (https://www.nuget.org/packages/APIVerve.API.DueDateCalculator)
- **Source** — https://github.com/apiverve/duedatecalculator-api

## More

- Full reference: https://docs.apiverve.com/ref/duedatecalculator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
