Jain Pachakkhan API
The Jain Pachakkhan API is part of the Muhurat Finder suite and returns the Jain Pachakkhan (vow) timings for a specific date, as per Jain tradition. For the requested day it provides the day and night prahar boundaries and the list of Pachakkhan periods with their timings.
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/jain-pachakkhan
This endpoint returns the Jain Pachakkhan (vow) timings for the given date.
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 Jain Pachakkhan timings fetched successfully
{
"success": 1,
"data": {
"muhurat_type": "jain-pachakkhan",
"date": "2023-05-24",
"weekday": "Wednesday",
"sunrise": "2023-05-24 05:26",
"sunset": "2023-05-24 19:09",
"prahars": {
"day": [
{
"prahar": 1,
"start": "2023-05-24 05:26",
"end": "2023-05-24 08:52"
},
{
"prahar": 2,
"start": "2023-05-24 08:52",
"end": "2023-05-24 12:18"
},
{
"prahar": 3,
"start": "2023-05-24 12:18",
"end": "2023-05-24 15:44"
},
{
"prahar": 4,
"start": "2023-05-24 15:44",
"end": "2023-05-24 19:09"
}
],
"night": [
{
"prahar": 1,
"start": "2023-05-24 19:09",
"end": "2023-05-24 21:43"
},
{
"prahar": 2,
"start": "2023-05-24 21:43",
"end": "2023-05-25 00:17"
},
{
"prahar": 3,
"start": "2023-05-25 00:17",
"end": "2023-05-25 02:51"
},
{
"prahar": 4,
"start": "2023-05-25 02:51",
"end": "2023-05-25 05:25"
}
]
},
"pachakkhans": [
{
"name": "Navkarshi",
"time": "2023-05-24 06:21"
},
{
"name": "Porshi",
"time": "2023-05-24 08:52"
},
{
"name": "Sadha Porshi",
"time": "2023-05-24 10:35"
},
{
"name": "Purimaddha",
"time": "2023-05-24 12:18"
},
{
"name": "Avaddha",
"time": "2023-05-24 15:44"
},
{
"name": "Chovihar",
"time": "2023-05-24 18:15"
},
{
"name": "Evening Pratikraman",
"time": "2023-05-24 19:09"
},
{
"name": "Santhara Porshi",
"time": "2023-05-24 21:43"
},
{
"name": "Nishita",
"time": "2023-05-25 00:17"
},
{
"name": "Morning Pratikraman",
"time": "2023-05-25 02:51"
}
]
}
}Notes on Response Fields
muhurat_type: The muhurat type, here jain-pachakkhan.
date, weekday, sunrise and sunset: The day being analysed and its sunrise and sunset reference times.
prahars: The day and night prahar (time-division) boundaries, given as day and night.
pachakkhans: The list of Pachakkhan (Jain vow) periods, each with a name and its time.
Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/muhurat/jain-pachakkhan' \
--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/jain-pachakkhan',
'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/jain-pachakkhan",
"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/jain-pachakkhan"
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.