Skip to content
96Astro API

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

Try them in API testing

Code

Your first call

Install
pip install astro96-api
Python
from 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.

Send us feedback

What is it about?