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

Dashas: Tribhagi Pratyantardasha

POST
/vedic/dashas/tribhagi/pratyantar
request.sh
curl -X POST https://api.astroway.info/v1/vedic/dashas/tribhagi/pratyantar \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1947-08-15", "time": "02:00:00", "timezoneOffset": 5.5, "latitude": 27.49, "longitude": 77.67, "targetDate": "2026-05-06" }'

Tribhagi Pratyantardasha: 3-level cascade (MD → AD → 9 PDs).

Media type application/json

Birth data for a single natal chart. Required: date (YYYY-MM-DD), time (HH:mm:ss), latitude and longitude in decimal degrees. The short forms lat, lon, lng and tz are rejected with 400 INVALID_FIELD; pass the full names. timezoneOffset is hours from UTC and defaults to 0, meaning UTC. city is a display label only: nothing here geocodes it, so it never stands in for coordinates.

object
date required
string
/^\d{4}-\d{2}-\d{2}$/
time required
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.

number
0 nullable >= -14 <= 14
latitude required
number
>= -90 <= 90
longitude required
number
>= -180 <= 180
houseSystem
string
default: P
name
string
""
city
string
""
zodiacType
string
Allowed values: tropical sidereal
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
cosmogram
boolean
targetDate
string
/^\d{4}-\d{2}-\d{2}$/
targetTime
string
/^\d{2}:\d{2}:\d{2}$/
targetTzOffset
number
nullable
Example
{
"date": "1947-08-15",
"time": "02:00:00",
"timezoneOffset": 5.5,
"latitude": 27.49,
"longitude": 77.67,
"targetDate": "2026-05-06"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
system
string
nullable
level
string
nullable
ayanamsa
number
nullable
moonSiderealLongitude
number
nullable
nakshatra
object
number
number
nullable
name
string
nullable
nameRu
string
nullable
nameUk
string
nullable
ruler
string
nullable
startDeg
number
nullable
endDeg
number
nullable
pada
number
nullable
initial
object
initialPlanet
string
nullable
fullPeriodYears
number
nullable
elapsedYears
number
nullable
balanceYears
number
nullable
balanceFmt
string
nullable
pada
number
nullable
scale
string
nullable
currentMaha
object
planet
number
nullable
planetName
string
nullable
startJd
number
nullable
endJd
number
nullable
startDate
string
nullable
endDate
string
nullable
durationYears
number
nullable
currentAntar
object
planet
number
nullable
planetName
string
nullable
startJd
number
nullable
endJd
number
nullable
startDate
string
nullable
endDate
string
nullable
durationYears
number
nullable
periods
Array<object>
nullable
object
planet
number
nullable
planetName
string
nullable
startJd
number
nullable
endJd
number
nullable
startDate
string
nullable
endDate
string
nullable
durationYears
number
nullable
Example
{
"ok": true,
"data": {
"system": "Tribhagi",
"level": "pratyantar",
"ayanamsa": 23.125454161038185,
"moonSiderealLongitude": 95.24121106113016,
"nakshatra": {
"number": 8,
"name": "Pushya",
"nameRu": "Пушья",
"nameUk": "Пушья",
"ruler": "Saturn",
"startDeg": 93.3333,
"endDeg": 106.6667,
"pada": 1
},
"initial": {
"initialPlanet": "Saturn",
"fullPeriodYears": 6.333333333333333,
"elapsedYears": 0.9062419207034942,
"balanceYears": 5.427091412629839,
"balanceFmt": "5y 5m 4d",
"pada": 1,
"scale": "1/3 of Vimshottari (40-year cycle)"
},
"currentMaha": {
"planet": 5,
"planetName": "Jupiter",
"startJd": 2459353.3493051296,
"endJd": 2461301.3493051296,
"startDate": "2021-05-19 01:52",
"endDate": "2026-09-18 01:52",
"durationYears": 5.333333333333333
},
"currentAntar": {
"planet": 11,
"planetName": "Rahu",
"startJd": 2461009.1493051294,
"endJd": 2461301.3493051296,
"startDate": "2025-11-29 21:04",
"endDate": "2026-09-18 01:52",
"durationYears": 0.8
},
"periods": [
{
"planet": 11,
"planetName": "Rahu",
"startJd": 2461009.1493051294,
"endJd": 2461052.9793051295,
"startDate": "2025-11-29 21:04",
"endDate": "2026-01-12 17:00",
"durationYears": 0.12000000000000002
}
]
}
}

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"
}
}
Корисно?