Official client libraries for the VedAstro API.
vedastro-python
pip install vedastroimport 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"vedastro-js ยท Full TypeScript support
npm install vedastroimport { 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;SDKs are under active development. In the meantime, use the REST API directly โ it works great from any language.