Chandramasa List
The Chandramasa List API returns the Amanta and Purnimanta Chandramasa for each day of a given month and year, based on the provided geographic location and timezone.
API Endpoint
POST https://astroapi-8.divineapi.com/indian-api/v1/chandramasa-listReturns the Chandramasa list for the requested month and location.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token, eg: Bearer {token} |
Request Body
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your API key |
| month* | Integer | Month for which Chandramasa is required (01–12), eg: 05 |
| year* | Integer | Year for which Chandramasa is required, eg: 2023 |
| lat* | Float | Latitude of the location, eg: 28.6139 |
| lon* | Float | Longitude of the location, eg: 77.2090 |
| tzone* | Float | Timezone of the location, eg: 5.5 |
| place* | String | Location name, eg: New Delhi |
200: OK Chandramasa List Fetched Successfully
{
"status": "success",
"code": 200,
"message": "Request successful",
"data": [
{
"date": "2023-05-01",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Vaisakh",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-02",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Vaisakh",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-03",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Vaisakh",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-04",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Vaisakh",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-05",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Vaisakh",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-06",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-07",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-08",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-09",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-10",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-11",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-12",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-13",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-14",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-15",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-16",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-17",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-18",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-19",
"chandramasa": [
{
"month": "Vaisakh",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-20",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-21",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-22",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-23",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-24",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-25",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-26",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-27",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-28",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-29",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-30",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
},
{
"date": "2023-05-31",
"chandramasa": [
{
"month": "Jyeshtha",
"adhik": false,
"type": "Amanta"
},
{
"month": "Jyeshtha",
"adhik": false,
"type": "Purnimanta"
}
]
}
]
}Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-8.divineapi.com/indian-api/v1/chandramasa-list' \
--header 'Authorization: Bearer {token}' \
--form 'api_key="Your API Key"' \
--form 'month="05"' \
--form 'year="2023"' \
--form 'lat="28.6139"' \
--form 'lon="77.2090"' \
--form 'tzone="5.5"' \
--form 'place="New Delhi"'NodeJS
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-8.divineapi.com/indian-api/v1/chandramasa-list',
'headers': {
'Authorization': 'Bearer {token}'
},
formData: {
'api_key': 'Your API Key',
'month': '05',
'year': '2023',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5',
'place': 'New Delhi'
}
};
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("month", "05");
form.append("year", "2023");
form.append("lat", "28.6139");
form.append("lon", "77.2090");
form.append("tzone", "5.5");
form.append("place", "New Delhi");
var settings = {
"url": "https://astroapi-8.divineapi.com/indian-api/v1/chandramasa-list",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer {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-8.divineapi.com/indian-api/v1/chandramasa-list"
payload = {'api_key': 'Your API Key',
'month': '05',
'year': '2023',
'lat': '28.6139',
'lon': '77.2090',
'tzone': '5.5',
'place': 'New Delhi'}
files=[
]
headers = {
'Authorization': 'Bearer {token}'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Implementation Notes
Chandramasa calculations depend on location and timezone, so accurate latitude, longitude, and tzone are required.
Both Amanta and Purnimanta systems are returned for each date when applicable.
Use Authorization: Bearer {Your Auth Token} and {Your API Key} securely.
Always validate API responses and handle 4xx/5xx errors gracefully.