search

Copy page

Copy page as Markdown for LLMs

View as Markdown

View this page as plain text


Open in ChatGPT

Ask ChatGPT about this page

Open in Claude

Ask Claude about this page

Planetary Midpoints

Analyze Planetary Midpoints to understand the blended energies of two planets, revealing deeper psychological patterns, hidden influences, and combined planetary dynamics within an individual's natal chart.


API Endpoint

POST https://astroapi-8.divineapi.com/western-api/v1/planetary-midpoints

Returns Planetary Midpoints data in the response.


Headers

NameTypeDescription
Authorization*StringYour API Access Token (Bearer {token})

Request Body

KeyTypeDescription
api_key*StringYour Divine API key
full_name*StringPerson's full name, e.g. Rahul Kumar
day*IntegerBirth day, e.g. 24
month*IntegerBirth month, e.g. 05
year*IntegerBirth year, e.g. 2023
hour*IntegerBirth hour, e.g. 14
min*IntegerBirth minute, e.g. 40
sec*IntegerBirth second, e.g. 43
gender*StringGender, e.g. male
place*StringBirth place, e.g. New Delhi, India
lat*FloatLatitude, e.g. 28.7041
lon*FloatLongitude, e.g. 77.1025
lanStringLanguage code, e.g. en
tzone*FloatTimezone in decimal format, e.g. 5.5
node_typeStringmeannode or truenode (default: meannode)

200: OK Planetary Midpoints Details Fetched Successfully

{
    "status": "success",
    "code": 200,
    "message": "Request successful",
    "data": [
        {
            "planet_pair": [
                "Ascendant",
                "Sun"
            ],
            "full_degree": 124.343442,
            "sign": "Leo",
            "sign_no": 5,
            "longitude": "4:20:36",
            "house": 10
        },
        {
            "planet_pair": [
                "Ascendant",
                "Moon"
            ],
            "full_degree": 151.510173,
            "sign": "Virgo",
            "sign_no": 6,
            "longitude": "1:30:36",
            "house": 11
        },
        {
            "planet_pair": [
                "Ascendant",
                "Mars"
            ],
            "full_degree": 153.928008,
            "sign": "Virgo",
            "sign_no": 6,
            "longitude": "3:55:40",
            "house": 11
        },
        {
            "planet_pair": [
                "Ascendant",
                "Mercury"
            ],
            "full_degree": 112.373039,
            "sign": "Cancer",
            "sign_no": 4,
            "longitude": "22:22:22",
            "house": 10
        },
        .....
        ]
        }

Example Code Implementations

Below are example implementations in various programming environments.


cURL

curl --location 'https://astroapi-8.divineapi.com/western-api/v1/planetary-midpoints' \
--header 'Authorization: Bearer your API Access 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"'

NodeJS

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-8.divineapi.com/western-api/v1/planetary-midpoints',
  'headers': {
    'Authorization': 'Bearer your API Access 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'
  }
};
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("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");

var settings = {
  "url": "https://astroapi-8.divineapi.com/western-api/v1/planetary-midpoints",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer your API Access 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/western-api/v1/planetary-midpoints"

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'}
files=[

]
headers = {
  'Authorization': 'Bearer your API Access Token'
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)


Implementation Notes

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 appropriately.

Test all endpoints via Postman first and use only HTTPS for secure communication.