Do Ghati Muhurat API
The Do Ghati Muhurat API is part of the Muhurat Finder suite and returns the Do Ghati muhurats for a specific date, as per Vedic astrology. For the requested day it divides the day and night into muhurat periods and marks which are auspicious, with precise start and end times for each.
Supported Language Codes
This API supports multiple languages. You can get the response in a different language by passing the lan field in the request body.
Reference Article:
https://support.divineapi.com/general-api-support/translating-an-indian-vedic-apis-into-a-different-language
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| bn | Bengali |
| ma | Marathi |
| tm | Tamil |
| tl | Telugu |
| ml | Malayalam |
| kn | Kannada |
Guide: If lan is not sent, the default response language is en.
API Endpoint
POST https://astroapi-3.divineapi.com/indian-api/v1/muhurat/do-ghati
This endpoint returns the Do Ghati muhurats for the given date, split across the day and the night.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization | String | Your API Access Token. Example: Bearer {token} |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| api_key | String | Yes | Your API key. |
| day | Integer | Yes | Day of Panchang, e.g. 24. |
| month | Integer | Yes | Month of Panchang, e.g. 05. |
| year | Integer | Yes | Year of Panchang, e.g. 2023. |
| place | String | No | Place name, e.g. New Delhi. |
| lat | Float | Yes | Latitude, e.g. 28.6139. |
| lon | Float | Yes | Longitude, e.g. 77.2090. |
| tzone | Float | Yes | Timezone, e.g. 5.5. See: https://developers.divineapi.com/divine-api/understanding-time-zones-a-comprehensive-guide |
| lan | String | No | Language code as per supported list. Default is en. |
200: OK Do Ghati muhurats fetched successfully
{
"success": 1,
"data": {
"muhurat_type": "do-ghati",
"date": "2023-05-24",
"weekday": "Wednesday",
"sunrise": "2023-05-24 05:26",
"sunset": "2023-05-24 19:09",
"day_muhurats": [
{
"position": 1,
"period": "Pratah",
"special": null,
"name": "Rudra",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 05:26",
"muhurat_end": "2023-05-24 06:21",
"duration_minutes": 55
},
{
"position": 2,
"period": "Pratah",
"special": null,
"name": "Uraga",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 06:21",
"muhurat_end": "2023-05-24 07:16",
"duration_minutes": 55
},
{
"position": 3,
"period": "Pratah",
"special": null,
"name": "Mitra",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 07:16",
"muhurat_end": "2023-05-24 08:11",
"duration_minutes": 55
},
{
"position": 4,
"period": "Sangava",
"special": null,
"name": "Pitara",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 08:11",
"muhurat_end": "2023-05-24 09:05",
"duration_minutes": 55
},
{
"position": 5,
"period": "Sangava",
"special": null,
"name": "Vasu",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 09:05",
"muhurat_end": "2023-05-24 10:00",
"duration_minutes": 55
},
{
"position": 6,
"period": "Sangava",
"special": null,
"name": "Ambu",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 10:00",
"muhurat_end": "2023-05-24 10:55",
"duration_minutes": 55
},
{
"position": 7,
"period": "Madhyahna",
"special": null,
"name": "Vishwedeva",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 10:55",
"muhurat_end": "2023-05-24 11:50",
"duration_minutes": 55
},
{
"position": 8,
"period": "Madhyahna",
"special": "Abhijit Muhurat",
"name": "Vidhi",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 11:50",
"muhurat_end": "2023-05-24 12:45",
"duration_minutes": 55
},
{
"position": 9,
"period": "Madhyahna",
"special": null,
"name": "Brahma",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 12:45",
"muhurat_end": "2023-05-24 13:40",
"duration_minutes": 55
},
{
"position": 10,
"period": "Aparahna",
"special": null,
"name": "Indra",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 13:40",
"muhurat_end": "2023-05-24 14:35",
"duration_minutes": 55
},
{
"position": 11,
"period": "Aparahna",
"special": "Vijay Muhurat",
"name": "Indragni",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 14:35",
"muhurat_end": "2023-05-24 15:30",
"duration_minutes": 55
},
{
"position": 12,
"period": "Aparahna",
"special": null,
"name": "Daitya",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 15:30",
"muhurat_end": "2023-05-24 16:25",
"duration_minutes": 55
},
{
"position": 13,
"period": "Sayahna",
"special": null,
"name": "Varuna",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 16:25",
"muhurat_end": "2023-05-24 17:20",
"duration_minutes": 55
},
{
"position": 14,
"period": "Sayahna",
"special": null,
"name": "Aryama",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 17:20",
"muhurat_end": "2023-05-24 18:15",
"duration_minutes": 55
},
{
"position": 15,
"period": "Sayahna",
"special": null,
"name": "Bhaga",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 18:15",
"muhurat_end": "2023-05-24 19:09",
"duration_minutes": 55
}
],
"night_muhurats": [
{
"position": 1,
"period": "Pradosha",
"special": "Sayan Sandhya",
"name": "Ishwara",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 19:09",
"muhurat_end": "2023-05-24 19:50",
"duration_minutes": 41
},
{
"position": 2,
"period": "Pradosha",
"special": "1/2 Sayan Sandhya",
"name": "Ajaikapada",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 19:50",
"muhurat_end": "2023-05-24 20:32",
"duration_minutes": 41
},
{
"position": 3,
"period": "Pradosha",
"special": null,
"name": "Ahirbudhnya",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 20:32",
"muhurat_end": "2023-05-24 21:13",
"duration_minutes": 41
},
{
"position": 4,
"period": "Ratri",
"special": null,
"name": "Pusha",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 21:13",
"muhurat_end": "2023-05-24 21:54",
"duration_minutes": 41
},
{
"position": 5,
"period": "Ratri",
"special": null,
"name": "Ashwini Kumara",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 21:54",
"muhurat_end": "2023-05-24 22:35",
"duration_minutes": 41
},
{
"position": 6,
"period": "Ratri",
"special": null,
"name": "Yama",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 22:35",
"muhurat_end": "2023-05-24 23:16",
"duration_minutes": 41
},
{
"position": 7,
"period": "Ratri",
"special": null,
"name": "Agni",
"is_auspicious": "false",
"muhurat_start": "2023-05-24 23:16",
"muhurat_end": "2023-05-24 23:57",
"duration_minutes": 41
},
{
"position": 8,
"period": "Nishita",
"special": "Mahanishita Muhurat",
"name": "Brahma",
"is_auspicious": "true",
"muhurat_start": "2023-05-24 23:57",
"muhurat_end": "2023-05-25 00:38",
"duration_minutes": 41
},
{
"position": 9,
"period": "Ratri",
"special": null,
"name": "Chandra",
"is_auspicious": "true",
"muhurat_start": "2023-05-25 00:38",
"muhurat_end": "2023-05-25 01:19",
"duration_minutes": 41
},
{
"position": 10,
"period": "Ratri",
"special": null,
"name": "Aditi",
"is_auspicious": "true",
"muhurat_start": "2023-05-25 01:19",
"muhurat_end": "2023-05-25 02:00",
"duration_minutes": 41
},
{
"position": 11,
"period": "Ratri",
"special": null,
"name": "Brihaspati",
"is_auspicious": "true",
"muhurat_start": "2023-05-25 02:00",
"muhurat_end": "2023-05-25 02:41",
"duration_minutes": 41
},
{
"position": 12,
"period": "Ratri",
"special": null,
"name": "Vishnu",
"is_auspicious": "true",
"muhurat_start": "2023-05-25 02:41",
"muhurat_end": "2023-05-25 03:22",
"duration_minutes": 41
},
{
"position": 13,
"period": "Ratri",
"special": null,
"name": "Surya",
"is_auspicious": "true",
"muhurat_start": "2023-05-25 03:22",
"muhurat_end": "2023-05-25 04:03",
"duration_minutes": 41
},
{
"position": 14,
"period": "Arunodaya",
"special": "1/2 Pratah Sandhya",
"name": "Tvashta",
"is_auspicious": "true",
"muhurat_start": "2023-05-25 04:03",
"muhurat_end": "2023-05-25 04:44",
"duration_minutes": 41
},
{
"position": 15,
"period": "Arunodaya",
"special": "Pratah Sandhya",
"name": "Samirana",
"is_auspicious": "true",
"muhurat_start": "2023-05-25 04:44",
"muhurat_end": "2023-05-25 05:25",
"duration_minutes": 41
}
]
}
}Notes on Response Fields
muhurat_type: The muhurat type, here do-ghati.
date, weekday, sunrise and sunset: The day being analysed and its sunrise and sunset reference times.
day_muhurats and night_muhurats: The Do Ghati muhurats for the day and the night. Each item includes its position, period, name, a special label, an is_auspicious flag, the muhurat_start and muhurat_end times, and the duration_minutes.
Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/muhurat/do-ghati' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'day="24"' \
--form 'month="05"' \
--form 'year="2023"' \
--form 'place="New Delhi"' \
--form 'lat="28.6139"' \
--form 'lon="77.2090"' \
--form 'tzone="5.5"' \
--form 'lan="en"'Node.js
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-3.divineapi.com/indian-api/v1/muhurat/do-ghati',
'headers': {
'Authorization': 'Bearer {Your Auth Token}'
},
formData: {
'api_key': '{Your API Key}',
'day': '24',
'month': '05',
'year': '2023',
'Place': 'New Delhi',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5',
'lan': 'en'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});JavaScript (jQuery AJAX)
var form = new FormData();
form.append("api_key", "{Your API Key}");
form.append("day", "24");
form.append("month", "05");
form.append("year", "2023");
form.append("Place", "New Delhi");
form.append("lat", "28.6139");
form.append("lon", "77.2090");
form.append("tzone", "5.5");
form.append("lan", "en");
var settings = {
"url": "https://astroapi-3.divineapi.com/indian-api/v1/muhurat/do-ghati",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer {Your Auth Token}"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});Python
import requests
url = "https://astroapi-3.divineapi.com/indian-api/v1/muhurat/do-ghati"
payload = {'api_key': '{Your API Key}',
'day': '24',
'month': '05',
'year': '2023',
'Place': 'New Delhi',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5',
'lan': 'en'}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)Best Practices
Always send both Authorization: Bearer {Your Auth Token} and api_key in every request.
Make sure lat, lon, and tzone match the user’s actual location, since auspicious timings are location-specific.
Some fields may return empty arrays ([]) for certain dates; handle this gracefully in your UI.
Always use HTTPS for secure communication.
Use the lan parameter to localize the auspicious timing labels for your target audience.