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

Muhurat: General auspicious window

POST
/vedic/muhurat/general-auspicious
request.sh
curl -X POST https://api.astroway.info/v1/vedic/muhurat/general-auspicious \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "search_window_start": "2026-05-15", "search_window_end": "2026-06-15", "latitude": 28.61, "longitude": 77.21, "timezoneOffset": 5.5 }'

Generic favourable-window finder when no specific activity applies (Sankalpa, prayer, fallback). Universal Pushya/Hasta nakshatras + standard shubha tithis. Returns top-N days against universal Panchang criteria.

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
Media type application/json
object
search_window_start required
string
/^\d{4}-\d{2}-\d{2}$/
search_window_end
string
/^\d{4}-\d{2}-\d{2}$/
latitude
number
0 nullable
longitude
number
0 nullable
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
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
topN
integer
default: 10 >= 1 <= 60
key additional
nullable
Example
{
"search_window_start": "2026-05-15",
"search_window_end": "2026-06-15",
"latitude": 28.61,
"longitude": 77.21,
"timezoneOffset": 5.5
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
activity
string
nullable
search_window
object
start
string
nullable
end
string
nullable
daysScanned
number
nullable
location
object
latitude
number
nullable
longitude
number
nullable
timezoneOffset
number
nullable
ayanamsa
number
nullable
auspiciousWindows
Array<object>
nullable
object
date
string
nullable
weekday
number
nullable
weekdayName
string
nullable
panchang
object
tithi
number
nullable
tithiName
string
nullable
paksha
string
nullable
vara
number
nullable
varaName
string
nullable
nakshatra
number
nullable
nakshatraName
string
nullable
yoga
number
nullable
yogaName
string
nullable
karana
string
nullable
karanaIndex
number
nullable
pada
number
nullable
abhijitMuhurat
object
startTime
string
nullable
endTime
string
nullable
midHour
number
nullable
score
number
nullable
rating
string
nullable
factors
Array<object>
nullable
object
field
string
nullable
delta
number
nullable
note
string
nullable
nextAuspiciousWindow
string
nullable
Example
{
"ok": true,
"data": {
"activity": "general-auspicious",
"search_window": {
"start": "2026-05-15",
"end": "2026-06-15",
"daysScanned": 32
},
"location": {
"latitude": 28.61,
"longitude": 77.21,
"timezoneOffset": 5.5
},
"ayanamsa": 24.225448485258198,
"auspiciousWindows": [
{
"date": "2026-05-21",
"weekday": 4,
"weekdayName": "Guruvara",
"panchang": {
"tithi": 5,
"tithiName": "Panchami",
"paksha": "shukla",
"vara": 4,
"varaName": "Guruvara",
"nakshatra": 8,
"nakshatraName": "Pushya",
"yoga": 14,
"yogaName": "Harshana",
"karana": "Balava",
"karanaIndex": 10,
"pada": 1
},
"abhijitMuhurat": {
"startTime": "11:50:32",
"endTime": "12:45:16",
"midHour": 12.298277013003826
},
"score": 9,
"rating": "excellent",
"factors": [
{
"field": "nakshatra",
"delta": 3,
"note": "Pushya: auspicious for general-auspicious"
}
]
}
],
"nextAuspiciousWindow": "2026-05-21"
}
}

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