Перейти до вмісту
AstroWay/api v2.205.0 · 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/*: it scores each day by sunrise Panchang (Tithi/Vara/Nakshatra/Yoga/Karana) per Muhurta Chintamani + B.V.Raman, and 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.

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
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
>= -90 <= 90
longitude required
number
>= -180 <= 180
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 <= 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"
}
}
Корисно?