The endpoints
| Endpoint | Request | Plan | What it gives you |
|---|---|---|---|
| Western Natal Planets | POST /v1/western/natal/planets | Hobby | The Sun's tropical sign (the Western star sign) for a birth |
| Planet Positions (Sidereal) | POST /v1/planets | Free | The Sun's sidereal sign (Vedic) for a birth |
| Chinese Zodiac | GET /v1/western/chinese/zodiac/:year | Free | Chinese zodiac animal, element and polarity for a year |
| Zodiac Sign Compatibility | POST /v1/western/zodiac-compatibility | Free | Sun-sign compatibility score out of 10 |
Which sign is a person?
A star sign is the sign the Sun was in at birth, so it comes from a planet position, not a date table. Date tables are wrong for anyone born near a sign change, because the Sun enters each sign at a different time each year.
And there are two answers. The Western (tropical) sign is the one horoscope columns use; the Vedic (sidereal) sign is usually one sign earlier, about 24ยฐ back in 2026. Read planets[0].sign from the tropical endpoint for a Western app, from the sidereal endpoint for a Vedic one. The planetary positions page shows the same moment in both.
Chinese zodiac
The Chinese zodiac for 2026:
GET /v1/western/chinese/zodiac/2026
Recorded response (data; long lists cut):
{
"year": 2026,
"animal": "Horse",
"element": "Fire",
"polarity": "yang",
"stem_branch_index": 43
}2026 is a Fire Horse year (yang). The endpoint answers for a Gregorian year number; a person born in January or early February belongs to the previous Chinese year, so decide how your product treats those dates.
Sign compatibility
Leo and Sagittarius:
POST /v1/western/zodiac-compatibility
{
"sign_a": "Leo",
"sign_b": "Sagittarius"
}Recorded response (data; long lists cut):
{
"sign_a": "Leo",
"sign_b": "Sagittarius",
"element_a": "fire",
"element_b": "fire",
"score": 9,
"max": 10,
"bucket": "Excellent",
"note": "same-element resonance"
}Leo and Sagittarius score 9 out of 10 (Excellent): "same-element resonance". This is a light sun-sign match for quizzes and widgets. For a full relationship reading use synastry or, in Vedic products, Ashtakoot matching.
Questions
- Is there an API to get someone's zodiac sign?
- Yes: compute the Sun's position for their birth.
POST /v1/western/natal/planetsgives the Western (tropical) sign andPOST /v1/planetsthe Vedic (sidereal) sign. A date table gets people born near a sign change wrong. - Is there a Chinese zodiac API?
- Yes.
GET /v1/western/chinese/zodiac/:yearreturns the animal, element and polarity for a year, andGET /v1/western/chinese/forecast/:sign/:yearan annual forecast for an animal. - How is sign compatibility scored?
POST /v1/western/zodiac-compatibilityscores two sun signs out of 10 from their elements and returns a bucket and a one-line note. It is a light match; synastry and Ashtakoot are the full ones.