Copy page
Copy page as Markdown for LLMs
The Prenatal List API returns key prenatal lunation events (New Moon & Full Moon) occurring before birth. API Endpoint
POST https://astroapi-8.divineapi.com/western-api/v1/prenatal-list| Name | Type | Description |
|---|---|---|
| Authorization* | String | your API Access Token (eg: Bearer {token}) |
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your API key |
| full_name* | String | Full name, eg: Rahul Kumar |
| day* | Integer | Birth day, eg: 24 |
| month* | Integer | Birth month, eg: 05 |
| year* | Integer | Birth year, eg: 2023 |
| hour* | Integer | Birth hour, eg: 14 |
| min* | Integer | Birth minute, eg: 40 |
| sec* | Integer | Birth second, eg: 43 |
| gender* | String | Gender, eg: male |
| place* | String | Birth place, eg: New Delhi, India |
| lat* | Float | Latitude, eg: 28.7041 |
| lon* | Float | Longitude, eg: 77.1025 |
| tzone* | Float | Timezone, eg: 5.5 |
| prenatal_type* | String | Prenatal type, eg: SYZYGY (Allowed: SYZYGY/EPOCH/ECLIPSE) |
{
"status": "success",
"code": 200,
"message": "Request successful",
"data": [
{
"pahse": "Full Moon",
"prenatal_key": "SYZYGY_FM_P_1683327823000",
"datetime": "2023-05-05 23:03:43",
"days": -19
},
{
"pahse": "New Moon",
"prenatal_key": "SYZYGY_NM_P_1684531363000",
"datetime": "2023-05-19 21:22:43",
"days": -5
}
]
}Below are example implementations in various programming environments.
curl --location 'https://astroapi-8.divineapi.com/western-api/v1/prenatal-list' \
--header 'Authorization: Bearer {token}' \
--form 'api_key="Your API Key"' \
--form 'full_name="Rahul Kumar"' \
--form 'day="24"' \
--form 'month="05"' \
--form 'year="2023"' \
--form 'hour="14"' \
--form 'min="40"' \
--form 'sec="43"' \
--form 'gender="male"' \
--form 'place="New Delhi, India"' \
--form 'lat="28.7041"' \
--form 'lon="77.1025"' \
--form 'tzone="5.5"' \
--form 'prenatal_type="SYZYGY"'var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-8.divineapi.com/western-api/v1/prenatal-list',
'headers': {
'Authorization': 'Bearer {token}'
},
formData: {
'api_key': 'Your API Key',
'full_name': 'Rahul Kumar',
'day': '24',
'month': '05',
'year': '2023',
'hour': '14',
'min': '40',
'sec': '43',
'gender': 'male',
'place': 'New Delhi, India',
'lat': '28.7041',
'lon': '77.1025',
'tzone': '5.5',
'prenatal_type': 'SYZYGY'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var form = new FormData();
form.append("api_key", "Your API Key");
form.append("full_name", "Rahul Kumar");
form.append("day", "24");
form.append("month", "05");
form.append("year", "2023");
form.append("hour", "14");
form.append("min", "40");
form.append("sec", "43");
form.append("gender", "male");
form.append("place", "New Delhi, India");
form.append("lat", "28.7041");
form.append("lon", "77.1025");
form.append("tzone", "5.5");
form.append("prenatal_type", "SYZYGY");
var settings = {
"url": "https://astroapi-8.divineapi.com/western-api/v1/prenatal-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);
});import requests
url = "https://astroapi-8.divineapi.com/western-api/v1/prenatal-list"
payload = {'api_key': 'Your API Key',
'full_name': 'Rahul Kumar',
'day': '24',
'month': '05',
'year': '2023',
'hour': '14',
'min': '40',
'sec': '43',
'gender': 'male',
'place': 'New Delhi, India',
'lat': '28.7041',
'lon': '77.1025',
'tzone': '5.5',
'prenatal_type': 'SYZYGY'}
files=[
]
headers = {
'Authorization': 'Bearer {token}'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Use Authorization: Bearer {Your Auth Token} and {Your API Key} securely; never expose them in client-side code.
Provide date, time, and coordinates in correct numeric formats; use decimal timezone values (e.g., 5.5).
Check HTTP status codes, log responses, and handle 4xx/5xx errors gracefully.