Official Client SDKs

Accelerate your development with our type-safe, production-ready SDKs. Available for TypeScript, Python, and Go.

TS

TypeScript / Node.js

First-class support with full type inference.

Terminal
npm install @astrofusion/sdk
Usage
import { AstroFusion } from '@astrofusion/sdk';

const client = new AstroFusion({ apiKey: 'YOUR_KEY' });

const chart = await client.kundali.calculate({
  date: '1990-05-12',
  latitude: 27.7,
  longitude: 85.3
});

console.log(chart.planets.sun.rashi); // 'Taurus'
Py

Python

Async-ready client for data science and backend.

pip install astrofusion
from astrofusion import AstroFusion

client = AstroFusion(api_key="YOUR_KEY")

chart = await client.kundali.calculate(
    date="1990-05-12",
    latitude=27.7,
    longitude=85.3
)

print(chart.planets.sun.rashi)
Go

Go

High-performance client for scalable systems.

go get github.com/astrofusion/sdk-go