Skip to content
BestAstroAPI

Charts

Houses

POST/v1/chart/houses

House cusps and occupants for whole sign, equal, Placidus or Porphyry houses.

  • occupants are the planets in the sign of that house (whole sign).
  • cusp follows the house system you choose.

Request

FieldTypeDescription
datetimestringrequiredLocal birth time, YYYY-MM-DDTHH:MM[:SS]
latnumberLatitude, -90 to 90 (north positive). Send lat, lon and tz, or place, or place_id
lonnumberLongitude, -180 to 180 (east positive)
tzstringIANA zone (Asia/Kolkata) or offset (+05:30). Needed with lat and lon; filled in with a place
placestringPlace name instead of lat, lon and tz, for example Gorakhpur, Uttar Pradesh. If the name is not unique: ambiguous_place with choices
place_idintegerThe id of a place from place search, instead of lat, lon and tz
ayanamsastringlahiri (default) | raman | krishnamurti
nodestringmean (default) | true
house_systemstringwhole_sign (default) | equal | placidus | porphyry
outer_planetsbooleanAlso 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"}'

Try it live

Sends a real request from your browser.

Response

  • [] is a list. {key} is a key that varies.
FieldTypeMeaning
birthBirthBirth details we used
house_systemstringHouse system used for the cuspswhole_sign | equal | placidus | porphyry
ascendantobjectAscendant (lagna)
ascendant.longitudenumberdegreesSidereal longitude, 0 to 360
ascendant.signSignSign of the ascendant
ascendant.degreenumberdegreesPosition inside the sign, 0 to 30
ascendant.dmsstringThe same as degrees, minutes, seconds
ascendant.nakshatraNakshatraNakshatra of the ascendant
ascendant.navamsa_signintegerNavamsa (D9) sign, 1 = Aries
ascendant.mcnumberdegreesSidereal longitude of the midheaven
housesobject[]The 12 houses
houses[].houseintegerHouse number, 1 to 12
houses[].signSignSign of the house, counted from the ascendant
houses[].cuspnumberdegreesSidereal longitude of the cusp
houses[].cusp_signintegerSign of the cusp, 1 = Aries
houses[].occupantsstring[]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.

FieldTypeMeaning
datetimestringLocal time you sent, with seconds
tzstringZone you sent
utc_offsetstringUTC offset in force then, for example +05:30
utcstringISO 8601The same moment in UTC
latnumberdegreesLatitude
lonnumberdegreesLongitude
jd_utnumberJulian day (UT)
placePlaceUsedThe place we looked up. Only when you sent place or place_id optional

Sign A zodiac sign (rashi).

FieldTypeMeaning
numberinteger1 = Aries to 12 = Pisces
namestringEnglish name
rashistringSanskrit name, for example Mesha
lordstringPlanet that rules the sign

Nakshatra A lunar mansion.

FieldTypeMeaning
numberinteger1 = Ashwini to 27 = Revati
namestringNakshatra name
padaintegerQuarter, 1 to 4
lordstringVimshottari 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.

Welcome! How will you use it?

We'll show you what matters to you. You can switch any time at the top.