# Ashtakoot koots: names, maximum points and direction

> Eight koots, always in the same order, always summing to a maximum of 36. Two of them care which person is the groom - which is why the API tells you how it slotted the couple.

Source: https://astronode.dev/reference/ashtakoot-koots · Updated: 2026-12-01

Ashtakoot (Gun Milan) compares two Moon positions on eight factors and adds up the points. The API returns `data.total` (`score`, `max`, `bucket`), a `koots` array of eight entries in the order below, `match_percentage`, a Manglik cross-check and `slotting`.

Each koot carries both `initial_score` (the table lookup) and `score` (after the classical cancellation rules), so you can show raw and adjusted values side by side.

## The eight koots

| Order | name | max | Compares | Groom/bride order matters |
| --- | --- | --- | --- | --- |
| 1 | `varna` | 1 | 4 classes | yes |
| 2 | `vashya` | 2 | 5 classes | no |
| 3 | `tara` | 3 | Moon nakshatra (27) | no |
| 4 | `yoni` | 4 | 14 classes | no |
| 5 | `graha_maitri` | 5 | 7 classes | no |
| 6 | `gana` | 6 | 3 classes | yes |
| 7 | `bhakoot` | 7 | 12 classes | no |
| 8 | `nadi` | 8 | 3 classes | no |

- **name** - lowercase snake_case ids. Graha Maitri is `graha_maitri`; Bhakoot is `bhakoot`.

- **Compares** - how many trait classes the scoring table distinguishes (Tara compares the two Moon nakshatras directly).

- **Groom/bride order matters** - computed from the engine's scoring tables: Varna and Gana score a pair differently when the two people are swapped; the other six are symmetric.

- **`pass`** - `varna` and `vashya` pass only at full marks; `tara` and `yoni` at 2 or more; `graha_maitri` at 3 or more; `gana`, `bhakoot` and `nadi` at anything above 0.

## Things to watch

- `total.bucket` is one of `"Excellent"` (28 or more), `"Good"` (24-27), `"Moderate"` (18-23) or `"Poor"` (below 18). Capitalised, unlike the koot names.
- `match_percentage` is `round(total.score / 36 × 100)` - an integer, not a fraction.
- Without `genders` in the request, `person_a` is read as the groom and the response says `"slotting": {"groom": "person_a", "basis": "order"}`. Send `genders` to slot by gender; same or unknown genders are scored both ways and the lower result is returned with `basis: "lower-of-both"`.
- `cancellation_note` is an empty string, not `null`, when no cancellation applied.
- `/v1/compatibility/dashakoot` nests the same Ashtakoot object under `data.ashtakoot`, alongside its own ten-factor total whose `max` is not 36.

## Example: POST /v1/compatibility

Recorded `POST /v1/compatibility` response (koots cut to two).

```json
{
  "data": {
    "total": {
      "score": 32,
      "max": 36,
      "bucket": "Excellent"
    },
    "koots": [
      {
        "name": "varna",
        "score": 1,
        "initial_score": 1,
        "max": 1,
        "pass": true,
        "cancellation_note": ""
      },
      {
        "name": "vashya",
        "score": 2,
        "initial_score": 2,
        "max": 2,
        "pass": true,
        "cancellation_note": ""
      }
    ],
    "match_percentage": 89
  }
}
```

## Questions

**Which endpoints does this page apply to?**

2 endpoints: Kundli Matching (Ashtakoot Gun Milan) (`POST /v1/compatibility`); Dashakoot Matching (`POST /v1/compatibility/dashakoot`).

## Endpoints

- [`POST /v1/compatibility`](https://astronode.dev/capabilities/compatibility/compatibility) - Kundli Matching (Ashtakoot Gun Milan) API
- [`POST /v1/compatibility/dashakoot`](https://astronode.dev/capabilities/compatibility/compatibility-dashakoot) - Dashakoot Matching API
