Muhurat: Marriage (Vivah)
curl -X POST https://api.astroway.info/v1/vedic/muhurat/marriage \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json" \ -d '{ "search_window_start": "2026-05-15", "search_window_end": "2026-05-31", "latitude": 28.61, "longitude": 77.21, "timezoneOffset": 5.5, "topN": 10 }'const res = await fetch('https://api.astroway.info/v1/vedic/muhurat/marriage', { method: 'POST', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ "search_window_start": "2026-05-15", "search_window_end": "2026-05-31", "latitude": 28.61, "longitude": 77.21, "timezoneOffset": 5.5, "topN": 10 }),});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/muhurat/marriage', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'search_window_start': "2026-05-15", 'search_window_end': "2026-05-31", 'latitude': 28.61, 'longitude': 77.21, 'timezoneOffset': 5.5, 'topN': 10 },)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/muhurat/marriage', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'search_window_start' => '2026-05-15', 'search_window_end' => '2026-05-31', 'latitude' => 28.61, 'longitude' => 77.21, 'timezoneOffset' => 5.5, 'topN' => 10, ],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Auspicious-window scanner for marriage (Vivah Muhurat) over a date range. Scores each day by Tithi + Vara + Nakshatra + Yoga + Karana per Muhurta Chintamani Adhyaya 5 + B.V.Raman Muhurta Ch.6. Preferred nakshatras: Rohini/Mrigashira/Magha/Hasta/Swati/Anuradha/Mula/U.Phalguni/U.Ashadha/U.Bhadrapada/Revati. Avoid Sun/Tue/Sat. Returns top-N days sorted by score with per-day Abhijit Muhurat sub-window.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”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.longitudeRound 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
4Request Body required
Section titled “Request Body required ”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
{ "search_window_start": "2026-05-15", "search_window_end": "2026-05-31", "latitude": 28.61, "longitude": 77.21, "timezoneOffset": 5.5, "topN": 10}Responses
Section titled “ Responses ”Successful calculation
object
object
object
object
object
object
object
object
Example
{ "ok": true, "data": { "activity": "marriage", "search_window": { "start": "2026-05-15", "end": "2026-05-31", "daysScanned": 17 }, "location": { "latitude": 28.61, "longitude": 77.21, "timezoneOffset": 5.5 }, "ayanamsa": 24.225448485258198, "auspiciousWindows": [ { "date": "2026-05-29", "weekday": 5, "weekdayName": "Shukravara", "panchang": { "tithi": 13, "tithiName": "Trayodashi", "paksha": "shukla", "vara": 5, "varaName": "Shukravara", "nakshatra": 15, "nakshatraName": "Swati", "yoga": 22, "yogaName": "Sadhya", "karana": "Taitila", "karanaIndex": 26, "pada": 4 }, "abhijitMuhurat": { "startTime": "11:51:03", "endTime": "12:46:17", "midHour": 12.311103828251362 }, "score": 9, "rating": "excellent", "factors": [ { "field": "nakshatra", "delta": 3, "note": "Swati: auspicious for marriage" } ] } ], "nextAuspiciousWindow": "2026-05-29" }}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" }}