# Menstrual Cycle Calculator API

> Menstrual Cycle Calculator is a period tracker API that predicts future menstrual cycles, fertile windows, and ovulation dates from the last period date and the average cycle and period length.

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

## Overview

Provides current cycle status, PMS timing, and comprehensive period tracking information, perfect for women's health apps and cycle monitoring 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/menstrualcycle?last_period=2024-01-01&cycle_length=28&period_length=5&cycles=3" \
  -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` | number | No | Average cycle length in days (18-60; decimals such as 29.5 are rounded to the nearest whole day). default 28. range 18-60 |
| `period_length` | integer | No | Average period duration in days. default 5. range 2-10 |
| `cycles` | integer | No | Number of future cycles to calculate. default 3. range 1-12 |

## Response fields

- `last_period_date` — string · First day of last menstrual period
- `cycle_length` — number · Average menstrual cycle length in days
- `period_length` — number · Average menstrual period duration in days
- `cycles_calculated` — number · Total number of cycles calculated
  - `cycles.0.cycle_number` — number · Sequential number of the cycle
  - `cycles.0.period` — object · Start, end and length of the period for this cycle
    - `cycles.0.period.start_date` — string · Start date of menstrual period
    - `cycles.0.period.end_date` — string · End date of menstrual period
    - `cycles.0.period.duration_days` — number · Duration of period in days
  - `cycles.0.ovulation` — object · Estimated ovulation date and which day of the cycle it falls on
    - `cycles.0.ovulation.date` — string · Predicted ovulation date in cycle
    - `cycles.0.ovulation.day_of_cycle` — number · Day of cycle when ovulation occurs
  - `cycles.0.fertile_window` — object · Range of days conception is possible in this cycle
    - `cycles.0.fertile_window.start_date` — string · Start of fertile window for conception
    - `cycles.0.fertile_window.end_date` — string · End of fertile window for conception
    - `cycles.0.fertile_window.duration_days` — number · Duration of fertile window in days
  - `cycles.0.pms_phase` — object · Range of days premenstrual symptoms are expected
    - `cycles.0.pms_phase.start_date` — string · Start date of PMS phase · (premium)
    - `cycles.0.pms_phase.end_date` — string · End date of PMS phase · (premium)
  - `cycles.0.cycle_phases` — object · Detailed breakdown of menstrual cycle phases · (premium)
    - `cycles.0.cycle_phases.menstrual` — object · The bleeding phase, with its dates · (premium)
      - `cycles.0.cycle_phases.menstrual.start` — string · Start date of menstrual phase · (premium)
      - `cycles.0.cycle_phases.menstrual.end` — string · End date of menstrual phase · (premium)
      - `cycles.0.cycle_phases.menstrual.description` — string · Description of menstrual phase · (premium)
    - `cycles.0.cycle_phases.follicular` — object · From the end of the period to ovulation · (premium)
      - `cycles.0.cycle_phases.follicular.start` — string · Start date of follicular phase; null when the period reaches the estimated ovulation, so there is no distinct follicular phase · (premium)
      - `cycles.0.cycle_phases.follicular.end` — string · End date of follicular phase; null when there is no distinct follicular phase · (premium)
      - `cycles.0.cycle_phases.follicular.description` — string · Description of follicular phase · (premium)
    - `cycles.0.cycle_phases.ovulation` — object · The day the egg is released · (premium)
      - `cycles.0.cycle_phases.ovulation.date` — string · Ovulation date within cycle · (premium)
      - `cycles.0.cycle_phases.ovulation.description` — string · Description of ovulation phase · (premium)
    - `cycles.0.cycle_phases.luteal` — object · From ovulation to the start of the next period · (premium)
      - `cycles.0.cycle_phases.luteal.start` — string · Start date of luteal phase · (premium)
      - `cycles.0.cycle_phases.luteal.end` — string · End date of luteal phase · (premium)
      - `cycles.0.cycle_phases.luteal.description` — string · Description of luteal phase · (premium)
  - `cycles.0.status` — string · Status of cycle relative to current date · (premium)
  - `cycles.0.days_until` — object · Days until cycle phase occurs · (premium)
  - `cycles.0.days_ago` — number · Days since cycle phase occurred · (premium)
- `current_status` — object · Which phase today falls in and when the next period is due
  - `current_status.phase` — string · Current phase name: Menstruation, Follicular Phase, Fertile Window, PMS Phase, Luteal Phase, or Before Cycle Start when last_period is in the future · (premium)
  - `current_status.description` — string · Description of current cycle phase · (premium)
  - `current_status.next_period` — object · Date of next expected menstrual period · (premium)
  - `current_status.days_until_next_period` — object · Days until next menstrual period starts · (premium)
- `averages` — object · Average cycle length, period duration and gap between periods
  - `averages.cycle_length` — number · Average menstrual cycle length across periods · (premium)
  - `averages.period_duration` — number · Average menstrual period duration across cycles · (premium)
  - `averages.days_between_periods` — number · Average days between menstrual period starts · (premium)
- `disclaimer` — string · Legal disclaimer about calculation accuracy

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "last_period_date": "2024-01-01",
    "cycle_length": 28,
    "period_length": 5,
    "cycles_calculated": 3,
    "cycles": [
      {
        "cycle_number": 1,
        "period": {
          "start_date": "2024-01-01",
          "end_date": "2024-01-05",
          "duration_days": 5
        },
        "ovulation": {
          "date": "2024-01-15",
          "day_of_cycle": 14
        },
        "fertile_window": {
          "start_date": "2024-01-10",
          "end_date": "2024-01-15",
          "duration_days": 6
        },
        "pms_phase": {
          "start_date": "2023-12-21",
          "end_date": "2023-12-31"
        },
        "cycle_phases": {
          "menstrual": {
            "start": "2024-01-01",
            "end": "2024-01-05",
            "description": "Menstruation"
          },
          "follicular": {
            "start": "2024-01-06",
            "end": "2024-01-14",
            "description": "Follicular phase - preparing for ovulation"
          },
          "ovulation": {
            "date": "2024-01-15",
            "description": "Ovulation - most fertile day"
          },
          "luteal": {
            "start": "2024-01-16",
            "end": "2024-01-28",
            "description": "Luteal phase - preparing for next period"
          }
        },
        "status": "past",
        "days_until": null,
        "days_ago": 715
      },
      {
        "cycle_number": 2,
        "period": {
          "start_date": "2024-01-29",
          "end_date": "2024-02-02",
          "duration_days": 5
        },
        "ovulation": {
          "date": "2024-02-12",
          "day_of_cycle": 14
        },
        "fertile_window": {
          "start_date": "2024-02-07",
          "end_date": "2024-02-12",
          "duration_days": 6
        },
        "pms_phase": {
          "start_date": "2024-01-18",
          "end_date": "2024-01-28"
        },
        "cycle_phases": {
          "menstrual": {
            "start": "2024-01-29",
            "end": "2024-02-02",
            "description": "Menstruation"
          },
          "follicular": {
            "start": "2024-02-03",
            "end": "2024-02-11",
            "description": "Follicular phase - preparing for ovulation"
          },
          "ovulation": {
            "date": "2024-02-12",
            "description": "Ovulation - most fertile day"
          },
          "luteal": {
            "start": "2024-02-13",
            "end": "2024-02-25",
            "description": "Luteal phase - preparing for next period"
          }
        },
        "status": "past",
        "days_until": null,
        "days_ago": 687
      },
      {
        "cycle_number": 3,
        "period": {
          "start_date": "2024-02-26",
          "end_date": "2024-03-01",
          "duration_days": 5
        },
        "ovulation": {
          "date": "2024-03-11",
          "day_of_cycle": 14
        },
        "fertile_window": {
          "start_date": "2024-03-06",
          "end_date": "2024-03-11",
          "duration_days": 6
        },
        "pms_phase": {
          "start_date": "2024-02-15",
          "end_date": "2024-02-25"
        },
        "cycle_phases": {
          "menstrual": {
            "start": "2024-02-26",
            "end": "2024-03-01",
            "description": "Menstruation"
          },
          "follicular": {
            "start": "2024-03-02",
            "end": "2024-03-10",
            "description": "Follicular phase - preparing for ovulation"
          },
          "ovulation": {
            "date": "2024-03-11",
            "description": "Ovulation - most fertile day"
          },
          "luteal": {
            "start": "2024-03-12",
            "end": "2024-03-24",
            "description": "Luteal phase - preparing for next period"
          }
        },
        "status": "past",
        "days_until": null,
        "days_ago": 659
      }
    ],
    "current_status": {
      "phase": "Unknown",
      "description": "",
      "next_period": null,
      "days_until_next_period": null
    },
    "averages": {
      "cycle_length": 28,
      "period_duration": 5,
      "days_between_periods": 28
    },
    "disclaimer": "This calculator provides estimates only. Actual cycles may vary. Consult a healthcare provider for medical advice."
  }
}
```

## Use cases

- **Period Tracking** — Build period tracking applications with accurate cycle predictions, period start dates, and phase identification
- **Menstrual Period Predictor** — Predict future menstrual cycles with customizable cycle length and period duration for planning and preparation
- **Health Monitoring** — Create women's health monitoring tools with detailed cycle phase information including follicular, ovulation, and luteal phases
- **Health Insights** — Provide cycle-based health insights and symptom tracking aligned with menstrual phases for better health awareness

## SDKs

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

## More

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