Skip to content
POST/api/astro/prashna/ashtamangala/1 credit

Ashtamangala Prashna

Ashtamangala is the Kerala system of Prashna (horary astrology), as set out in Prasna Marga. The chart is cast for the moment and place of the question; the querent picks the Arudha sign, and 108 cowries divided into three heaps give the three-digit Ashtamangala number. This endpoint works out the chart, the Arudha, the Chatra, the six rasis of Prasna Kriya, the five Sutras and the full reading of the number. Send `date_time` as the local clock time of the question (`YYYY-MM-DDTHH:MM:SS`, no offset), `latitude`, `longitude` and `timezone_as_float`. `arudha_sign` is the sign the querent chose (1 = Aries); without it the rising sign is used. Give the cowries as `heaps` (three counts) or the number itself as `number` (three digits, each 1 to 8); `heaps` wins when both are sent. `birth_moon_sign`, `birth_nakshatra` and `touched_sign` (the sign of the organ the querent touched, 1 = Aries, the head) are optional and fill in the Janma rasi, the Nakshatra sutra and the Sprishtanga. The response has `day`, `lagna` and `arudha` (the Lagna's degrees placed in the chosen sign), `chatra` with the Veethi it was counted from, `six_rasis` (Arudha, Lagna, Navamsa lagna, Chatra, Sprishtanga and Janma, each with its organ and the benefics and malefics in or aspecting it), `sutras` (Samanya, Amsaka, Adhipati, Nakshatra and Maha, each Jeeva, Roga or Mrityu), the `planets` with their houses from both Lagna and Arudha, `number` (each digit's planet, yoni, animal and element and the results Prasna Marga gives for them) and the `organs` table. Two things to know. The chart always uses the Lahiri ayanamsa. And the sphutas and Gulika are not repeated here: call `/api/astro/prashna/` for the same moment to get them.

https://api.occultapi.com/api/astro/prashna/ashtamangala/
Test Request

Authentication

Send your key in the X-API-Key header. Keys are server-side credentials — never put one in browser JavaScript or a mobile app.

X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/json

Request fields

FieldTypeRequiredNotes
date_timestring (date-time)required

The moment to calculate for, ISO 8601. ALWAYS include an offset or a trailing Z - a value with no zone is read as Asia/Kolkata (UTC+05:30), not UTC, and can return the previous day's result with a 200. '2026-09-01T06:00:00Z' and '2026-09-01 06:00:00' are different instants and give different answers.

latitudenumber (double)required

Latitude of the place, in decimal degrees. Positive is north, negative is south. Example: 26.9124 for Jaipur, 40.7128 for New York. Minutes and seconds are not accepted - convert first.

min -66 · max 66

longitudenumber (double)required

Longitude of the place, in decimal degrees. Positive is east, negative is west. Example: 75.7873 for Jaipur, -74.0060 for New York. Note the sign: a missing minus puts New York in China.

min -180 · max 180

timezone_as_floatnumber (double)required

UTC offset of the place, in hours, as a decimal. Example: 5.5 for India (UTC+05:30), -5 for New York in winter, 5.75 for Nepal. This is NOT validated against date_time - if the two disagree you get a successful response for the wrong moment, so derive both from the same source. Use the offset in force on that date, not today's: a summer birth in a country with daylight saving needs the summer offset.

min -12 · max 14

arudha_signintegeroptional

The sign the querent chose, 1 = Aries. Omit to use the rising sign.

min 1 · max 12

birth_moon_signintegeroptional

The querent's Janma rasi, 1 = Aries, for the Janma rasi and st. 35.

min 1 · max 12

birth_nakshatraintegeroptional

The querent's Janma nakshatra, 1 = Ashwini, for the Nakshatra sutra and st. 35.

min 1 · max 27

heapsarrayoptional

Cowries in the three heaps.

node_typestringoptional
meantrue
numberintegeroptional

The three-digit Ashtamangala number, each digit 1-8. Used when heaps are not given.

min 111 · max 888

touched_signintegeroptional

Sprishtanga: the sign of the organ the querent touched, 1 = Aries (head).

min 1 · max 12

Example request

curl -X POST https://api.occultapi.com/api/astro/prashna/ashtamangala/ \
  -H "X-API-Key: $OCCULT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date_time":"2026-09-16T10:30:00","latitude":26.9124,"longitude":75.7873,"timezone_as_float":5.5,"arudha_sign":5,"heaps":[35,40,33]}'

Response

{
  "_truncated": true,
  "_note": "Response shortened for the catalogue.",
  "preview": "{\"data\": {\"input\": {\"date_time\": \"2026-09-16T10:30:00+05:30\", \"latitude\": 26.9124, \"longitude\": 75.7873, \"timezone_as_float\": 5.5, \"node_type\": \"mean\", \"arudha_sign\": 5, \"heaps\": [35, 40, 33], \"number\": null, \"birth_moon_sign\": null, \"birth_nakshatra\": null, \"touched_sign\": null}, \"day\": {\"weekday\": \"Wednesday\", \"is_night\": false, \"sunrise\": \"2026-09-16T06:16:23+05:30\", \"sunset\": \"2026-09-16T18:26:47+05:30\", \"next_sunrise\": \"2026-09-17T06:16:48+05:30\", \"paksha\": \"Shukla\"}, \"lagna\": {\"key\": \"lagna\", \"name\": \"Lagna\", \"longitude\": 204.952483, \"sign\": \"Libra\", \"sign_index\": 7, \"sign_lord\": \"Venus\", \"degree_in_sign\": 24.952483, \"nakshatra\": \"Vishakha\", \"nakshatra_index\": 16, \"pada\": 2, \"lords\": [\"Jupiter\", \"Mercury\", \"Rahu\", \"Rahu\"], \"retrograde\": false, \"house\": 1}, \"arudha\": {\"key\": \"arudha\", \"name\": \"Arudha\", \"longitude\": 144.952483, \"sign\": \"Leo\", \"sign_index\": 5, \"sign_lord\": \"Sun\", \"degree_in_sign\": 24.952483, \"nakshatra\": \"Purva Phalguni\", \"nakshatra_index\": 11, \"pada\": 4, \"lords\": [\"Venus\", \"Mercury\", \"Mars\", \"Rahu\"], \"retrograde\": false, \"house\": 11, \"from_lagna\": false}, \"chatra\": {\"sign\": \"Gemini\", \"sign_index\": 3, \"veethi\": \"Aries\", \"count\": 3, \"of_lagna\": \"Taurus\"}, \"six_rasis\": [{\"key\": \"arudha\", \"label\": \"Arudha\", \"sign\": \"Leo\", \"sign_index\": 5, \"lord\": \"Sun\", \"organ\": \"belly\", \"quality\": \"fixed\", \"occupants\": [\"Sun\", \"Ketu\"], \"aspected_by\": [], \"benefics\": [], \"malefics\": [\"Sun\", \"Ketu\"], \"longitude\": 144.952483, \"degree_in_sign\": 24.952483, \"nakshatra\": \"Purva Phalguni\", \"navamsa\": \"Scorpio\", \"dwadasamsa\": \"Taurus\"}, {\"key\": \"lagna\", \"label\": \"Udaya lagna\", \"sign\": \"Libra\", \"sign_index\": 7, \"lord\": \"Venus\", \"organ\": \"abdomen\", \"quality\": \"movable\", \"occupants\": [\"Moon\", \"Venus\"], \"aspected_by\": [], \"benefics\": [\"Moon\", \"Venus\"], \"malefics\": [], \"longitude\": 204.952483, \"degree_in_sign\": 24.952483, \"nakshatra\": \"Vishakha\", \"navamsa\": \"Taurus\", \"dwadasamsa\": \"Cancer\"}, {\"key\": \"navamsa_lagna\", \"label\": \"Navamsa lagna\", \"sign\": \"Taurus\", \"sign_index\": 2, \"lord\": \"Venus\", \"organ\": \"face\", \"quality\": \"fixed\", \"occupants\": [], \"aspected_by\": [\"Saturn\"], \"benefics\": [], \"malefics\": [\"Saturn\"]}, {\"key\": \"chatra\", \"label\": \"Chatra\", \"sign\": \"Gemini\", \"sign_index\": 3, \"lord\": \"Mercury\", \"organ\": \"chest\", \"quality\": \"common\", \"occupants\": [\"Mars\"], \"aspected_by\": [], \"benefics\": [], \"malefics\": [\"Mars\"], \"note\": \"Veethi rasi Aries (Sun in Leo); 3 counted from it.\"}], \"sutras\": [{\"key\": \"samanya\", \"label\": \"Samanya sutra\", \"from\": \"Arudha (fixed) and Lagna (movable)\", \"result\": \"Roga\"}, {\"key\": \"adhipati\", \"label\": \"Adhipati sutra\", \"from\": \"Sun is enemy to Venus; Venus is enemy to Sun\", \"result\": \"Mrityu\"}, {\"key\": \"amsaka\", \"label\": \"Amsaka sutra\", \"from\": \"Lagna navamsa (fixed) and Arudha (fixed)\", \"result\": \"Mrityu\"}, {\"key\": \"maha\", \"label\": \"Maha sutra\", \"from\": \"Arudha Leo is solar; its 10th, Taurus, is lunar\", \"result\": \"Roga\"}, {\"key\": \"nakshatra\", \"label\": \"Nakshatra sutra\", \"from\": \"Needs the querent's birth nakshatra\", \"result\": null}], \"planets\": [{\"key\": \"sun\", \"name\": \"Sun\", \"longitude\": 149.131158, \"sign\": \"Leo\", \"sign_index\": 5, \"sign_lord\": \"Sun\", \"degree_in_sign\": 29.131158, \"nakshatra\": \"Uttara Phalguni\", \"nakshatra_index\": 12, \"pada\": 1, \"lords\": [\"Sun\", \"Mars\", \"Sun\", \"Rahu\"], \"retrograde\": false, \"house\": 11, \"house_from_arudha\": 1, \"nature\": \"malefic\", \"dignity\": \"Domicile\"}, {\"key\": \"moon\", \"name\": \"Moon\", \"longitude\": 209.835991, \"sign\": \"Libra\", \"sign_index\": 7, \"sign_lord\": \"Venus\", \"degree_in_sign\": 29.835991, \"nakshatra\": \"Vishakha\", \"nakshatra_index\": 16, \"pada\": 3, \"lords\": [\"Jupiter\", \"Moon\", \"Jupiter\", \"Ketu\"], \"retrograde\": false, \"house\": 1, \"house_from_arudha\": 3, \"nature\": \"benefic\", \"dignity\": \"Neutral\"}, {\"key\": \"mars\", \"name\": \"Mars\", \"longitude\": 88.629566, \"sign\": \"Gemini\", \"sign_index\": 3, \"sign_lord\": \"Mercury\", \"degree_in_sign\": 28.629566, \"nakshatra\": \"Punarvasu\", \"nakshatra_index\": 7, \"pada\": 3, \"lords\": [\"Jupiter\", \"Venus\", \"Mercury\", \"Saturn\"], \"retrograde\": false, \"house\": 9, "
}

Captured from a real call using the exact request above. Results sit under data.

Errors

Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.