# Vargas (divisional charts D1–D60)

Vargas (वर्ग, "divisions") are divisional charts produced by dividing each sign into N equal parts. Every varga opens up a separate life domain: D9 for marriage, D10 for career, D7 for children. In the Parashari school the canonical set is **Shodasha Varga** (16 vargas); some traditions add 4 more. AstroWay computes all 16 in a single endpoint.

## What we calculate

**Shodasha Varga** (BPHS, chapters 6–7):

| Varga | N | Life domain |
|---|---|---|
| **D1** — Rashi | 1 | Main natal chart, body, personality |
| **D2** — Hora | 2 | Wealth, cash flow |
| **D3** — Drekkana | 3 | Siblings, courage, cooperation |
| **D4** — Chaturthamsha | 4 | Property, real estate, fortune |
| **D7** — Saptamsha | 7 | Children, progeny |
| **D9** — Navamsha | 9 | Marriage, dharma, fruits of karma (second after D1 in importance) |
| **D10** — Dashamsha | 10 | Career, status, profession |
| **D12** — Dvadashamsha | 12 | Parents, hereditary patterns |
| **D16** — Shodashamsha | 16 | Vehicles, comforts, accidents |
| **D20** — Vimshamsha | 20 | Spiritual practice, upasana |
| **D24** — Chaturvimshamsha | 24 | Education, learning, academic merit |
| **D27** — Saptavimsha (Bhamsha) | 27 | Strengths/weaknesses, endurance |
| **D30** — Trimshamsha | 30 | Misfortunes, specific troubles |
| **D40** — Khavedamsha | 40 | Maternal hereditary influences |
| **D45** — Akshavedamsha | 45 | Paternal hereditary influences + overall destiny |
| **D60** — Shashtyamsha | 60 | Finest influences, past lives (D60 = highest resolution) |

Each varga is a full chart object: positions of the 7 planets (+ Rahu/Ketu + Lagna) in the signs, houses and nakshatras of the varga. You can request individual vargas or all 16 in one call.

## Endpoint

| Endpoint | Credits | Returns |
|---|---|---|
| `/v1/vedic/vargas` | 80 | Any combination of the 16 vargas (via `levels` parameter) |

A single endpoint with config — returns 1 to 16 vargas per request. Pass `"levels": ["D1", "D9"]` for the two most important, or omit the parameter for all 16.

## Example

<Tabs>
  <TabItem label="cURL">
    ```bash frame="terminal"
    curl -X POST https://api.astroway.info/v1/vedic/vargas \
      -H "X-Api-Key: aw_live_your_key_here" \
      -H "Content-Type: application/json" \
      -d '{
        "date": "1990-07-14",
        "time": "14:30:00",
        "timezoneOffset": 3,
        "latitude": 50.45,
        "longitude": 30.52,
        "ayanamsa": "lahiri",
        "levels": ["D1", "D9", "D10"]
      }'
    ```
  </TabItem>
  <TabItem label="Node.js">
    ```ts
    const r = await fetch('https://api.astroway.info/v1/vedic/vargas', {
      method: 'POST',
      headers: {
        'X-Api-Key': process.env.ASTROWAY_API_KEY!,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        date: '1990-07-14', time: '14:30:00', timezoneOffset: 3,
        latitude: 50.45, longitude: 30.52, ayanamsa: 'lahiri',
        levels: ['D1', 'D9', 'D10'],
      }),
    });
    const { data } = await r.json();
    const navamsha = data.charts.find(c => c.level === 'D9');
    console.log(`D9 Lagna: ${navamsha.lagna.sign}`);
    console.log(`D9 Venus: ${navamsha.planets.Venus.sign} (${navamsha.planets.Venus.house}H)`);
    ```
  </TabItem>
  <TabItem label="Python">
    ```python

    r = requests.post(
        'https://api.astroway.info/v1/vedic/vargas',
        headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY']},
        json={
            'date': '1990-07-14', 'time': '14:30:00', 'timezoneOffset': 3,
            'latitude': 50.45, 'longitude': 30.52, 'ayanamsa': 'lahiri',
            'levels': ['D1', 'D9', 'D10'],
        },
    )
    data = r.json()['data']
    for chart in data['charts']:
        print(f"{chart['level']:5s} Lagna: {chart['lagna']['sign']}")
    ```
  </TabItem>
</Tabs>

### Sample response (abridged)

```json
{
  "ayanamsa": "lahiri",
  "charts": [
    {
      "level": "D1",
      "name": "Rashi",
      "lagna": { "sign": "Virgo", "longitude": 158.42 },
      "planets": {
        "Sun":     { "sign": "Cancer", "longitude": 112.18, "house": 11 },
        "Moon":    { "sign": "Taurus", "longitude":  47.92, "house":  9 },
        "Venus":   { "sign": "Gemini", "longitude":  82.34, "house": 10 }
      }
    },
    {
      "level": "D9",
      "name": "Navamsha",
      "lagna": { "sign": "Aquarius" },
      "planets": {
        "Sun":     { "sign": "Pisces",      "house":  2 },
        "Moon":    { "sign": "Sagittarius", "house": 11 },
        "Venus":   { "sign": "Libra",       "house":  9 }
      }
    },
    {
      "level": "D10",
      "name": "Dashamsha",
      "lagna": { "sign": "Aries" }
    }
  ]
}
```

## Accuracy & sources

- **Canonical text:** *Brihat Parashara Hora Shastra* (BPHS), chapters 6 "Graha-bheda-adhyaya" and 7 "Varga-vivekadhyaya". The sign→varga mapping logic is given separately for each of the 16 (D2 has two variants — Parashari and Kashinatha; we use Parashari).
- **Reference implementation:** [PyJHora](https://github.com/naturalstupid/PyJHora) `varga.py` — our results match 1:1 across all 16 vargas at the same ayanamsa.
- **Status:** GREEN for all 16 vargas. Verified across 16 snapshot tests, each pinning Lagna + 9 planets in the relevant varga.
- **Ayanamsa:** Lahiri default; all 9 system options supported. Switching ayanamsa can shift a varga's Lagna between adjacent signs — this is expected in jyotish.
- **D2 Hora variants:** we ship Parashari (Sun-hora occupies the first 15° of odd signs and last 15° of even signs, Moon-hora the inverse). If you need the Kashinatha variant — let us know, we'll add it as an option.

<Aside type="tip">
**Which vargas to read first.** If you're building a primary jyotish product, start with **D1 + D9** (Rashi + Navamsha). That's 80% of interpretation. D10 (career) and D7 (children) come next. D40/D45/D60 are used only by experienced astrologers for niche queries.
</Aside>

## Related

- [Dashas](/en/vedic/dashas/) — vargas are critical when judging the strength of a dasha lord (D-chart of the dasha lord)
- [Panchang](/en/vedic/panchang/) — vargas depend on accurate sidereal time and ayanamsa
- [Shadbala](/en/vedic/shadbala/) — Saptavargaja Bala is built from 7 vargas (D1, D2, D3, D7, D9, D12, D30)
- [Accuracy](/en/accuracy/) — snapshot tests vs PyJHora for all 16 vargas
- [Credits](/en/credits/) — full pricing table
- [Authentication](/en/authentication/) — how to obtain an `aw_live_*` key
