Charts
Houses
POST/v1/chart/houses
House cusps and occupants for whole sign, equal, Placidus or Porphyry houses.
occupantsare the planets in the sign of that house (whole sign).cuspfollows the house system you choose.
Request
| Field | Type | Description |
|---|---|---|
| datetime | stringrequired | Local birth time, YYYY-MM-DDTHH:MM[:SS] |
| lat | number | Latitude, -90 to 90 (north positive). Send lat, lon and tz, or place, or place_id |
| lon | number | Longitude, -180 to 180 (east positive) |
| tz | string | IANA zone (Asia/Kolkata) or offset (+05:30). Needed with lat and lon; filled in with a place |
| place | string | Place name instead of lat, lon and tz, for example Gorakhpur, Uttar Pradesh. If the name is not unique: ambiguous_place with choices |
| place_id | integer | The id of a place from place search, instead of lat, lon and tz |
| ayanamsa | string | lahiri (default) | raman | krishnamurti |
| node | string | mean (default) | true |
| house_system | string | whole_sign (default) | equal | placidus | porphyry |
| outer_planets | boolean | Also return Uranus, Neptune, Pluto (default false) |
Example
curl -X POST "https://api.bestastroapi.in/v1/chart/houses" \
-H "x-api-key: $BESTASTRO_KEY" \
-H "content-type: application/json" \
-d '{"datetime":"2004-05-18T10:30","lat":28.6139,"lon":77.209,"tz":"Asia/Kolkata"}'Response
[]is a list.{key}is a key that varies.
| Field | Type | Meaning |
|---|---|---|
| birth | Birth | Birth details we used |
| house_system | string | House system used for the cuspswhole_sign | equal | placidus | porphyry |
| ascendant | object | Ascendant (lagna) |
| ascendant.longitude | numberdegrees | Sidereal longitude, 0 to 360 |
| ascendant.sign | Sign | Sign of the ascendant |
| ascendant.degree | numberdegrees | Position inside the sign, 0 to 30 |
| ascendant.dms | string | The same as degrees, minutes, seconds |
| ascendant.nakshatra | Nakshatra | Nakshatra of the ascendant |
| ascendant.navamsa_sign | integer | Navamsa (D9) sign, 1 = Aries |
| ascendant.mc | numberdegrees | Sidereal longitude of the midheaven |
| houses | object[] | The 12 houses |
| houses[].house | integer | House number, 1 to 12 |
| houses[].sign | Sign | Sign of the house, counted from the ascendant |
| houses[].cusp | numberdegrees | Sidereal longitude of the cusp |
| houses[].cusp_sign | integer | Sign of the cusp, 1 = Aries |
| houses[].occupants | string[] | Ids of the planets in this sign. Can be empty |
Objects used above
Birth The birth details we used, so you can check the timezone.
| Field | Type | Meaning |
|---|---|---|
| datetime | string | Local time you sent, with seconds |
| tz | string | Zone you sent |
| utc_offset | string | UTC offset in force then, for example +05:30 |
| utc | stringISO 8601 | The same moment in UTC |
| lat | numberdegrees | Latitude |
| lon | numberdegrees | Longitude |
| jd_ut | number | Julian day (UT) |
| place | PlaceUsed | The place we looked up. Only when you sent place or place_id optional |
Sign A zodiac sign (rashi).
| Field | Type | Meaning |
|---|---|---|
| number | integer | 1 = Aries to 12 = Pisces |
| name | string | English name |
| rashi | string | Sanskrit name, for example Mesha |
| lord | string | Planet that rules the sign |
Nakshatra A lunar mansion.
| Field | Type | Meaning |
|---|---|---|
| number | integer | 1 = Ashwini to 27 = Revati |
| name | string | Nakshatra name |
| pada | integer | Quarter, 1 to 4 |
| lord | string | Vimshottari lord |
Raw sample
200 application/json
{
"ascendant": {
"degree": 12.714161,
"dms": "12°42'51\"",
"longitude": 102.714161,
"mc": 6.627974,
"nakshatra": {
"lord": "Saturn",
"name": "Pushya",
"number": 8,
"pada": 3
},
"navamsa_sign": 7,
"sign": {
"lord": "Moon",
"name": "Cancer",
"number": 4,
"rashi": "Karka"
}
},
"birth": {
"datetime": "2004-05-18T10:30:00",
"jd_ut": 2453143.708333,
"lat": 28.6139,
"lon": 77.209,
"tz": "Asia/Kolkata",
"utc": "2004-05-18T05:00:00Z",
"utc_offset": "+05:30"
},
"house_system": "whole_sign",
"houses": [
{
"cusp": 90,
"cusp_sign": 4,
"house": 1,
"occupants": [],
"sign": {
"lord": "Moon",
"name": "Cancer",
"number": 4,
"rashi": "Karka"
}
},
{
"cusp": 120,
"cusp_sign": 5,
"house": 2,
"occupants": [
"jupiter"
],
"sign": {
"lord": "Sun",
"name": "Leo",
"number": 5,
"rashi": "Simha"
}
},
{
"cusp": 150,
"cusp_sign": 6,
"house": 3,
"occupants": [],
"sign": {
"lord": "Mercury",
"name": "Virgo",
"number": 6,
"rashi": "Kanya"
}
},
{
"cusp": 180,
"cusp_sign": 7,
"house": 4,
"occupants": [
"ketu"
],
"sign": {
"lord": "Venus",
"name": "Libra",
"number": 7,
"rashi": "Tula"
}
},
{
"cusp": 210,
"cusp_sign": 8,
"house": 5,
"occupants": [],
"sign": {
"lord": "Mars",
"name": "Scorpio",
"number": 8,
"rashi": "Vrishchika"
}
},
{
"cusp": 240,
"cusp_sign": 9,
"house": 6,
"occupants": [],
"sign": {
"lord": "Jupiter",
"name": "Sagittarius",
"number": 9,
"rashi": "Dhanu"
}
},
{
"cusp": 270,
"cusp_sign": 10,
"house": 7,
"occupants": [],
"sign": {
"lord": "Saturn",
"name": "Capricorn",
"number": 10,
"rashi": "Makara"
}
},
{
"cusp": 300,
"cusp_sign": 11,
"house": 8,
"occupants": [],
"sign": {
"lord": "Saturn",
"name": "Aquarius",
"number": 11,
"rashi": "Kumbha"
}
},
{
"cusp": 330,
"cusp_sign": 12,
"house": 9,
"occupants": [],
"sign": {
"lord": "Jupiter",
"name": "Pisces",
"number": 12,
"rashi": "Meena"
}
},
{
"cusp": 0,
"cusp_sign": 1,
"house": 10,
"occupants": [
"moon",
"mercury",
"rahu"
],
"sign": {
"lord": "Mars",
"name": "Aries",
"number": 1,
"rashi": "Mesha"
}
},
{
"cusp": 30,
"cusp_sign": 2,
"house": 11,
"occupants": [
"sun"
],
"sign": {
"lord": "Venus",
"name": "Taurus",
"number": 2,
"rashi": "Vrishabha"
}
},
{
"cusp": 60,
"cusp_sign": 3,
"house": 12,
"occupants": [
"mars",
"venus",
"saturn"
],
"sign": {
"lord": "Mercury",
"name": "Gemini",
"number": 3,
"rashi": "Mithuna"
}
}
]
}Real output for the example request above.
Errors use one format. See error codes. Also in openapi.json.