# Biorhythm API Reference

> Biorhythm API for entertainment and reflection, with 10 model cycle types across 3 primary (physical, emotional, intellectual), 4 secondary (intuitive, aesthetic, awareness, spiritual), and 3 composite (passion, mastery, wisdom). Critical-day detection with severity classification, 90-day forecasts with best and worst days, two-person compatibility scoring, phase tracking for dashboards, and daily readings that hold all day for push notifications. Localized into every language this API ships, deterministic results, and editorial-grade interpretations. One key covers every RoxyAPI domain, with Remote MCP and typed SDKs.

## Get biorhythm reading - Complete cycle analysis for any date

`POST https://roxyapi.com/api/v2/biorhythm/reading`. MCP tool `post_biorhythm_reading`.

Calculate a complete biorhythm reading for a given birth date and target date. Returns all 10 cycle values (physical, emotional, intellectual, intuitive, aesthetic, awareness, spiritual, passion, mastery, wisdom), phase detection with 8 distinct states, energy rating (1-10), overall phase assessment, editorial-grade interpretation, actionable advice, and critical day alerts. Perfect for wellness apps, dating platforms, productivity tools, and AI chatbot integrations that need structured biorhythm data.

### Request

- `lang` (string enum): Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English.
- `birthDate` (string (date), required): Birth date of the person in YYYY-MM-DD format. This is the anchor for all biorhythm cycle calculations.
- `targetDate` (string (date)): Date to calculate the reading for in YYYY-MM-DD format. Defaults to today (UTC) if omitted.

### Response

- `birthDate` (string, required): Birth date used for this calculation (YYYY-MM-DD).
- `targetDate` (string, required): Date this reading is for (YYYY-MM-DD).
- `daysSinceBirth` (number, required): Total days alive from birth date to target date. This is the basis for all cycle calculations.
- `cycles` (object, required): All 10 biorhythm cycle readings. Keys: physical, emotional, intellectual, intuitive, aesthetic, awareness, spiritual, passion, mastery, wisdom.
- `energyRating` (number, required): Overall energy score from 1 (deep recovery) to 10 (peak performance), derived from the three primary cycle positions.
- `overallPhase` (string enum, required): Summary phase across every cycle for the day. One of: high_energy, mixed, recovery, critical.
- `interpretation` (string, required): Editorial 3-5 sentence reading combining all cycle states into a coherent daily assessment.
- `advice` (string, required): Actionable 1-2 sentence guidance for the day based on the combined cycle analysis.
- `criticalAlerts` (array of object, required): Critical day alerts. Present only when one or more primary cycles are at or near zero crossing.
- `criticalAlerts[].cycle` (string enum, required): Which cycle is at or near zero crossing.
- `criticalAlerts[].type` (string enum, required): Alert type. One of: zero_crossing. Raised once for the whole critical band, when the cycle sits within 9 points of zero in either direction.
- `criticalAlerts[].direction` (string enum, required): Whether the cycle is rising through zero (ascending) or falling through zero (descending).
- `criticalAlerts[].advisory` (string, required): Specific advisory text for this critical alert.

### Example request

```bash
curl -X POST "https://roxyapi.com/api/v2/biorhythm/reading" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"birthDate":"1990-07-15"}'
```

### Example response

```json
{
  "birthDate": "1990-07-15",
  "targetDate": "2026-04-10",
  "daysSinceBirth": 13049,
  "cycles": {
    "physical": {
      "value": -14,
      "rawValue": -0.1362,
      "phase": "falling",
      "phaseLabel": "Falling",
      "dayInCycle": 13,
      "daysUntilPeak": 17,
      "daysUntilTrough": 5,
      "daysUntilCritical": 11,
      "trend": "falling",
      "interpretation": "Your physical energy is declining. Endurance and strength are decreasing, and fatigue may set in more quickly than usual. This is a natural part of the cycle."
    }
  },
  "energyRating": 7,
  "overallPhase": "high_energy",
  "interpretation": "Your physical energy is strong and building. Endurance and coordination are above average. Good conditions for exercise, physical projects, and activities requiring sustained effort. Your emotional energy is also elevated, supporting your overall capacity.",
  "advice": "Tackle physically demanding tasks while your energy remains elevated.",
  "criticalAlerts": [
    {
      "cycle": "physical",
      "type": "zero_crossing",
      "direction": "ascending",
      "advisory": "physical cycle crosses zero while ascending. Transition from recovery to active phase."
    }
  ]
}
```

## Get biorhythm forecast - Multi-day cycle predictions with best and worst days

`POST https://roxyapi.com/api/v2/biorhythm/forecast`. MCP tool `post_biorhythm_forecast`.

Generate a biorhythm forecast for a date range up to 90 days. Returns daily cycle values for physical, emotional, intellectual, and intuitive cycles, daily energy ratings, critical day identification, and a summary with best day, worst day, average energy, and period-level guidance. Ideal for wellness apps, productivity planners, scheduling tools, and calendar integrations that need forward-looking biorhythm data.

### Request

- `lang` (string enum): Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English.
- `birthDate` (string (date), required): Birth date of the person in YYYY-MM-DD format.
- `startDate` (string (date)): Start date of the forecast range in YYYY-MM-DD format. Defaults to today (UTC).
- `endDate` (string (date)): End date of the forecast range in YYYY-MM-DD format. Defaults to startDate + 30 days. Maximum range: 90 days.

### Response

- `birthDate` (string, required): Birth date used for this calculation.
- `startDate` (string, required): First day of the forecast range.
- `endDate` (string, required): Last day of the forecast range.
- `totalDays` (number, required): Number of days in the forecast range.
- `summary` (object, required): 
- `summary.bestDay` (string, required): Date with the highest average primary cycle values in the range. Best day for demanding activities.
- `summary.worstDay` (string, required): Date with the lowest average primary cycle values in the range. Best scheduled as a rest day.
- `summary.criticalDayCount` (number, required): Total number of days where at least one primary cycle crosses zero in the range.
- `summary.averageEnergy` (number, required): Average energy rating (1-10) across the entire forecast period.
- `summary.periodAdvice` (string, required): Overview guidance for the entire forecast period based on average energy and cycle patterns.
- `days` (array of object, required): Array of daily readings, one per day in the forecast range.
- `days[].date` (string, required): Date of this daily reading (YYYY-MM-DD).
- `days[].daysSinceBirth` (number, required): Days from birth date to this date.
- `days[].physical` (number, required): Physical cycle value (-100 to 100).
- `days[].emotional` (number, required): Emotional cycle value (-100 to 100).
- `days[].intellectual` (number, required): Intellectual cycle value (-100 to 100).
- `days[].intuitive` (number, required): Intuitive cycle value (-100 to 100).
- `days[].energyRating` (number, required): Energy rating for this day (1-10).
- `days[].isCritical` (boolean, required): True if any primary cycle crosses zero on this day.
- `days[].criticalCycles` (array of string, required): Which primary cycles are critical on this day. Empty array if none.

### Example request

```bash
curl -X POST "https://roxyapi.com/api/v2/biorhythm/forecast" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"birthDate":"1990-07-15"}'
```

### Example response

```json
{
  "birthDate": "1990-07-15",
  "startDate": "2026-04-01",
  "endDate": "2026-04-30",
  "totalDays": 30,
  "summary": {
    "bestDay": "2026-04-14",
    "worstDay": "2026-04-07",
    "criticalDayCount": 4,
    "averageEnergy": 6,
    "periodAdvice": "This period has a mix of energy levels. Plan demanding work around the best days and schedule lighter activity during the troughs."
  },
  "days": [
    {
      "date": "2026-04-01",
      "daysSinceBirth": 13040,
      "physical": 45,
      "emotional": -30,
      "intellectual": 72,
      "intuitive": 18,
      "energyRating": 6,
      "isCritical": false,
      "criticalCycles": []
    }
  ]
}
```

## Find critical days - Zero crossing detection for any date range

`POST https://roxyapi.com/api/v2/biorhythm/critical-days`. MCP tool `post_biorhythm_critical_days`.

Find all critical days (zero crossings) within a date range up to 180 days. Returns each critical day with cycle name, period, direction (ascending or descending), severity (single, double, or triple), and advisory text. Highlights rare double critical days where two primary cycles cross zero simultaneously and extremely rare triple critical days where all three primary cycles cross zero on the same date. Ideal for calendar integrations, push notification systems, alert engines, and wellness scheduling tools.

### Request

- `lang` (string enum): Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English.
- `birthDate` (string (date), required): Birth date of the person in YYYY-MM-DD format.
- `startDate` (string (date)): Start date of the search range in YYYY-MM-DD format. Defaults to today (UTC).
- `endDate` (string (date)): End date of the search range in YYYY-MM-DD format. Defaults to startDate + 90 days. Maximum range: 180 days.

### Response

- `birthDate` (string, required): Birth date used for this calculation.
- `startDate` (string, required): Start of the search range.
- `endDate` (string, required): End of the search range.
- `totalCriticalDays` (number, required): Total count of critical day events in the range. A double critical day counts as two events.
- `criticalDays` (array of object, required): All critical day events in the range, sorted by date.
- `criticalDays[].date` (string, required): Date of the zero crossing (YYYY-MM-DD).
- `criticalDays[].cycle` (string enum, required): Which primary cycle crosses zero on this date. One of: physical, emotional, intellectual. Only the three primary cycles are scanned; the secondary and composite cycles are not.
- `criticalDays[].period` (number, required): Cycle period in days.
- `criticalDays[].direction` (string enum, required): Whether the cycle is rising through zero (ascending) or falling through zero (descending).
- `criticalDays[].severity` (string enum, required): How many primary cycles are critical on this date. One of: single, double, triple.
- `criticalDays[].advisory` (string, required): Advisory text explaining the significance of this critical day and recommended precautions.
- `doubleCriticalDays` (array of string, required): Dates where 2 or more primary cycles cross zero simultaneously. These are particularly significant days requiring extra caution.
- `tripleCriticalDay` (string,null, required): Date where all 3 primary cycles cross zero simultaneously. Extremely rare event. Null if none found in range.

### Example request

```bash
curl -X POST "https://roxyapi.com/api/v2/biorhythm/critical-days" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"birthDate":"1990-07-15"}'
```

### Example response

```json
{
  "birthDate": "1990-07-15",
  "startDate": "2026-04-01",
  "endDate": "2026-06-30",
  "totalCriticalDays": 12,
  "criticalDays": [
    {
      "date": "2026-04-03",
      "cycle": "physical",
      "period": 23,
      "direction": "ascending",
      "severity": "single",
      "advisory": "Physical cycle crosses zero while descending. Transition from active to recovery phase."
    }
  ],
  "doubleCriticalDays": [
    "2026-05-12"
  ],
  "tripleCriticalDay": null
}
```

## Calculate compatibility - Biorhythm alignment between two people

`POST https://roxyapi.com/api/v2/biorhythm/compatibility`. MCP tool `post_biorhythm_compatibility`.

Calculate biorhythm compatibility between two people by overlaying their cycle profiles on a target date. Returns per-cycle alignment scores (0-100) for physical, emotional, and intellectual cycles, an overall compatibility score, relationship rating, strengths, challenges, practical advice, and a daily sync snapshot showing the absolute difference in each primary cycle. Perfect for dating apps, relationship platforms, team-building tools, and couples coaching applications.

### Request

- `lang` (string enum): Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English.
- `person1` (object, required): 
- `person1.birthDate` (string (date), required): Birth date of person 1 in YYYY-MM-DD format.
- `person2` (object, required): 
- `person2.birthDate` (string (date), required): Birth date of person 2 in YYYY-MM-DD format.
- `targetDate` (string (date)): Date to evaluate compatibility on in YYYY-MM-DD format. Defaults to today (UTC). Compatibility varies by day since biorhythm cycles are continuous.

### Response

- `person1` (object, required): 
- `person1.birthDate` (string, required): Birth date of person 1.
- `person2` (object, required): 
- `person2.birthDate` (string, required): Birth date of person 2.
- `targetDate` (string, required): Date this compatibility was calculated for.
- `overallScore` (number, required): Overall compatibility score from 0 (fully opposed) to 100 (perfectly synchronized).
- `rating` (string, required): Compatibility rating label. One of: Highly Aligned, Well Aligned, Moderately Aligned, Misaligned, Opposed.
- `cycles` (object, required): Per-cycle compatibility analysis for physical, emotional, and intellectual cycles.
- `strengths` (array of string, required): Relationship strengths based on the compatibility profile.
- `challenges` (array of string, required): Potential relationship challenges to be aware of.
- `advice` (string, required): Practical relationship guidance based on the combined cycle analysis.
- `dailySync` (object, required): 
- `dailySync.physicalDiff` (number, required): Absolute difference in physical cycle values (0-200). Lower = more aligned.
- `dailySync.emotionalDiff` (number, required): Absolute difference in emotional cycle values (0-200). Lower = more aligned.
- `dailySync.intellectualDiff` (number, required): Absolute difference in intellectual cycle values (0-200). Lower = more aligned.

### Example request

```bash
curl -X POST "https://roxyapi.com/api/v2/biorhythm/compatibility" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"person1":{"birthDate":"1990-07-15"},"person2":{"birthDate":"1992-03-22"}}'
```

### Example response

```json
{
  "person1": {
    "birthDate": "1990-07-15"
  },
  "person2": {
    "birthDate": "1992-03-22"
  },
  "targetDate": "2026-04-10",
  "overallScore": 72,
  "rating": "Well Aligned",
  "cycles": {
    "physical": {
      "person1Value": -14,
      "person2Value": -100,
      "difference": 86,
      "alignment": 57,
      "phase": "complementary",
      "description": "Physical energy levels complement each other well. Minor differences in pace create healthy balance."
    }
  },
  "strengths": [
    "Good overall energy match with healthy variation",
    "Complementary differences prevent stagnation"
  ],
  "challenges": [
    "One cycle may be out of sync, requiring awareness",
    "Minor timing differences in energy peaks and valleys"
  ],
  "advice": "Your cycles are well matched today. Lean into the aligned areas and be patient with the one dimension that may differ. Small adjustments keep your connection smooth.",
  "dailySync": {
    "physicalDiff": 19,
    "emotionalDiff": 45,
    "intellectualDiff": 12
  }
}
```

## Get phase info - Lightweight cycle status for dashboards and widgets

`POST https://roxyapi.com/api/v2/biorhythm/phases`. MCP tool `post_biorhythm_phases`.

Get current phase information for all 10 biorhythm cycles without the full interpretation payload. Returns value, phase name, phase label, day position within cycle, cycle period, days until next critical crossing, and short-term trend for each cycle. Includes a compact summary string. Designed as a lightweight endpoint for dashboards, widgets, status bars, and quick-check interfaces that need biorhythm phase data without editorial text.

### Request

- `lang` (string enum): Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English.
- `birthDate` (string (date), required): Birth date of the person in YYYY-MM-DD format.
- `targetDate` (string (date)): Date to get phase information for in YYYY-MM-DD format. Defaults to today (UTC).

### Response

- `birthDate` (string, required): Birth date used for this calculation.
- `targetDate` (string, required): Date this phase info is for.
- `daysSinceBirth` (number, required): Total days alive from birth date to target date.
- `phases` (object, required): Phase information for all 10 cycles keyed by cycle ID.
- `summary` (string, required): Quick overview string summarizing the current state of all cycles.

### Example request

```bash
curl -X POST "https://roxyapi.com/api/v2/biorhythm/phases" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"birthDate":"1990-07-15"}'
```

### Example response

```json
{
  "birthDate": "1990-07-15",
  "targetDate": "2026-04-10",
  "daysSinceBirth": 13049,
  "phases": {
    "physical": {
      "value": -14,
      "phase": "falling",
      "phaseLabel": "Falling",
      "dayInCycle": 13,
      "totalDays": 23,
      "daysUntilCritical": 11,
      "trend": "falling"
    }
  },
  "summary": "3 cycles rising, 2 at peak, 1 critical"
}
```

## Get daily biorhythm - Seeded reading for daily check-in features

`POST https://roxyapi.com/api/v2/biorhythm/daily`. MCP tool `post_biorhythm_daily`.

Get a daily biorhythm reading with seeded randomness for consistent "biorhythm of the day" features. Same seed and same date always produce the same reading, perfect for daily push notifications, morning briefings, and wellness app check-ins. Returns energy rating, overall phase, a spotlight on one featured cycle, quick-read values for all three primary cycles, a daily message, and actionable advice. The spotlight cycle is deterministically selected by the seed, creating variety across users while maintaining consistency for each individual.

### Request

- `lang` (string enum): Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English.
- `seed` (string): Optional seed for reproducible readings. Same seed + same date = same reading every time. Pass any unique identifier (userId, email hash, session token) to give each user their own reading for the day. Without a seed every caller receives the same shared reading of the day.
- `date` (string (date)): Date for the reading in YYYY-MM-DD format. Defaults to today (UTC). Useful for viewing past daily readings or pre-generating future ones.

### Response

- `date` (string, required): Date this daily reading is for (YYYY-MM-DD, UTC).
- `seed` (string, required): Computed seed used for this reading. Same seed always produces the same reading.
- `energyRating` (number, required): Overall energy score from 1 to 10.
- `overallPhase` (string enum, required): Summary phase across every cycle for the day. One of: high_energy, mixed, recovery, critical.
- `spotlight` (object, required): 
- `spotlight.cycle` (string enum, required): Which primary cycle is featured as the daily spotlight. One of: physical, emotional, intellectual.
- `spotlight.value` (number, required): Current value of the spotlight cycle (-100 to 100).
- `spotlight.phase` (string enum, required): Current phase of the spotlight cycle.
- `spotlight.message` (string, required): Personalized message about the spotlight cycle and what it means for today.
- `quickRead` (object, required): 
- `quickRead.physical` (number, required): Physical cycle value (-100 to 100).
- `quickRead.emotional` (number, required): Emotional cycle value (-100 to 100).
- `quickRead.intellectual` (number, required): Intellectual cycle value (-100 to 100).
- `dailyMessage` (string, required): Concise daily biorhythm message combining energy rating and spotlight cycle.
- `advice` (string, required): Actionable 1-2 sentence guidance for the day.

### Example request

```bash
curl -X POST "https://roxyapi.com/api/v2/biorhythm/daily" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"seed":"user123","date":"2026-03-06"}'
```

### Example response

```json
{
  "date": "2026-04-10",
  "seed": "user123-2026-04-10",
  "energyRating": 7,
  "overallPhase": "high_energy",
  "spotlight": {
    "cycle": "emotional",
    "value": 72,
    "phase": "high",
    "message": "Your emotional cycle is elevated and positive. Mood is stable and upbeat, and you feel naturally connected to others. Creative ideas come more easily and social interactions feel rewarding."
  },
  "quickRead": {
    "physical": 45,
    "emotional": 72,
    "intellectual": -30
  },
  "dailyMessage": "Your biorhythm for 2026-01-28: Energy rating 8/10 (High). Emotional cycle is high energy at 72%.",
  "advice": "Lean into collaborative projects and relationship building."
}
```
