Dashas: Tribhagi Pratyantardasha
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" }'const res = await fetch('https://api.astroway.info/v1/vedic/dashas/tribhagi/pratyantar', { method: 'POST', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ "date": "1947-08-15", "time": "02:00:00", "timezoneOffset": 5.5, "latitude": 27.49, "longitude": 77.67, "targetDate": "2026-05-06" }),});const { ok, data, error } = await res.json();if (!ok) throw new Error(error.message);console.log(data);import os, requests
r = requests.post( 'https://api.astroway.info/v1/vedic/dashas/tribhagi/pratyantar', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'date': "1947-08-15", 'time': "02:00:00", 'timezoneOffset': 5.5, 'latitude': 27.49, 'longitude': 77.67, 'targetDate': "2026-05-06" },)result = r.json()if not result['ok']: raise RuntimeError(result['error']['message'])print(result['data'])<?phpuse GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $client->post('vedic/dashas/tribhagi/pratyantar', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'date' => '1947-08-15', 'time' => '02:00:00', 'timezoneOffset' => 5.5, 'latitude' => 27.49, 'longitude' => 77.67, 'targetDate' => '2026-05-06', ],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Tribhagi Pratyantardasha: 3-level cascade (MD → AD → 9 PDs).
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”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
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.
Sidereal school by name. Lahiri when omitted. Equivalent to ayanamsaId; send either.
Example
{ "date": "1947-08-15", "time": "02:00:00", "timezoneOffset": 5.5, "latitude": 27.49, "longitude": 77.67, "targetDate": "2026-05-06"}Responses
Section titled “ Responses ”Successful calculation
object
object
object
object
object
object
object
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
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
Example
{ "ok": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API key" }}