By topic / Python
Integrations
Astrology API for Python
Install `astro96-api` from PyPI. It has a sync client and an asyncio client built on httpx, typed inputs, retries on rate limits and idempotency keys, so it fits a Django or FastAPI backend, a data notebook or a Telegram bot.
Ideas
What people build with it
A Django or FastAPI astrology backend
A horoscope bot
Bulk chart research in a notebook
Reference
The endpoints
- Planet PositionsSidereal longitude, sign and sign lord, nakshatra, nakshatra lord and pada, house, speed, retrograde and combust flags for the Ascendant, the nine grahas and Uranus, Neptune and Pluto.POST/v1/vedic-charts/planet-positions 3 credits
- Daily PanchangThe full panchang for one day at one place: limbs, Sun and Moon times, calendar, auspicious and inauspicious periods, choghadiya, hora, festivals, balas, sunrise chart, doshas and more.POST/v1/panchang/daily-panchang 1 credit
- Vimshottari DashaMahadasha and antardasha periods with dates, the dasha balance at birth, and the tara (nakshatra-count) of each dasha lord.POST/v1/dashas/vimshottari-dasha 3 credits
- Kundli Matching (Ayu Milan)Ashtakoot matching from two births: koota scores and total, Manglik for both with cancellations, Papasamya, Rajju and Vedha, and classical longevity (Ayurdaya) spans for each.POST/v1/matching/ayu-milan 3 credits
- AI Reading: Chat answerAn AI answer to a question about a birth chart, with earlier turns as history; grounded in chart data the service computes from the birth (or in one report named in `context`).POST/v1/ai/ai-chat Metered, from 15 credits
Code
Your first call
pip install astro96-apifrom astro96_api import Astro96Client
astro = Astro96Client() # reads ASTRO_API_KEY
res = astro.vedic_charts.planet_positions(
datetime="1990-10-18T14:30:00", timezone="Asia/Kolkata",
latitude=28.6139, longitude=77.209,
)
print(res.data["ascendant"]["sign"])FAQ
Common questions
Which Python versions?
Python 3.9 and later. Both clients use httpx.
Guides
Read next
Start building with Python
5,000 free trial credits. No card required.

