# Ishta Devata API

> Ishta Devata - the graha of the 12th sign from Karakamsa (Jaimini), with its BPHS Dashavatara reading.

Source: https://astronode.dev/capabilities/vedic/ishta-devata

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

## Example request

```bash
curl -X POST 'https://api.astronode.dev/v1/ishta-devata' \
  -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 |  |
| `karakamsa` | string | yes |  |
| `jivan_muktamsa` | string | yes |  |
| `occupants` | string[] | yes |  |
| `aspecting` | string[] | yes |  |
| `sign_lord` | string | yes |  |
| `planet` | string | yes |  |
| `deity` | string | yes |  |
| `deity_alternates` | string[] | yes |  |
| `basis` | enum | yes | occupant \| aspect \| sign_lord |
| `tradition` | string | yes |  |
| `citation` | string | yes |  |

## Recorded response

Recorded from a real call with the request above.

```json
{
  "atmakaraka": "Moon",
  "karakamsa": "Libra",
  "jivan_muktamsa": "Virgo",
  "occupants": [],
  "aspecting": [
    "Sun",
    "Rahu",
    "Ketu"
  ],
  "sign_lord": "Mercury",
  "planet": "Sun",
  "deity": "Rama",
  "deity_alternates": [
    "Shiva",
    "Surya Narayana"
  ],
  "basis": "aspect",
  "tradition": "jaimini/upadesa-sutras",
  "citation": "Structure: Jaimini, Upadeśa Sūtras 1.2.68–1.2.82 (12th from Kārakāṁśa). Daśāvatāra deity mapping: Bṛhat Parāśara Horā Śāstra ch. 2, vv. 5–7. Alternate mappings (adhidevatā/pratyadhidevatā and lineage practice) are listed without a verse citation."
}
```

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

## In practice

Available on every plan, including Free.

## Questions

**Which plan includes the Ishta Devata API?**

All plans, including Free.

**What does POST /v1/ishta-devata need in the request?**

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

**What does POST /v1/ishta-devata return?**

`atmakaraka`, `karakamsa`, `jivan_muktamsa`, `occupants`, `aspecting`, `sign_lord`, `planet`, `deity`, `deity_alternates` and `basis` and 2 more, inside `data`.
