API reference › Panchang & muhurat
Muhurat Dates API for an Occasion
Every local day between two dates for an occasion: available with its windows, or the reason it is not
GET/v1/muhurat/{occasion}
2 credits · Secret or publishable key · getMuhuratDays
from and to are local dates at the place, at most 62 days apart (inclusive). Every day is returned: status available with its windows (ISO 8601 UTC; a window may cross local midnight), or unavailable with the first failing reason in the reference's order (reason is a machine id, message the text). Refused where the Sun does not rise on one of the days.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
occasion required | path | string | vivah (marriage), grihapravesh (house-warming), vehicle (vehicle purchase), property (property purchase). one of vivah, grihapravesh, vehicle, property |
from required | query | string (date) | e.g. "1990-08-13" |
to required | query | string (date) | e.g. "1990-08-13" |
lat required | query | number | ≥ -90 · ≤ 90 |
lon required | query | number | ≥ -180 · ≤ 180 |
Response
JSON { data, meta, warnings }, where data is:
occasionstring requiredone of
vivah,grihapravesh,vehicle,propertyplaceCoordinates requiredlatitudenumber required≥ -90 · ≤ 90
longitudenumber required≥ -180 · ≤ 180
fromstring (date) requirede.g.
"1990-08-13"tostring (date) requirede.g.
"1990-08-13"daysarray of object requireddatestring (date) requirede.g.
"1990-08-13"statusstring requiredone of
available,unavailablereasonstring requiredmessagestring requiredwindowsarray of object requiredFields
startstring (date-time) requiredendstring (date-time) requirednakshatraarray of string requiredtithiarray of string required
Errors: 400, 401, 403, 404, 422, 429, 500. See error codes.
Example request
curl 'https://api.astrologics.in/v1/muhurat/vivah?from=2026-11-01&to=2026-11-30&lat=28.6139&lon=77.209' \
-H 'Authorization: Bearer al_test_YOUR_KEY'
Node.js
const res = await fetch("https://api.astrologics.in/v1/muhurat/vivah?from=2026-11-01&to=2026-11-30&lat=28.6139&lon=77.209", {
headers: { Authorization: "Bearer al_test_YOUR_KEY" },
});
console.log(JSON.stringify(await res.json(), null, 2));Python
import json
import urllib.error
import urllib.request
req = urllib.request.Request(
"https://api.astrologics.in/v1/muhurat/vivah?from=2026-11-01&to=2026-11-30&lat=28.6139&lon=77.209",
method="GET",
headers={"Authorization": "Bearer al_test_YOUR_KEY"},
)
try:
with urllib.request.urlopen(req) as res:
print(json.dumps(json.load(res), indent=2, ensure_ascii=False))
except urllib.error.HTTPError as err:
print(err.code, err.read().decode())PHP
<?php
$ch = curl_init('https://api.astrologics.in/v1/muhurat/vivah?from=2026-11-01&to=2026-11-30&lat=28.6139&lon=77.209');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['Authorization: Bearer al_test_YOUR_KEY'],
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch), PHP_EOL;Example response
200 OK · 7,082 characters
{
"data": {
"occasion": "vivah",
"place": {
"latitude": 28.6139,
"longitude": 77.209
},
"from": "2026-11-01",
"to": "2026-11-30",
"days": [
{
"date": "2026-11-01",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-02",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-03",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-04",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-05",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-06",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-07",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-08",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-09",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-10",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-11",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-12",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-13",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-14",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-15",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-16",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-17",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-18",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-19",
"status": "unavailable",
"reason": "chaturmas_full",
"message": "Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-20",
"status": "unavailable",
"reason": "chaturmas_partial",
"message": "Day partially overlaps with Prohibited Chaturmas",
"windows": []
},
{
"date": "2026-11-21",
"status": "available",
"reason": "available",
"message": "Auspicious Marriage Muhurat is Available",
"windows": [
{
"start": "2026-11-21T01:18:00.000Z",
"end": "2026-11-21T18:39:45.000Z",
"nakshatra": [
"uttara_bhadrapada",
"revati"
],
"tithi": [
"dwadashi"
]
}
]
},
{
"date": "2026-11-22",
"status": "unavailable",
"reason": "nakshatra",
"message": "Auspicious Nakshatra not Available",
"windows": []
},
{
"date": "2026-11-23",
"status": "unavailable",
"reason": "nakshatra",
"message": "Auspicious Nakshatra not Available",
"windows": []
},
{
"date": "2026-11-24",
"status": "available",
"reason": "available",
"message": "Auspicious Marriage Muhurat is Available",
"windows": [
{
"start": "2026-11-24T17:56:00.000Z",
"end": "2026-11-25T01:21:00.000Z",
"nakshatra": [
"rohini"
],
"tithi": [
"pratipada"
]
}
]
},
{
"date": "2026-11-25",
"status": "available",
"reason": "available",
"message": "Auspicious Marriage Muhurat is Available",
"windows": [
{
"start": "2026-11-25T01:21:00.000Z",
"end": "2026-11-26T01:22:00.000Z",
"nakshatra": [
"rohini",
"mrigashira"
],
"tithi": [
"pratipada",
"dwitiya"
]
}
]
},
{
"date": "2026-11-26",
"status": "available",
"reason": "available",
"message": "Auspicious Marriage Muhurat is Available",
"windows": [
{
"start": "2026-11-26T01:22:00.000Z",
"end": "2026-11-26T12:18:00.000Z",
"nakshatra": [
"mrigashira"
],
"tithi": [
"dwitiya",
"tritiya"
]
}
]
},
{
"date": "2026-11-27",
"status": "unavailable",
"reason": "nakshatra",
"message": "Auspicious Nakshatra not Available",
"windows": []
},
{
"date": "2026-11-28",
"status": "unavailable",
"reason": "nakshatra",
"message": "Auspicious Nakshatra not Available",
"windows": []
},
{
"date": "2026-11-29",
"status": "unavailable",
"reason": "nakshatra",
"message": "Auspicious Nakshatra not Available",
"windows": []
},
{
"date": "2026-11-30",
"status": "unavailable",
"reason": "yoga",
"message": "Prohibited Yoga is corrupting Auspicious Nakshatra",
"windows": []
}
]
},
"meta": {
"request_id": "req_example",
"api_version": "v1",
"engine_version": "2026.10.10",
"mode": "live",
"credits_charged": 2
},
"warnings": []
}Try it
More in Panchang & muhurat
- Daily Panchang API for a Date and Place: Panchang for a date and place
- Choghadiya API: Day and night choghadiya
- Muhurat Activities API: Supported muhurat activities
- Muhurat Search API: Days rated for an activity, with scores and rejection reasons
- Personal Muhurat API (Tara Bala): Muhurat windows with tara bala and chandra bala for one person
- Muhurat for a Day API: One day judged for an activity: the panchang, the verdict, the windows left after Rahu Kaal, Yamaganda and Gulika
- Yearly Muhurat List API (Vivah, Griha Pravesh): The dated muhurat list of a year for an occasion: the days that hold a window, with the windows
- Hora API (Planetary Hours): Hora: the 24 planetary hours of a day
- Muhurat Scan API (62 Days): Scan up to 62 days for an activity inside daily hours: the ten best days with their favourable windows