KP Prashna Instant Questions API
Introducing the KP Prashna Instant Questions API, a simple and reliable way to fetch a predefined list of commonly asked horary astrology questions along with their corresponding house significators. This API is designed to help users select questions from a predefined list rather than entering free-text questions.
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/instant-questions
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. |
200: OK KP Prashna Instant Questions fetched successfully
{
"success": 1,
"data": {
"questions": [
{
"key": "marriage",
"question": "Will I get married soon?",
"house_hint": [
2,
7,
11
]
},
{
"key": "job",
"question": "Will I get a job soon?",
"house_hint": [
2,
6,
10,
11
]
},
{
"key": "health",
"question": "Will I recover from this illness?",
"house_hint": [
1,
6,
8,
12
]
},
{
"key": "property",
"question": "Will I acquire this property?",
"house_hint": [
4,
11,
12
]
},
{
"key": "foreign_travel",
"question": "Will I travel/settle abroad?",
"house_hint": [
3,
9,
12
]
},
{
"key": "business",
"question": "Will my business succeed?",
"house_hint": [
7,
10,
11
]
},
{
"key": "litigation",
"question": "Will I win this court case?",
"house_hint": [
1,
6,
7,
11
]
},
{
"key": "education",
"question": "Will I pass this exam?",
"house_hint": [
4,
9,
11
]
},
{
"key": "finance",
"question": "Will I recover this money?",
"house_hint": [
2,
6,
11
]
},
{
"key": "lost_object",
"question": "Will I find this lost item?",
"house_hint": [
2,
8,
11
]
},
{
"key": "progeny",
"question": "Will I have a child soon?",
"house_hint": [
2,
5,
11
]
},
{
"key": "short_travel",
"question": "Will this journey be successful?",
"house_hint": [
3,
11
]
}
]
}
}Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/kp-prashna/instant-questions' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"'