Skip to content
AstroWay/api v2.95.1 · docs
all systems operational

Swiss Ephemeris API

Swiss Ephemeris is the de-facto standard for astronomical calculation in astrology: Astrodienst (astro.com), Solar Fire, Kerykeion and most serious software are built on it. It reads NASA JPL’s DE431 ephemeris and delivers sub-arcsecond accuracy. AstroWay API gives you direct HTTP access to it — no C library to compile, no .se1 files to download, no memory management. One POST request, JSON back.

Self-hosting Swiss Ephemeris means: build the C library (or a WASM bundle), host a few hundred megabytes of .se1 files, keep them current, and implement house cusps, aspects and phases yourself. Over an API all of that is someone else’s problem:

  • Zero infrastructure — no binaries, no ephemeris files, no cold starts. Calculation runs server-side on the same engine Astrodienst uses.
  • Sub-arcsecond accuracy< 0.1″ against Astrodienst’s reference swetest CGI, verified on 818 frozen snapshot tests on every deploy.
  • Full date range — DE431 covers 13201 BCE – 17191 CE, so historical and far-future charts compute without precision loss.
  • More than positions — on top of the ephemeris you immediately get house cusps (15 systems), aspects, eclipses, transits and progressions — the parts you’d have to write yourself when self-hosting.
EndpointCreditsReturns
/v1/chart20Full chart: planets + houses + aspects
/v1/planets10Geocentric planet positions (longitude, latitude, speed, retrograde)
/v1/houses10House cusps — 15 systems (Placidus, Koch, Whole Sign, Equal…)
/v1/transits50Transits to a natal chart for a given date
/v1/progressions50Secondary progressions (day = year)
/v1/eclipses20Solar & lunar eclipses (verified vs NASA Catalog)
/v1/moon-phase10Moon phase, illumination, next quarters
/v1/fixed-stars20Planet conjunctions with fixed stars

This is part of 722 platform endpoints — full list in the API reference.

Terminal window
curl -X POST https://api.astroway.info/v1/planets \
-H "X-Api-Key: aw_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"date": "1990-07-14",
"time": "14:30:00",
"timezoneOffset": 3,
"latitude": 50.4501,
"longitude": 30.5234
}'
  • Astrology-app developers — sub-arcsecond positions without self-hosting the C library
  • AI agents — accurate ephemeris as grounding for LLMs (via the MCP server)
  • Researchers — bulk calculation across the full DE431 historical range
  • Migrating off self-host — drop-in replacement for a local swisseph build over HTTP, same precision

Planet positions (/v1/planets) — 10 credits, full chart (/v1/chart) — 20. The Free tier (722+ endpoints, 10,000 credits/mo) covers roughly 1,000 planet requests a month, no card required.

Was this helpful?
Suggest an edit

Last updated: