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

MethodPathDescription
POST/chartsNatal chart — Western (tropical) or Vedic (sidereal).
POST/baziChinese Four Pillars (BaZi) from birth date & time.
POST/synastryTwo-chart compatibility & cross-aspects.
POST/transitsCurrent/future transits against a natal chart.
POST/guna-milanVedic 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

PlanRequests / minMonthly quota
Developer6010,000
Business6001,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.