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

Generate Muhurta Report (PDF or HTML)

POST
/reports/muhurta
request.sh
curl -X POST https://api.astroway.info/v1/reports/muhurta \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "activity": "marriage", "search_window_start": "2026-05-15", "search_window_end": "2026-06-15", "latitude": 28.61, "longitude": 77.21, "timezoneOffset": 5.5, "topN": 10, "language": "en" }'

Render a standard A4 report of the most auspicious dates for a chosen activity over a search window. Same window-scan engine as /vedic/muhurat/* — scores each day by sunrise Panchang (Tithi/Vara/Nakshatra/Yoga/Karana) per Muhurta Chintamani + B.V.Raman, lists ranked days with per-day Abhijit Muhurat and the scoring factors as the rationale. activity is one of the 12 from /muhurta/types. PDF default; ?format=html returns HTML.

Media type application/json
object
activity required
string
Allowed values: marriage vehicle-purchase business-start travel naming-ceremony surgery education-start investment property-purchase journey-long name-change general-auspicious
search_window_start required
string
/^\d{4}-\d{2}-\d{2}$/
search_window_end
string
/^\d{4}-\d{2}-\d{2}$/
latitude required
number
nullable >= -90 <= 90
longitude required
number
nullable >= -180 <= 180
timezoneOffset
number
0 nullable >= -14 <= 14
ayanamsaId
integer
nullable
topN
integer
default: 10 >= 1 <= 30
language
string
Allowed values: uk en de ru pl es pt hi fr ko it ja id tr nl ro cs vi ar el hu
whitelabel
Any of:
boolean
Example
{
"activity": "marriage",
"search_window_start": "2026-05-15",
"search_window_end": "2026-06-15",
"latitude": 28.61,
"longitude": 77.21,
"timezoneOffset": 5.5,
"topN": 10,
"language": "en"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
url
string
nullable
storage_key
string
nullable
byte_length
number
nullable
page_count
number
nullable
duration_ms
number
nullable
expires_at
string
nullable
Example
{
"ok": true,
"data": {
"url": "https://api.astroway.info/reports/abc-muhurta.pdf",
"storage_key": "reports/abc-muhurta.pdf",
"byte_length": 90000,
"page_count": 2,
"duration_ms": 5200,
"expires_at": "2026-06-23T07:00:00Z"
}
}

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