# Karakamsa (Jaimini) API

> Jaimini Karakamsa - the Atmakaraka's navamsa sign, the natal house it falls in (Swamsha) and its occupants.

Source: https://astronode.dev/capabilities/vedic/karakamsa

`POST /v1/karakamsa` · part of the [Vedic Astrology API](https://astronode.dev/capabilities/vedic)

## Example request

```bash
curl -X POST 'https://api.astronode.dev/v1/karakamsa' \
  -H 'Authorization: Bearer aie_test_REPLACE_WITH_YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
  "date": "1993-07-04",
  "time": "09:27:11",
  "tz_offset_minutes": 330,
  "lat": 31.7473,
  "lng": 77.7754
}'
```

## Request fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `date` | string | yes | pattern ^\d{4}-\d{2}-\d{2}$ |
| `time` | string | yes | pattern ^\d{2}:\d{2}(:\d{2})?$ |
| `tz_offset_minutes` | integer | yes | Offset from UTC in minutes (e.g., 330 for IST); -840..840 |
| `lat` | number | yes | -90..90 |
| `lng` | number | yes | -180..180 |

## Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `atmakaraka` | string | yes |  |
| `atmakaraka_sign` | string | yes |  |
| `atmakaraka_degree` | number | yes |  |
| `karakamsa` | string | yes |  |
| `swamsha_house` | integer | yes | 1..12 |
| `occupants` | string[] | yes |  |
| `tradition` | string | yes |  |

## Recorded response

Recorded from a real call with the request above.

```json
{
  "atmakaraka": "Moon",
  "atmakaraka_sign": "Sagittarius",
  "atmakaraka_degree": 20.539904220094854,
  "karakamsa": "Libra",
  "swamsha_house": 3,
  "occupants": [],
  "tradition": "jaimini/karakamsa"
}
```

Response codes: 200, 400, 401, 409, 429, 500

## In practice

Available on every plan, including Free.

## Questions

**Which plan includes the Karakamsa (Jaimini) API?**

All plans, including Free.

**What does POST /v1/karakamsa need in the request?**

Required: `date`, `time`, `tz_offset_minutes`, `lat` and `lng`.

**What does POST /v1/karakamsa return?**

`atmakaraka`, `atmakaraka_sign`, `atmakaraka_degree`, `karakamsa`, `swamsha_house`, `occupants` and `tradition`, inside `data`.
