Astrology API & white-label
Our Swiss-Ephemeris chart engine, offered as a product. Compute charts, BaZi, synastry, and transits from your own app — or embed our widget.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /charts | Natal chart — Western (tropical) or Vedic (sidereal). |
| POST | /bazi | Chinese Four Pillars (BaZi) from birth date & time. |
| POST | /synastry | Two-chart compatibility & cross-aspects. |
| POST | /transits | Current/future transits against a natal chart. |
| POST | /guna-milan | Vedic Ashtakoot match score (out of 36). |
Base URL https://yoursite.com/api/v1. All calc endpoints are POST and return JSON.
Example — POST /charts
Request
POST /charts
Authorization: Bearer sk_live_xxx
Content-Type: application/json
{
"system": "western",
"house_system": "placidus",
"datetime": "1990-07-04T14:30:00",
"timezone": "America/New_York",
"lat": 40.7128,
"lon": -74.0060
}Response (trimmed)
200 OK
{
"big_three": {
"sun": "Cancer",
"moon": "Pisces",
"rising": "Scorpio"
},
"planets": [
{ "body": "Sun", "sign": "Cancer", "deg": 12.4, "house": 9, "retro": false },
{ "body": "Moon", "sign": "Pisces", "deg": 3.1, "house": 4, "retro": false },
{ "body": "Mercury", "sign": "Cancer", "deg": 28.7, "house": 9, "retro": true }
]
}Authentication & limits
Authenticate with an API key via Authorization: Bearer sk_live_…. Keys are scoped per project and can be rotated from the dashboard.
Rate limits
| Plan | Requests / min | Monthly quota |
|---|---|---|
| Developer | 60 | 10,000 |
| Business | 600 | 1,000,000 |
White-label embeddable widget
Drop a daily-horoscope widget into any site with one script tag — themable to match your brand. See the live demo and copy the snippet on the widget page.
Stub
API keys and the Bearer-token auth shown here are a stub in this build — no keys are issued or validated yet. The calc endpoints are real and run against the chart engine; auth, billing, and per-key rate limiting are wired in a later phase.