---
title: "Calculate Compatibility"
method: POST
path: "/api/v1/vedic/compatibility"
tags: ["Vedic"]
---

# Calculate Compatibility

`POST /api/v1/vedic/compatibility`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v1/vedic/compatibility`
- Auth: none declared

Calculate Ashtakoota (8-point) compatibility.
Returns score out of 36.

## Request body

- CompatibilityRequest
  - `person1_moon_nakshatra` integer, required: Person 1 Moon Nakshatra ID (1-27)
  - `person1_moon_sign` integer, required: Person 1 Moon Sign ID (1-12)
  - `person1_moon_degree` number, nullable: Optional Person 1 Moon degree within sign (0-30)
  - `person2_moon_nakshatra` integer, required: Person 2 Moon Nakshatra ID (1-27)
  - `person2_moon_sign` integer, required: Person 2 Moon Sign ID (1-12)
  - `person2_moon_degree` number, nullable: Optional Person 2 Moon degree within sign (0-30)

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
