Skip to content
AstroWay/api v2.325.2 · docs
all systems operational

Panchang: full

POST
/vedic/panchang/full
request.sh
curl -X POST https://api.astroway.info/v1/vedic/panchang/full \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1990-05-15", "time": "15:30:00", "timezone": "Europe/Kyiv", "latitude": 50.45, "longitude": 30.52 }'

Complete daily Panchang: Tithi, Vara, Karana, Yoga, Nakshatra + Choghadia + Rahu Kaal + Yamaganda + Gulika + Abhijit Muhurat. Single call. Tithi, karana, yoga and nakshatra carry endsAt (local ISO time with offset); sunNakshatra, moonrise and moonset (first after sunrise, disc centre on the horizon as panchangs count it; null when the Moon does not rise or set within 30 hours). muhurtas: Brahma Muhurta, Pratah and Sayahna Sandhya, Vijaya, Godhuli, Nishita, durMuhurtam, amritKalam and varjyam (lists), each { start, end } in local ISO time. chandrabalam and tarabalam: from sunrise to the next sunrise, one entry per Moon sign or nakshatra with from, until and favourableFor (birth rashis or nakshatras), Chandrabalam also ashtamaFor. All null where the Sun does not rise.

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

ChartInput plus at. With at “sunrise” the angas are read at local sunrise and time is optional; otherwise time is required.

object
date required
string
/^\d{4}-\d{2}-\d{2}$/
time
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
houseSystem
string
default: P
Allowed values: P K R C E W B M O A T V D F G H I i L N Q S U X Y
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
at

Moment (default): tithi, nakshatra, yoga and karana at date + time. sunrise: at local sunrise of that date, as a printed panchang gives them; time may be omitted.

string
Allowed values: moment sunrise
key additional
nullable
Example
{
"date": "1990-05-15",
"time": "15:30:00",
"timezone": "Europe/Kyiv",
"latitude": 50.45,
"longitude": 30.52
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
jd
number
nullable
ayanamsa
number
nullable
sunrise
string
nullable
sunset
string
nullable
tithi
object
number
number
nullable
name
string
nullable
paksha
string
nullable
indexInPaksha
number
nullable
elongation
number
nullable
percentComplete
number
nullable
vara
object
number
number
nullable
name
string
nullable
ruler
string
nullable
karana
object
index
number
nullable
name
string
nullable
isFixed
boolean
nullable
yoga
object
number
number
nullable
name
string
nullable
sumLongitude
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
longitude
number
nullable
choghadia
object
daytime
Array<object>
nullable
object
index
number
nullable
name
string
nullable
quality
string
nullable
startHour
number
nullable
endHour
number
nullable
isDaytime
boolean
nullable
nighttime
Array<object>
nullable
object
index
number
nullable
name
string
nullable
quality
string
nullable
startHour
number
nullable
endHour
number
nullable
isDaytime
boolean
nullable
rahuKaal
object
name
string
nullable
weekdaySlot
number
nullable
startHour
number
nullable
endHour
number
nullable
startTime
string
nullable
endTime
string
nullable
yamaganda
object
name
string
nullable
weekdaySlot
number
nullable
startHour
number
nullable
endHour
number
nullable
startTime
string
nullable
endTime
string
nullable
gulika
object
name
string
nullable
weekdaySlot
number
nullable
startHour
number
nullable
endHour
number
nullable
startTime
string
nullable
endTime
string
nullable
abhijitMuhurat
object
startHour
number
nullable
endHour
number
nullable
midHour
number
nullable
muhurtaMinutes
number
nullable
startTime
string
nullable
endTime
string
nullable
muhurtas
object
brahmaMuhurta
object
start
string
nullable
end
string
nullable
pratahSandhya
object
start
string
nullable
end
string
nullable
vijayaMuhurta
object
start
string
nullable
end
string
nullable
godhuliMuhurta
object
start
string
nullable
end
string
nullable
sayahnaSandhya
object
start
string
nullable
end
string
nullable
nishitaMuhurta
object
start
string
nullable
end
string
nullable
durMuhurtam
Array<object>
nullable
object
start
string
nullable
end
string
nullable
amritKalam
Array<object>
nullable
object
start
string
nullable
end
string
nullable
varjyam
Array<object>
nullable
object
start
string
nullable
end
string
nullable
chandrabalam
Array<object>
nullable
object
from
string
nullable
until
string
nullable
moonSign
string
nullable
favourableFor
Array<string>
nullable
ashtamaFor
string
nullable
tarabalam
Array<object>
nullable
object
from
string
nullable
until
string
nullable
nakshatra
string
nullable
favourableFor
Array<string>
nullable
Example
{
"ok": true,
"data": {
"jd": 2448026.9791666665,
"ayanamsa": 23.72254952235926,
"sunrise": "06:10:54",
"sunset": "21:38:29",
"tithi": {
"number": 21,
"name": "Shashthi",
"paksha": "krishna",
"indexInPaksha": 6,
"elongation": 242.52866797484398,
"percentComplete": 0.21072233123699866
},
"vara": {
"number": 2,
"name": "Mangalvara",
"ruler": "Mars"
},
"karana": {
"index": 41,
"name": "Garaja",
"isFixed": false
},
"yoga": {
"number": 23,
"name": "Shubha",
"sumLongitude": 303.82909181948196
},
"nakshatra": {
"number": 21,
"name": "Uttara Ashadha",
"nameRu": "Уттара Ашадха",
"nameUk": "Уттара Ашадха",
"ruler": "Sun",
"startDeg": 266.6667,
"endDeg": 280,
"pada": 2,
"longitude": 273.178879897163
},
"choghadia": {
"daytime": [
{
"index": 1,
"name": "Rog",
"quality": "bad",
"startHour": 6.1816186010837555,
"endHour": 8.114082143642008,
"isDaytime": true
}
],
"nighttime": [
{
"index": 9,
"name": "Kaal",
"quality": "bad",
"startHour": 21.641326941549778,
"endHour": 22.705915165133774,
"isDaytime": false
}
]
},
"rahuKaal": {
"name": "Rahu Kaal",
"weekdaySlot": 7,
"startHour": 17.776399856433272,
"endHour": 19.708863398991525,
"startTime": "17:46:35",
"endTime": "19:42:32"
},
"yamaganda": {
"name": "Yamaganda",
"weekdaySlot": 3,
"startHour": 10.046545686200261,
"endHour": 11.979009228758514,
"startTime": "10:02:48",
"endTime": "11:58:44"
},
"gulika": {
"name": "Gulika",
"weekdaySlot": 5,
"startHour": 13.911472771316767,
"endHour": 15.84393631387502,
"startTime": "13:54:41",
"endTime": "15:50:38"
},
"abhijitMuhurat": {
"startHour": 13.3961491599679,
"endHour": 14.426796382665634,
"midHour": 13.911472771316767,
"muhurtaMinutes": 61.83883336186409,
"startTime": "13:23:46",
"endTime": "14:25:36"
},
"muhurtas": {
"brahmaMuhurta": {
"start": "1990-05-15T05:02:23+04:00",
"end": "1990-05-15T05:36:38+04:00"
},
"pratahSandhya": {
"start": "1990-05-15T05:19:31+04:00",
"end": "1990-05-15T06:10:54+04:00"
},
"vijayaMuhurta": {
"start": "1990-05-15T16:29:17+04:00",
"end": "1990-05-15T17:31:07+04:00"
},
"godhuliMuhurta": {
"start": "1990-05-15T21:38:29+04:00",
"end": "1990-05-15T21:55:31+04:00"
},
"sayahnaSandhya": {
"start": "1990-05-15T21:38:29+04:00",
"end": "1990-05-15T22:29:35+04:00"
},
"nishitaMuhurta": {
"start": "1990-05-16T01:36:57+04:00",
"end": "1990-05-16T02:11:01+04:00"
},
"durMuhurtam": [
{
"start": "1990-05-15T09:16:25+04:00",
"end": "1990-05-15T10:18:15+04:00"
},
{
"start": "1990-05-16T01:02:53+04:00",
"end": "1990-05-16T01:36:57+04:00"
}
],
"amritKalam": [
{
"start": "1990-05-15T21:46:42+04:00",
"end": "1990-05-15T23:30:18+04:00"
}
],
"varjyam": [
{
"start": "1990-05-15T11:25:05+04:00",
"end": "1990-05-15T13:08:42+04:00"
}
]
},
"chandrabalam": [
{
"from": "1990-05-15T06:10:54+04:00",
"until": "1990-05-15T09:18:28+04:00",
"moonSign": "Dhanu",
"favourableFor": [
"Mithuna",
"Karka",
"Tula",
"Dhanu",
"Kumbha",
"Meena"
],
"ashtamaFor": "Vrishabha"
}
],
"tarabalam": [
{
"from": "1990-05-15T06:10:54+04:00",
"until": "1990-05-16T04:41:06+04:00",
"nakshatra": "Uttara Ashadha",
"favourableFor": [
"Bharani",
"Rohini",
"Mrigashira",
"Punarvasu",
"Ashlesha",
"Purva Phalguni",
"Hasta",
"Chitra",
"Vishakha",
"Jyeshtha",
"Purva Ashadha",
"Shravana",
"Dhanishtha",
"Purva Bhadrapada",
"Revati"
]
}
]
}
}

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"
}
}