KP Prashna Ruling Planets API
Introducing the KP Prashna Ruling Planets API, a simple and reliable way to calculate the ruling planets based on the actual planetary positions at the time and location of a question. Unlike the KP Prashna Chart API, this endpoint does not require a horary number. Instead, it calculates the real Ascendant and Moon positions and derives the ruling planets according to the Krishnamurti Paddhati (KP) system.
The API provides detailed information about the Ascendant, Moon, Day Lord, Moon Sign Lord, Moon Star Lord, Moon Sub-Lord, Ascendant Sign Lord, Ascendant Star Lord, and Ascendant Sub-Lord.
Supported Language Codes
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:
Use the lan parameter in your request body to set your preferred response language. Default language is English (en).
API Endpoint
POST https://astroapi-3.divineapi.com/indian-api/v1/kp-prashna/ruling-planets
This endpoint calculates the KP-style planetary positions based on provided birth details.
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. |
| full_name* | String | Yes | Full name, e.g., Rahul Kumar. |
| day* | Integer | Yes | Date of birth, e.g., 24. |
| month* | Integer | Yes | Month of birth, e.g., 05. |
| year* | Integer | Yes | Year of birth, e.g., 2023. |
| hour* | Integer | Yes | Hour (24-hour format), e.g., 14. |
| min* | Integer | Yes | Minute, e.g., 40. |
| sec* | Integer | Yes | Second, e.g., 43. |
| gender* | String | Yes | Gender, e.g., male. |
| place* | String | Yes | Birthplace, e.g., New Delhi. |
| lat* | Float | Yes | Latitude, e.g., 28.7041. |
| lon* | Float | Yes | Longitude, e.g., 77.1025. |
| tzone* | Float | Yes | Timezone, e.g., 5.5. Refer to Timezone List. |
| lan | String | No | Response language. Default is English (en). |
200: OK KP Prashna Ruling Planets fetched successfully
{
"success": 1,
"data": {
"ascendant": {
"degree": 227.5358,
"sign": "Scorpio",
"nakshatra": "Jyeshtha",
"nakshatra_no": 18,
"pada": 1,
"nakshatra_lord": "Mercury",
"sub_lord": "Mercury",
"sub_sub_lord": "Moon"
},
"moon": {
"degree": 193.0904,
"sign": "Libra",
"nakshatra": "Swati",
"nakshatra_no": 15,
"pada": 2,
"nakshatra_lord": "Rahu",
"sub_lord": "Mercury",
"sub_sub_lord": "Venus"
},
"ruling_planets": {
"day_lord": "Moon",
"moon_sign_lord": "Venus",
"moon_star_lord": "Rahu",
"moon_sub_lord": "Mercury",
"ascendant_sign_lord": "Mars",
"ascendant_star_lord": "Mercury",
"ascendant_sub_lord": "Mercury"
},
"ruling_planets_list": [
"Moon",
"Venus",
"Rahu",
"Mercury",
"Mars"
]
}
}Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/kp-prashna/ruling-planets' \
--header 'Authorization: Bearer YOUR_AUTH_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"api_key": "YOUR_API_KEY",
"day": 12,
"month": 10,
"year": 2026,
"hour": 10,
"min": 30,
"sec": 0,
"lat": 28.6139,
"lon": 77.2090,
"tzone": 5.5,
"full_name": "Priya Sharma",
"place": "New Delhi",
"gender": "female"
}'