KP Prashna Chart API
Introducing the KP Prashna Chart API, a powerful astrological API designed to generate horary charts based on the Krishnamurti Paddhati (KP) system. It allows users to generate a Prashna (Horary) chart using a horary number between 1 and 249, along with the actual date, time, and geographical location at which the question is asked.
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/chart
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. |
| horary_number* | Integer | Yes | Horary number selected by the querent. Must be between 1 and 249. |
| 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). |
| node_type | String | No | truenode or meannode, default is meannode |
200: OK Planets KP Prashna Chart fetched successfully
{
"success": 1,
"data": {
"horary_number": 100,
"ascendant_source": {
"nakshatra": "Purva Phalguni",
"nakshatra_lord": "Venus",
"sub_lord": "Mercury",
"start_degree": 144,
"end_degree": 145.8889
},
"cusps": [
{
"house": 1,
"degree": 144,
"sign": "Leo",
"sign_no": 5,
"nakshatra": "Purva Phalguni",
"nakshatra_no": 11,
"pada": 4,
"nakshatra_lord": "Venus",
"sub_lord": "Mercury",
"sub_sub_lord": "Mercury"
},
{
"house": 2,
"degree": 171.3832,
"sign": "Virgo",
"sign_no": 6,
"nakshatra": "Hasta",
"nakshatra_no": 13,
"pada": 4,
"nakshatra_lord": "Moon",
"sub_lord": "Venus",
"sub_sub_lord": "Rahu"
},
{
"house": 3,
"degree": 201.7372,
"sign": "Libra",
"sign_no": 7,
"nakshatra": "Vishakha",
"nakshatra_no": 16,
"pada": 1,
"nakshatra_lord": "Jupiter",
"sub_lord": "Jupiter",
"sub_sub_lord": "Rahu"
},
{
"house": 4,
"degree": 233.4649,
"sign": "Scorpio",
"sign_no": 8,
"nakshatra": "Jyeshtha",
"nakshatra_no": 18,
"pada": 3,
"nakshatra_lord": "Mercury",
"sub_lord": "Mars",
"sub_sub_lord": "Rahu"
},
{
"house": 5,
"degree": 265.0628,
"sign": "Sagittarius",
"sign_no": 9,
"nakshatra": "Purva Ashadha",
"nakshatra_no": 20,
"pada": 4,
"nakshatra_lord": "Venus",
"sub_lord": "Mercury",
"sub_sub_lord": "Rahu"
},
{
"house": 6,
"degree": 295.5444,
"sign": "Capricorn",
"sign_no": 10,
"nakshatra": "Dhanishta",
"nakshatra_no": 23,
"pada": 1,
"nakshatra_lord": "Mars",
"sub_lord": "Rahu",
"sub_sub_lord": "Venus"
},
{
"house": 7,
"degree": 324,
"sign": "Aquarius",
"sign_no": 11,
"nakshatra": "Purva Bhadrapada",
"nakshatra_no": 25,
"pada": 2,
"nakshatra_lord": "Jupiter",
"sub_lord": "Mercury",
"sub_sub_lord": "Mercury"
},
{
"house": 8,
"degree": 351.3832,
"sign": "Pisces",
"sign_no": 12,
"nakshatra": "Revati",
"nakshatra_no": 27,
"pada": 2,
"nakshatra_lord": "Mercury",
"sub_lord": "Venus",
"sub_sub_lord": "Mercury"
},
{
"house": 9,
"degree": 21.7372,
"sign": "Aries",
"sign_no": 1,
"nakshatra": "Bharani",
"nakshatra_no": 2,
"pada": 3,
"nakshatra_lord": "Venus",
"sub_lord": "Jupiter",
"sub_sub_lord": "Rahu"
},
{
"house": 10,
"degree": 53.4649,
"sign": "Taurus",
"sign_no": 2,
"nakshatra": "Mrigashira",
"nakshatra_no": 5,
"pada": 1,
"nakshatra_lord": "Mars",
"sub_lord": "Mars",
"sub_sub_lord": "Rahu"
},
{
"house": 11,
"degree": 85.0628,
"sign": "Gemini",
"sign_no": 3,
"nakshatra": "Punarvasu",
"nakshatra_no": 7,
"pada": 2,
"nakshatra_lord": "Jupiter",
"sub_lord": "Mercury",
"sub_sub_lord": "Rahu"
},
{
"house": 12,
"degree": 115.5444,
"sign": "Cancer",
"sign_no": 4,
"nakshatra": "Ashlesha",
"nakshatra_no": 9,
"pada": 3,
"nakshatra_lord": "Mercury",
"sub_lord": "Rahu",
"sub_sub_lord": "Venus"
}
],
"planets": [
{
"name": "Sun",
"longitude": 174.7557951,
"speed": 0.9895329,
"is_retro": false,
"nakshatra": "Chitra",
"nakshatra_no": 14,
"pada": 1,
"nakshatra_lord": "Mars",
"sub_lord": "Rahu",
"sub_sub_lord": "Saturn",
"sign": "Virgo",
"sign_no": 6,
"house": 2
},
{
"name": "Moon",
"longitude": 193.0903801,
"speed": 12.6411815,
"is_retro": false,
"nakshatra": "Swati",
"nakshatra_no": 15,
"pada": 2,
"nakshatra_lord": "Rahu",
"sub_lord": "Mercury",
"sub_sub_lord": "Venus",
"sign": "Libra",
"sign_no": 7,
"house": 2
},
{
"name": "Mercury",
"longitude": 199.7603085,
"speed": 0.9911117,
"is_retro": false,
"nakshatra": "Swati",
"nakshatra_no": 15,
"pada": 4,
"nakshatra_lord": "Rahu",
"sub_lord": "Mars",
"sub_sub_lord": "Ketu",
"sign": "Libra",
"sign_no": 7,
"house": 2
},
{
"name": "Venus",
"longitude": 192.7920682,
"speed": -0.348606,
"is_retro": true,
"nakshatra": "Swati",
"nakshatra_no": 15,
"pada": 2,
"nakshatra_lord": "Rahu",
"sub_lord": "Mercury",
"sub_sub_lord": "Mercury",
"sign": "Libra",
"sign_no": 7,
"house": 2
},
{
"name": "Mars",
"longitude": 103.9514898,
"speed": 0.5582632,
"is_retro": false,
"nakshatra": "Pushya",
"nakshatra_no": 8,
"pada": 4,
"nakshatra_lord": "Saturn",
"sub_lord": "Rahu",
"sub_sub_lord": "Mercury",
"sign": "Cancer",
"sign_no": 4,
"house": 11
},
{
"name": "Jupiter",
"longitude": 117.3671771,
"speed": 0.1615082,
"is_retro": false,
"nakshatra": "Ashlesha",
"nakshatra_no": 9,
"pada": 4,
"nakshatra_lord": "Mercury",
"sub_lord": "Jupiter",
"sub_sub_lord": "Sun",
"sign": "Cancer",
"sign_no": 4,
"house": 12
},
{
"name": "Saturn",
"longitude": 346.5635774,
"speed": -0.0774501,
"is_retro": true,
"nakshatra": "Uttara Bhadrapada",
"nakshatra_no": 26,
"pada": 4,
"nakshatra_lord": "Saturn",
"sub_lord": "Jupiter",
"sub_sub_lord": "Rahu",
"sign": "Pisces",
"sign_no": 12,
"house": 7
},
{
"name": "Uranus",
"longitude": 41.1547589,
"speed": -0.0250224,
"is_retro": true,
"nakshatra": "Rohini",
"nakshatra_no": 4,
"pada": 1,
"nakshatra_lord": "Moon",
"sub_lord": "Mars",
"sub_sub_lord": "Mars",
"sign": "Taurus",
"sign_no": 2,
"house": 9
},
{
"name": "Neptune",
"longitude": 338.4216602,
"speed": -0.026374,
"is_retro": true,
"nakshatra": "Uttara Bhadrapada",
"nakshatra_no": 26,
"pada": 2,
"nakshatra_lord": "Saturn",
"sub_lord": "Venus",
"sub_sub_lord": "Venus",
"sign": "Pisces",
"sign_no": 12,
"house": 7
},
{
"name": "Pluto",
"longitude": 278.935727,
"speed": -0.0018843,
"is_retro": true,
"nakshatra": "Uttara Ashadha",
"nakshatra_no": 21,
"pada": 4,
"nakshatra_lord": "Sun",
"sub_lord": "Venus",
"sub_sub_lord": "Jupiter",
"sign": "Capricorn",
"sign_no": 10,
"house": 5
},
{
"name": "Rahu",
"longitude": 302.9849943,
"speed": -0.0529683,
"is_retro": true,
"nakshatra": "Dhanishta",
"nakshatra_no": 23,
"pada": 3,
"nakshatra_lord": "Mars",
"sub_lord": "Venus",
"sub_sub_lord": "Venus",
"sign": "Aquarius",
"sign_no": 11,
"house": 6
},
{
"name": "Ketu",
"longitude": 122.98499429999998,
"speed": -0.0529683,
"is_retro": true,
"nakshatra": "Magha",
"nakshatra_no": 10,
"pada": 1,
"nakshatra_lord": "Ketu",
"sub_lord": "Venus",
"sub_sub_lord": "Ketu",
"sign": "Leo",
"sign_no": 5,
"house": 12
}
],
"significators": {
"houses": {
"1": {
"house": 1,
"house_lord": "Sun",
"occupants": [],
"significators": [
"Mars",
"Sun"
]
},
"2": {
"house": 2,
"house_lord": "Mercury",
"occupants": [
"Sun",
"Moon",
"Mercury",
"Venus"
],
"significators": [
"Mars",
"Rahu",
"Sun",
"Moon",
"Mercury",
"Venus"
]
},
"3": {
"house": 3,
"house_lord": "Venus",
"occupants": [],
"significators": [
"Rahu",
"Venus"
]
},
"4": {
"house": 4,
"house_lord": "Mars",
"occupants": [],
"significators": [
"Saturn",
"Mars"
]
},
"5": {
"house": 5,
"house_lord": "Jupiter",
"occupants": [
"Pluto"
],
"significators": [
"Sun",
"Pluto",
"Mercury",
"Jupiter"
]
},
"6": {
"house": 6,
"house_lord": "Saturn",
"occupants": [
"Rahu"
],
"significators": [
"Mars",
"Rahu",
"Saturn"
]
},
"7": {
"house": 7,
"house_lord": "Saturn",
"occupants": [
"Saturn",
"Neptune"
],
"significators": [
"Saturn",
"Neptune"
]
},
"8": {
"house": 8,
"house_lord": "Jupiter",
"occupants": [],
"significators": [
"Mercury",
"Jupiter"
]
},
"9": {
"house": 9,
"house_lord": "Mars",
"occupants": [
"Uranus"
],
"significators": [
"Moon",
"Uranus",
"Saturn",
"Mars"
]
},
"10": {
"house": 10,
"house_lord": "Venus",
"occupants": [],
"significators": [
"Rahu",
"Venus"
]
},
"11": {
"house": 11,
"house_lord": "Mercury",
"occupants": [
"Mars"
],
"significators": [
"Saturn",
"Mars",
"Rahu",
"Mercury"
]
},
"12": {
"house": 12,
"house_lord": "Moon",
"occupants": [
"Jupiter",
"Ketu"
],
"significators": [
"Mercury",
"Ketu",
"Jupiter",
"Rahu",
"Moon"
]
}
},
"planets": [
{
"planet": "Sun",
"significator_of_houses": [
1,
2,
4,
9,
11
]
},
{
"planet": "Moon",
"significator_of_houses": [
2,
6,
12
]
},
{
"planet": "Mercury",
"significator_of_houses": [
2,
6,
11
]
},
{
"planet": "Venus",
"significator_of_houses": [
2,
3,
6,
10
]
},
{
"planet": "Mars",
"significator_of_houses": [
4,
6,
7,
9,
11
]
},
{
"planet": "Jupiter",
"significator_of_houses": [
2,
5,
8,
11,
12
]
},
{
"planet": "Saturn",
"significator_of_houses": [
6,
7
]
},
{
"planet": "Uranus",
"significator_of_houses": [
2,
9,
12
]
},
{
"planet": "Neptune",
"significator_of_houses": [
6,
7
]
},
{
"planet": "Pluto",
"significator_of_houses": [
1,
2,
5
]
},
{
"planet": "Rahu",
"significator_of_houses": [
4,
6,
9,
11
]
},
{
"planet": "Ketu",
"significator_of_houses": [
12
]
}
]
},
"current_dasha": {
"mahadasha": {
"lord": "Rahu",
"start": "2018-02-08 16:48:33 UT",
"end": "2036-02-09 07:33:24 UT"
},
"antardasha": {
"lord": "Mercury",
"start": "2026-01-21 11:43:22 UT",
"end": "2028-08-09 21:24:43 UT"
},
"pratyantardasha": {
"lord": "Venus",
"start": "2026-07-26 18:27:38 UT",
"end": "2026-12-29 00:04:31 UT"
},
"houses_matching_current_dasha": [
2,
3,
5,
6,
8,
10,
11,
12
]
}
}
}Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/kp-prashna/chart' \
--header 'Authorization: Bearer YOUR_AUTH_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"api_key": "YOUR_API_KEY",
"horary_number": 100,
"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"
}'