API Reference / Vedic Astrology / Prashna
/v1/prashna/kp-horary
KP horary chart for a number from 1 to 249: horary ascendant, Placidus cusps with lords and significators, planets, 4-step chain and ruling planets.
What this tells you
In KP horary the querent names a number from 1 to 249. The zodiac is cut into 27 nakshatras × 9 Vimshottari subs (243 parts), and the six subs that cross a sign boundary are split, giving 249 parts counted from 0° Aries. The first degree of the chosen part becomes the ascendant; the house cusps are the Placidus cusps that have that ascendant at the place of judgement, and the planets are taken at the moment of judgement.
Request
All requests require an Authorization header with your dv_live_* API key.
curl "https://api.lifeastroapi.com/v1/prashna/kp-horary?date=2027-01-15&tz=Asia%2FKolkata&lat=19.076&lon=72.8777&number=23&time=10%3A30" \
-H "Authorization: Bearer YOUR_API_KEY"Query parameters
Checked against the API: a parameter is marked required when the request fails without it.
| Name | Required | Example | Description |
|---|---|---|---|
date | yes | 2027-01-15 | Date the question is asked (YYYY-MM-DD). |
tz | yes | Asia/Kolkata | Timezone of the place of the question: IANA name (Asia/Kolkata) or UTC offset (+05:30). |
lat | yes | 19.076 | Latitude of the place of the question, in decimal degrees. |
lon | yes | 72.8777 | Longitude of the place of the question, in decimal degrees. |
number | yes | 23 | The KP horary number the querent gives, a whole number from 1 to 249. Number n is the n-th of the 249 sign/star/sub parts of the zodiac counted from 0° Aries; the horary ascendant is the degree where that part begins. |
time | no | 10:30 | Local time the question is asked (HH:MM, 24-hour). |
ayanamsa | no | — | Ayanamsa. Defaults to krishnamurti here, the ayanamsa KP horary is defined on (other endpoints default to lahiri). |
lang | no | — | Language of names, labels and readings in the response: `en` (default), `hi`, `mr`, `gu`, `bn`, `te`, `ta`, `kn`, `ml`, `pa`. `locale` is accepted as an alias. |
Response (200 OK)
The real response to the example request above, generated from the API itself. Long arrays are trimmed to their first two items. Field names are stable across versions.
{
"date": "2027-01-15",
"time": "10:30",
"location": {
"lat": 19.076,
"lon": 72.8777,
"alt": 0
},
"tz": "Asia/Kolkata",
"ayanamsa": "krishnamurti",
"ayanamsa_value": 24.137956,
"house_system": "placidus",
"number": 23,
"horary_ascendant": {
"number": 23,
"start_lon": 30,
"end_lon": 31.222222,
"start_dms_in_sign": "00°00'00\"",
"sign": "Taurus",
"sign_index": 1,
"sign_lord": "Venus",
"nakshatra": "Krittika",
"star_lord": "Sun",
"sub_lord": "Rahu"
},
"houses": [
{
"house": 1,
"cusp_lon": 30,
"star_lord": "Sun",
"sub_lord": "Rahu",
"sub_sub_lord": "Rahu",
"significators": [
"Mars",
"Venus"
]
},
{
"house": 2,
"cusp_lon": 57.294579,
"star_lord": "Mars",
"sub_lord": "Jupiter",
"sub_sub_lord": "Sun",
"significators": [
"Mars",
"Venus"
]
}
],
"planets": [
{
"id": "sun",
"planet": "Sun",
"sidereal_lon": 270.665562,
"sign": "Capricorn",
"sign_index": 9,
"house": 9,
"is_retro": false,
"star_lord": "Sun",
"sub_lord": "Rahu",
"sub_sub_lord": "Venus"
},
{
"id": "moon",
"planet": "Moon",
"sidereal_lon": 352.793954,
"sign": "Pisces",
"sign_index": 11,
"house": 11,
"is_retro": false,
"star_lord": "Mercury",
"sub_lord": "Moon",
"sub_sub_lord": "Saturn"
}
],
"planet_significators": [
{
"planet": "Sun",
"houses": [
9,
5
]
},
{
"planet": "Moon",
"houses": [
9,
11
]
}
],
"four_step": [
{
"planet": "Sun",
"planet_houses": [
9,
5
],
"star_lord": "Sun",
"star_lord_houses": [
9,
5
],
"sub_lord": "Rahu",
"sub_lord_houses": [
4,
10
],
"sub_lord_star_lord": "Mars",
"sub_lord_star_lord_houses": [
7,
4
]
},
{
"planet": "Moon",
"planet_houses": [
9,
11
],
"star_lord": "Mercury",
"star_lord_houses": [
9,
5
],
"sub_lord": "Moon",
"sub_lord_houses": [
9,
11
],
"sub_lord_star_lord": "Mercury",
"sub_lord_star_lord_houses": [
9,
5
]
}
],
"ruling_planets": {
"day_lord": "Venus",
"lagna_nakshatra_lord": "Jupiter",
"lagna_rashi_lord": "Saturn",
"lagna_sub_lord": "Ketu",
"moon_nakshatra_lord": "Mercury",
"moon_rashi_lord": "Jupiter",
"moon_sub_lord": "Moon"
}
}Field reference
Every field in the response, with its type, a real example, and what it means.
| Field | Type | Meaning |
|---|---|---|
| date / time / tz | string | The moment of judgement you sent (the time the question is asked). example: "2027-01-15" |
| ayanamsa | string | Ayanamsa used: krishnamurti unless you send another. example: "krishnamurti" |
| house_system | string | Always placidus: KP cusps are Placidus. example: "placidus" |
| number | integer | The horary number you sent (1–249). example: 23 |
| horary_ascendant.start_lon | number | Sidereal longitude where the number's part begins. This degree is the horary ascendant (cusp 1). example: 30 |
| horary_ascendant.end_lon | number | Where the part ends. example: 31.222222 |
| horary_ascendant.start_dms_in_sign | string | The ascendant degree within its sign, as degrees, minutes and seconds. example: "00°00'00\"" |
| horary_ascendant.sign / sign_lord | string | Sign of the part and its lord. example: "Taurus" / "Venus" |
| horary_ascendant.nakshatra / star_lord | string | Nakshatra of the part and its Vimshottari lord. example: "Krittika" / "Sun" |
| horary_ascendant.sub_lord | string | KP sub lord of the part. example: "Rahu" |
| houses[] | array of 12 objects | The 12 Placidus cusps that have the horary ascendant at the place of judgement, with star, sub and sub-sub lords and the significator planets of each house, strongest first. example: [{ "house": 1, … }] |
| planets[] | array of 9 objects | Planets at the moment of judgement: sidereal longitude, sign, KP house (by the horary cusps), retrograde flag and KP star, sub and sub-sub lords. `id` stays in English in every language. example: [{ "id": "sun", … }] |
| planet_significators[] | array of 9 objects | The houses each planet signifies, strongest first, on the horary cusps. example: [{ "planet": "Sun", "houses": [9, 5] }] |
| four_step[] | array of 9 objects | The KP 4-step chain of each planet: planet, star lord, sub lord and the sub lord's star lord, each with the houses it signifies. example: [{ "planet": "Sun", … }] |
| ruling_planets | object | KP ruling planets of the moment of judgement: the day lord (Vedic weekday, sunrise to sunrise) and the star, sign and sub lords of the real ascendant and of the Moon at that moment. example: { "day_lord": "Venus", … } |
Usage tips
How to use it
- Send the moment of the questionPass the date, time and place at which the question is asked (or now). The number fixes the ascendant; the moment fixes the planets and the ruling planets.
- Judge by the cuspal sub lordFor a question about a house, read that cusp's `sub_lord`, then look it up in `planet_significators` to see which houses it signifies. Agreement with the `ruling_planets` confirms the answer.
- AyanamsaKP horary uses the Krishnamurti ayanamsa, which is the default here. Send `ayanamsa` only to compare with another.
Errors
Every error follows the same envelope. Use the error.code field (not the message) for conditional logic in your integration.
401 Unauthorized
{
"error": {
"code": "unauthorized",
"message": "unknown or revoked API key",
"request_id": "52a520f261d3db37"
}
}402 Payment Required
{
"error": {
"code": "daily_cap_exceeded",
"message": "free-plan daily limit reached — try again tomorrow or upgrade to a paid plan",
"request_id": "52a520f261d3db37"
}
}429 Too Many Requests
{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded — retry after 12 seconds",
"request_id": "52a520f261d3db37"
}
}Try it
Get a dv_live_* key from your dashboard and paste into the cURL snippet above. New accounts get 7,500 welcome credits plus 1,500 free credits a month. Sign up.