# Ovulation Calculator API

> Ovulation Calculator estimates ovulation dates, fertile windows, and provides detailed cycle phase information based on menstrual cycle data.

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

## Overview

Ovulation Calculator estimates when ovulation is likely in the current cycle from two inputs. Works as an ovulation date and cycle calculator: send the first day of the last period and the average cycle length. It uses the common calendar method, counting back from the expected start of the next period, and returns dates in YYYY-MM-DD format that drop straight into a fertility calendar.

Fertility tracking and cycle tracking apps, women's health content sites and family planning tools use it to show an estimated ovulation date, the fertile window and the days the calculator marks as most fertile, without maintaining the date arithmetic themselves.

The Free plan returns the estimated ovulation date with the inputs echoed back and a disclaimer. Paid plans add the fertile window and most fertile days, a day-by-day fertile days list with levels, the expected next period, the length of each cycle phase, and a current status showing where today falls in the cycle and how many days remain until ovulation and the next period. All results are estimates, not medical advice.

## 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/ovulationcalculator?last_period=2024-01-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; DD.MM.YYYY and MM/DD/YYYY also work). date |
| `cycle_length` | number | No | Average menstrual cycle length in days (18-60; decimals such as 29.5 are rounded to the nearest whole day). default 28. range 18-60 |

## Response fields

- `last_period` — string · The first day of the last menstrual period provided
- `cycle_length` — number · The average menstrual cycle length in days
- `ovulation` — object · Estimated ovulation date and how many days into the cycle it falls
  - `ovulation.date` — string · Calculated ovulation date in YYYY-MM-DD format
  - `ovulation.days_from_last_period` — number · Number of days from last period to ovulation · (premium)
- `fertile_window` — object · Range of days conception is possible, with its length
  - `fertile_window.start` — string · Start date of the fertile window period · (premium)
  - `fertile_window.end` — string · End date of the fertile window period · (premium)
  - `fertile_window.duration_days` — number · Total duration of fertile window in days · (premium)
- `most_fertile_days` — object · The narrower range with the highest chance of conception
  - `most_fertile_days.start` — string · Start date of the most fertile days period · (premium)
  - `most_fertile_days.end` — string · End date of the most fertile days period · (premium)
  - `most_fertile_days.duration_days` — number · Duration of the most fertile days in days · (premium)
  - `fertile_days.0.date` — string · Date of the fertile day in YYYY-MM-DD format · (premium)
  - `fertile_days.0.day_relative_to_ovulation` — number · Days relative to ovulation date (negative before, positive after) · (premium)
  - `fertile_days.0.fertility_level` — string · Fertility level classification: low, medium, high · (premium)
  - `fertile_days.0.description` — string · Human-readable description of fertility status for day · (premium)
- `next_period` — object · Estimated start of the next period and how many days away it is
  - `next_period.date` — string · Estimated date of the next menstrual period · (premium)
  - `next_period.days_from_last_period` — number · Days from last period to expected next period · (premium)
- `cycle_phases` — object · The phases of the cycle with their length and what happens in each
  - `cycle_phases.follicular_phase` — object · From the first day of the period to ovulation
    - `cycle_phases.follicular_phase.duration_days` — number · Duration of follicular phase in days · (premium)
    - `cycle_phases.follicular_phase.description` — string · Description of the follicular phase · (premium)
  - `cycle_phases.ovulation` — object · The day the egg is released
    - `cycle_phases.ovulation.duration_days` — number · Duration of ovulation phase in days · (premium)
    - `cycle_phases.ovulation.description` — string · Description of the ovulation phase · (premium)
  - `cycle_phases.luteal_phase` — object · From ovulation to the start of the next period
    - `cycle_phases.luteal_phase.duration_days` — number · Duration of luteal phase in days · (premium)
    - `cycle_phases.luteal_phase.description` — string · Description of the luteal phase · (premium)
- `current_status` — object · Where today falls in the cycle, and whether it is a fertile day
  - `current_status.current_phase` — string · Current phase relative to today: Menstruation, Follicular Phase, Fertile Window, Luteal Phase, or Before Cycle Start when last_period is in the future · (premium)
  - `current_status.is_fertile` — boolean · Whether the user is currently in the fertile window · (premium)
  - `current_status.days_until_ovulation` — number · Days until ovulation from today (negative if past) · (premium)
  - `current_status.days_until_next_period` — number · Days until next period from today (negative if past) · (premium)
- `disclaimer` — string · Medical disclaimer regarding calculator accuracy

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "last_period": "2024-01-01",
    "cycle_length": 28,
    "ovulation": {
      "date": "2024-01-15",
      "days_from_last_period": 14
    },
    "fertile_window": {
      "start": "2024-01-10",
      "end": "2024-01-15",
      "duration_days": 6
    },
    "most_fertile_days": {
      "start": "2024-01-13",
      "end": "2024-01-15",
      "duration_days": 3
    },
    "fertile_days": [
      {
        "date": "2024-01-10",
        "day_relative_to_ovulation": -5,
        "fertility_level": "medium",
        "description": "Fertile"
      },
      {
        "date": "2024-01-11",
        "day_relative_to_ovulation": -4,
        "fertility_level": "medium",
        "description": "Fertile"
      },
      {
        "date": "2024-01-12",
        "day_relative_to_ovulation": -3,
        "fertility_level": "medium",
        "description": "Fertile"
      },
      {
        "date": "2024-01-13",
        "day_relative_to_ovulation": -2,
        "fertility_level": "high",
        "description": "Most fertile"
      },
      {
        "date": "2024-01-14",
        "day_relative_to_ovulation": -1,
        "fertility_level": "high",
        "description": "Most fertile"
      },
      {
        "date": "2024-01-15",
        "day_relative_to_ovulation": 0,
        "fertility_level": "high",
        "description": "Most fertile"
      }
    ],
    "next_period": {
      "date": "2024-01-29",
      "days_from_last_period": 28
    },
    "cycle_phases": {
      "follicular_phase": {
        "duration_days": 14,
        "description": "From first day of period to ovulation"
      },
      "ovulation": {
        "duration_days": 1,
        "description": "Egg is released from ovary"
      },
      "luteal_phase": {
        "duration_days": 14,
        "description": "From ovulation to next period"
      }
    },
    "current_status": {
      "current_phase": "Menstruation",
      "is_fertile": false,
      "days_until_ovulation": -701,
      "days_until_next_period": -687
    },
    "disclaimer": "This calculator provides estimates only. Actual ovulation may vary. Consult a healthcare provider for medical advice."
  }
}
```

## Use cases

- **Fertility Tracking** — Build fertility tracking applications with accurate ovulation predictions based on cycle length and last period date
- **Conception Planning** — Calculate conception probability windows and most fertile days to help users plan or prevent pregnancy
- **Menstrual Health** — Create menstrual health apps with ovulation tracking, fertile window identification, and cycle insights
- **Family Planning** — Provide family planning tools with science-based ovulation calculations and fertility awareness features

## SDKs

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

## More

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