Cookies и конфиденциальность

Мы сохраняем ваши предпочтения (язык, тема, настройки карт) локально на вашем устройстве. Никаких отслеживающих cookies, рекламы или сторонней аналитики.

В соответствии с GDPR (ЕС) и CCPA (Калифорния) мы информируем вас о данных, которые хранятся локально на вашем устройстве. Ваши данные рождения никогда не покидают браузер — все расчёты выполняются на стороне клиента. Политика cookies

AstroWay Calculation API

Swiss Ephemeris powered astrology calculations via REST API. Natal charts, synastry, transits, progressions, planetary hours, retrograde periods and more.

Base URL

https://api-calc.astroway.info/api/v1

Authentication

X-Api-Key: your_key

Response Format

{ "ok": true, "data": {...} }

Authentication

All endpoints (except /health) require an API key in the X-Api-Key header.

Plans:

  • Free — 60 requests/min
  • Pro — 300 requests/min
  • Enterprise — 10,000 requests/min

Rate limit exceeded returns 429 with Retry-After header.

Required fields

  • date — birth date YYYY-MM-DD
  • time — birth time HH:mm:ss
  • timezoneOffset — hours from UTC (e.g. 3 for UTC+3)
  • latitude, longitude — required for houses, aspects, progressions, returns. Not needed for /planets

URL aliases

/void-of-course/moon-voc · /harmonic/harmonics

Quick Start

Get Moon sign for a birth date in 3 lines:

curl -X POST https://api-calc.astroway.info/api/v1/planets \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3}'

Response includes Moon longitude (e.g. 296.9° = Capricorn), plus all other planets with positions, speeds, declinations and retrograde status.

Full natal chart with houses and aspects:

curl -X POST https://api-calc.astroway.info/api/v1/chart \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3,
       "latitude": 50.45, "longitude": 30.52, "houseSystem": "P"}'

Mercury retrograde periods for 2026:

curl -X POST https://api-calc.astroway.info/api/v1/retrograde-periods \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"startDate": "2026-01-01", "endDate": "2026-12-31", "planetIds": [2]}'

Usage Dashboard

Every API key has a personal usage dashboard. Open it in a browser to see a visual stats page, or fetch JSON programmatically.

Browser (HTML dashboard)
https://api-calc.astroway.info/api/v1/status?key=YOUR_API_KEY
Force JSON
https://api-calc.astroway.info/api/v1/status?key=YOUR_API_KEY&format=json
Force HTML
https://api-calc.astroway.info/api/v1/status?key=YOUR_API_KEY&format=html

The dashboard shows: requests today / 7 days / 30 days, rate limits with usage bars, daily chart, top endpoints by usage, key metadata (plan, rate limit, creation date). No authentication header needed — the key in the URL is the auth.

Fetch specific sections

Use the section parameter to get only the data you need:

ParameterReturnsExample
section=limitsPlan, rate limit, daily/monthly capacity, usage %{ "plan": "free", "requestsPerMinute": 60, "usagePercent": { "today": 5 } }
section=usageRequest counts: today, 7 days, 30 days{ "today": 42, "week": 285, "month": 1250 }
section=endpointsTop endpoints by usage (30 days)[{ "endpoint": "planets", "total": 800 }]
section=dailyDaily request counts (30 days)[{ "date": "2026-03-19", "count": 42 }]
section=keyKey metadata (name, plan, created, last used){ "name": "My App", "plan": "free", ... }
# Get only rate limits
curl "https://api-calc.astroway.info/api/v1/status?key=YOUR_API_KEY&section=limits"

# Get only usage counters
curl "https://api-calc.astroway.info/api/v1/status?key=YOUR_API_KEY&section=usage"

Error Codes

HTTPCodeDescription
400MISSING_FIELDSRequired fields missing
400INVALID_INPUTInvalid date/time format
401MISSING_API_KEYNo X-Api-Key header
401INVALID_API_KEYKey not found or inactive
429RATE_LIMITToo many requests
500INTERNAL_ERRORServer error

Endpoints

Planet IDs

0Sun
1Moon
2Mercury
3Venus
4Mars
5Jupiter
6Saturn
7Uranus
8Neptune
9Pluto
10Mean Node
11True Node
12Mean Lilith
13True Lilith
15Chiron

House Systems

"P"Placidus
"K"Koch
"O"Porphyry
"R"Regiomontanus
"C"Campanus
"A"Equal (ASC)
"W"Whole Sign
"M"Morinus
"B"Alcabitius
"T"Polich/Page
"X"Hindu Bhava
"V"Vehlow