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
| Field | Type | Description |
|---|---|---|
| date | stringrequired | Birth date, YYYY-MM-DD |
| time | string | HH:MM; settles the sign on a change day |
| datetime | string | Instead of date and time |
| tz | string | IANA 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"}'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.
| Field | Type | Meaning |
|---|---|---|
| date | stringYYYY-MM-DD | Birth date |
| time_used | string | Birth time, or local noon when no time was sent |
| tz | string | Zone |
| zodiac | string | Always tropical |
| sun | object | The Sun |
| sun.longitude | numberdegrees | The Sun: tropical longitude, 0 to 360 |
| sun.sign | object | Zodiac sign |
| sun.sign.number | integer | 1 = Aries to 12 = Pisces |
| sun.sign.name | string | English name |
| sun.sign.element | string | Elementfire | earth | air | water |
| sun.sign.modality | string | Modalitycardinal | fixed | mutable |
| sun.sign.ruler | string | Traditional ruler |
| sun.sign.modern_ruler | string | Modern ruler |
| sun.degree | numberdegrees | Position inside the sign, 0 to 30 |
| sun.dms | string | Position inside the sign as degrees, minutes, seconds |
| sign | object | Zodiac sign |
| sign.number | integer | 1 = Aries to 12 = Pisces |
| sign.name | string | English name |
| sign.element | string | Elementfire | earth | air | water |
| sign.modality | string | Modalitycardinal | fixed | mutable |
| sign.ruler | string | Traditional ruler |
| sign.modern_ruler | string | Modern ruler |
| portrait | string | One sentence about the sign |
| text | string | A short paragraph |
| strengths | string[] | Four strengths |
| challenges | string[] | Two challenges |
| on_cusp | boolean | Within 1 degree of a sign boundary |
| sign_change | object | Only when the Sun changes sign on that date and no time was sent optional |
| sign_change.at | stringISO 8601 | Moment of the change |
| sign_change.from | string | Sign before |
| sign_change.to | string | Sign after |
| sign_change.note | string | What 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.