Skip to content
BestAstroAPI

Western

Sun sign

POST/v1/western/sun-sign

Tropical sun sign from a birth date, with the exact change time when the Sun changes sign that day.

Request

FieldTypeDescription
datestringrequiredBirth date, YYYY-MM-DD
timestringHH:MM; settles the sign on a change day
datetimestringInstead of date and time
tzstringIANA zone or offset; default UTC

Example

curl -X POST "https://api.bestastroapi.in/v1/western/sun-sign" \
  -H "x-api-key: $BESTASTRO_KEY" \
  -H "content-type: application/json" \
  -d '{"date":"2004-05-18","tz":"Asia/Kolkata"}'

Try it live

Sends a real request from your browser.

Response

  • [] is a list. {key} is a key that varies.
  • An optional field can be missing. That means it does not apply.
  • Times carry the UTC offset of the place. A time after midnight has the next date.
FieldTypeMeaning
datestringYYYY-MM-DDBirth date
time_usedstringBirth time, or local noon when no time was sent
tzstringZone
zodiacstringAlways tropical
sunobjectThe Sun
sun.longitudenumberdegreesThe Sun: tropical longitude, 0 to 360
sun.signobjectZodiac sign
sun.sign.numberinteger1 = Aries to 12 = Pisces
sun.sign.namestringEnglish name
sun.sign.elementstringElementfire | earth | air | water
sun.sign.modalitystringModalitycardinal | fixed | mutable
sun.sign.rulerstringTraditional ruler
sun.sign.modern_rulerstringModern ruler
sun.degreenumberdegreesPosition inside the sign, 0 to 30
sun.dmsstringPosition inside the sign as degrees, minutes, seconds
signobjectZodiac sign
sign.numberinteger1 = Aries to 12 = Pisces
sign.namestringEnglish name
sign.elementstringElementfire | earth | air | water
sign.modalitystringModalitycardinal | fixed | mutable
sign.rulerstringTraditional ruler
sign.modern_rulerstringModern ruler
portraitstringOne sentence about the sign
textstringA short paragraph
strengthsstring[]Four strengths
challengesstring[]Two challenges
on_cuspbooleanWithin 1 degree of a sign boundary
sign_changeobjectOnly when the Sun changes sign on that date and no time was sent optional
sign_change.atstringISO 8601Moment of the change
sign_change.fromstringSign before
sign_change.tostringSign after
sign_change.notestringWhat to do
Raw sample
200 application/json
{
  "challenges": [
    "Stubborn",
    "Possessive"
  ],
  "date": "2004-05-18",
  "on_cusp": false,
  "portrait": "Taurus energy builds slowly and keeps what it builds, trusting comfort, quality and things that can be touched.",
  "sign": {
    "element": "earth",
    "modality": "fixed",
    "modern_ruler": "Venus",
    "name": "Taurus",
    "number": 2,
    "ruler": "Venus"
  },
  "strengths": [
    "Reliable",
    "Patient",
    "Practical",
    "Loyal"
  ],
  "sun": {
    "degree": 27.653467,
    "dms": "27°39'12\"",
    "longitude": 57.653467,
    "sign": {
      "element": "earth",
      "modality": "fixed",
      "modern_ruler": "Venus",
      "name": "Taurus",
      "number": 2,
      "ruler": "Venus"
    }
  },
  "text": "As a Taurus you are steady, sensual and patient at heart. Taurus energy builds slowly and keeps what it builds, trusting comfort, quality and things that can be touched. Your gifts are being reliable, patient and loyal; your growth comes from noticing when you turn stubborn or possessive.",
  "time_used": "local noon (no time sent)",
  "tz": "Asia/Kolkata",
  "zodiac": "tropical"
}

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.