Back to Docs

SDKs

Official client libraries for the VedAstro API.

๐Ÿ

Python SDK

vedastro-python

Coming Soon
pip install vedastro
import vedastro

client = vedastro.Client(api_key="va_live_xxxxxxxxxxxx")

# Get birth chart
chart = client.chart.get(
    name="Arjuna",
    date="1990-01-15",
    time="08:30",
    location="Mumbai, India"
)

print(chart.ascendant)        # "Scorpio"
print(chart.moon_sign)        # "Cancer"
print(chart.dasa.current)     # "Saturn"

# Get panchang
panchang = client.panchang.get(
    date="2024-01-15",
    location="New Delhi, India"
)

print(panchang.tithi)         # "Saptami"
print(panchang.nakshatra)     # "Rohini"
โšก

JavaScript / TypeScript SDK

vedastro-js ยท Full TypeScript support

Coming Soon
npm install vedastro
import { VedAstroClient } from "vedastro";

const client = new VedAstroClient({
  apiKey: "va_live_xxxxxxxxxxxx",
});

// Get birth chart
const chart = await client.chart.get({
  name: "Arjuna",
  date: "1990-01-15",
  time: "08:30",
  location: "Mumbai, India",
});

console.log(chart.ascendant);     // "Scorpio"
console.log(chart.moonSign);      // "Cancer"

// TypeScript types included
const dasa: DasaPeriod = chart.dasa.current;

Coming in Phase 4

๐Ÿน
Go
pkg.go.dev/vedastro-go
Planned
๐Ÿ˜
PHP
packagist.org/vedastro/php
Planned
๐Ÿ’Ž
Ruby
rubygems.org/gems/vedastro
Planned
โ˜•
Java
mvnrepository.com/vedastro
Planned

SDKs are under active development. In the meantime, use the REST API directly โ€” it works great from any language.