Перейти до вмісту
AstroWay/api v2.325.0 · docs
усі системи в нормі

Prashna: chart of the question

POST
/vedic/prashna/chart
request.sh
curl -X POST https://api.astroway.info/v1/vedic/prashna/chart \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1962-11-06", "time": "09:20:00", "timezoneOffset": 5.5, "latitude": 12.9716, "longitude": 77.5946, "ayanamsa": "raman", "arudhaSign": 2 }'

Prasna Marga chart for the moment and place of the question: sidereal Udaya Lagna and its navamsa, planets with dignity and combustion, whole-sign houses, Arudha (from arudhaSign 1-12, from number 1-108, or the Udaya Lagna when neither is sent) and its sphuta, Chatra (Veethi count, or the Udaya navamsa), Gulika (end of Saturn’s part, with the start of the part beside it) and Mandi (ghatika table), Trisphuta, Chatussphuta and Panchasphuta. Every point carries its chapter and stanza. KP number charts 1-249 are /vedic/kp/horary.

fields
string

Comma-separated dotted paths, relative to data, to keep in the response. A path is applied to every element of an array, so planets.name means the name of each planet. Paths that match nothing come back in _fields_unmatched; a list where nothing matches at all is a 400, because an empty object would be a confident wrong answer.

Example
planets.name,planets.longitude
precision
integer
<= 15

Round every non-integer number in the response to this many decimal places. Integers are left alone, because an id is not a measurement. Ecliptic longitudes ship with fourteen decimals by default; 2 is about a tenth of an arcminute.

Example
4
Idempotency-Key
string
>= 1 characters <= 255 characters /^[\x21-\x7E]+$/

Unique per logical operation, kept across retries. For 24 hours from the first request, a repeat with the same key, method, path, body and query string returns the stored response with Idempotent-Replayed: true and costs 0 credits. The same key with a different body or query string is a 409 IDEMPOTENCY_KEY_REUSED; a repeat while the first is still running is a 409 IDEMPOTENCY_IN_PROGRESS. Only 2xx responses are kept. See /idempotency/.

Example
01HXY2A7ZM0ABCDEF
Media type application/json

The moment and place of the question, and optionally the Arudha (a sign 1-12 or a number 1-108).

object
date required

Date of the question, YYYY-MM-DD, local.

string
/^\d{4}-\d{2}-\d{2}$/
time required

Time of the question, HH:mm:ss, local.

string
/^\d{2}:\d{2}(:\d{2})?$/
timezoneOffset

Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC. Ignored when timezone is sent.

number
0 nullable >= -14 <= 14
timezone

IANA zone name such as Europe/Kyiv, or auto to look the zone up from latitude and longitude. The server takes the offset that zone kept at this local date and time, summer time included, and uses it in place of timezoneOffset. A clock time that happened twice takes the first occurrence; one skipped when clocks went forward takes the offset from before the change. Abbreviations such as EST are refused. Before 1970 the tz database is not reliable for every place, so send timezoneOffset when the local clock is known.

string
latitude required
number
>= -90 <= 90
longitude required
number
>= -180 <= 180
ayanamsaId
number
nullable
ayanamsa

Sidereal school by name. Lahiri when omitted. Equivalent to ayanamsaId; send either.

string
Allowed values: fagan-bradley lahiri de-luce raman krishnamurti kp yukteshwar jn-bhasin true-citra djwhal-khul
arudhaSign

Arudha: the sign (1 Aries .. 12 Pisces) of the direction the querent faces or the square of the chakra the querent touches (Prasna Marga II.7-11). Omit it and the Udaya Lagna stands in for it (IX.30-31).

integer
>= 1 <= 12
number

A number 1-108 from the querent: its navamsa fixes the Arudha sign. Send arudhaSign or number, not both. KP’s 1-249 number is /v1/vedic/kp/horary.

integer
>= 1 <= 108
sphutaGulika

Which point enters Trisphuta. mandi (default): the Prasna Marga author takes Gulika by the Mandi ghatika method (translator’s note to V.14-16). gulika: the end of Saturn’s eighth part.

string
Allowed values: mandi gulika
Example
{
"date": "1962-11-06",
"time": "09:20:00",
"timezoneOffset": 5.5,
"latitude": 12.9716,
"longitude": 77.5946,
"ayanamsa": "raman",
"arudhaSign": 2
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
method
string
nullable
ayanamsa
number
nullable
udayaLagna
object
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
lord
number
nullable
lordName
string
nullable
sirshodaya
boolean
nullable
navamsaLagna
object
sign
number
nullable
signName
string
nullable
arudha
object
sign
number
nullable
signName
string
nullable
source
string
nullable
sphuta
object
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
chatra
object
sign
number
nullable
signName
string
nullable
method
string
nullable
veethi
string
nullable
day
object
isDay
boolean
nullable
weekday
string
nullable
startJd
number
nullable
endJd
number
nullable
lengthGhatis
number
nullable
gulika
object
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
house
number
nullable
part
number
nullable
risesJd
number
nullable
startOfPart
object
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
mandi
object
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
house
number
nullable
ghatisFromStart
number
nullable
risesJd
number
nullable
sphutas
object
gulikaUsed
string
nullable
trisphuta
object
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
chatussphuta
object
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
panchasphuta
object
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
houses
Array<object>
nullable
object
house
number
nullable
sign
number
nullable
signName
string
nullable
lord
number
nullable
lordName
string
nullable
planets
Array<object>
nullable
object
graha
number
nullable
name
string
nullable
longitude
number
nullable
sign
number
nullable
signName
string
nullable
degree
number
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
house
number
nullable
retrograde
boolean
nullable
dignity
string
nullable
combust
boolean
nullable
sources
object
pmTrisphuta
object
text
string
nullable
ref
string
nullable
status
string
nullable
notes
string
nullable
Example
{
"ok": true,
"data": {
"method": "prashna-chart",
"ayanamsa": 21.891839676398604,
"udayaLagna": {
"longitude": 242.8551,
"sign": 8,
"signName": "Sagittarius",
"degree": 2.8551,
"nakshatra": 19,
"nakshatraName": "Mula",
"lord": 5,
"lordName": "Jupiter",
"sirshodaya": false
},
"navamsaLagna": {
"sign": 0,
"signName": "Aries"
},
"arudha": {
"sign": 1,
"signName": "Taurus",
"source": "given",
"sphuta": {
"longitude": 32.8551,
"sign": 1,
"signName": "Taurus",
"degree": 2.8551,
"nakshatra": 3,
"nakshatraName": "Krittika"
}
},
"chatra": {
"sign": 8,
"signName": "Sagittarius",
"method": "count from Arudha to Lagna, the same from the Veethi Rasi",
"veethi": "Taurus"
},
"day": {
"isDay": true,
"weekday": "Tuesday",
"startJd": 2437974.5309928395,
"endJd": 2437975.015110937,
"lengthGhatis": 29.0471
},
"gulika": {
"longitude": 305.7824,
"sign": 10,
"signName": "Aquarius",
"degree": 5.7824,
"nakshatra": 23,
"nakshatraName": "Dhanishtha",
"house": 3,
"part": 5,
"risesJd": 2437974.8335666503,
"startOfPart": {
"longitude": 282.0592,
"sign": 9,
"signName": "Capricorn",
"degree": 12.0592,
"nakshatra": 22,
"nakshatraName": "Shravana"
}
},
"mandi": {
"longitude": 300.8501,
"sign": 10,
"signName": "Aquarius",
"degree": 0.8501,
"nakshatra": 23,
"nakshatraName": "Dhanishtha",
"house": 3,
"ghatisFromStart": 17.4283,
"risesJd": 2437974.821463698
},
"sphutas": {
"gulikaUsed": "mandi",
"trisphuta": {
"longitude": 125.9796,
"sign": 4,
"signName": "Leo",
"degree": 5.9796,
"nakshatra": 10,
"nakshatraName": "Magha"
},
"chatussphuta": {
"longitude": 327.3469,
"sign": 10,
"signName": "Aquarius",
"degree": 27.3469,
"nakshatra": 25,
"nakshatraName": "Purva Bhadrapada"
},
"panchasphuta": {
"longitude": 68.8048,
"sign": 2,
"signName": "Gemini",
"degree": 8.8048,
"nakshatra": 6,
"nakshatraName": "Ardra"
}
},
"houses": [
{
"house": 1,
"sign": 8,
"signName": "Sagittarius",
"lord": 5,
"lordName": "Jupiter"
}
],
"planets": [
{
"graha": 0,
"name": "Sun",
"longitude": 201.3673,
"sign": 6,
"signName": "Libra",
"degree": 21.3673,
"nakshatra": 16,
"nakshatraName": "Vishakha",
"house": 11,
"retrograde": false,
"dignity": "debilitated",
"combust": false
}
],
"sources": {
"pmTrisphuta": {
"text": "Prasna Marga, Part I, tr. B.V. Raman, 2nd ed., Motilal Banarsidass, Delhi 1991",
"ref": "ch. V st. 17 (Lagna + Moon + Gulika)",
"status": "verse"
}
},
"notes": "Prana, Deha and Mrityu sphutas (Prasna Marga V.19) are left out: they serve longevity and illness questions, which this API does not answer."
}
}

Validation error

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_INPUT",
"message": "Validation failed: date: Date must be YYYY-MM-DD",
"details": [
{
"path": "date",
"message": "Date must be YYYY-MM-DD"
}
]
}
}

Missing or invalid API key

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}