96Astro API

Documentation

Quickstart

From sign-up to your first birth chart in a few minutes: get a free sandbox key, make one curl call, then switch to an SDK.

1. Create an account

Sign up with your name, a work email address, a password (10 to 128 characters), your country and whether you are an individual or a company. A company name is required for a company; phone, website, an Indian GSTIN and what you plan to build are optional. You must accept the terms and the privacy policy. Google sign-in is offered when it is switched on.

We email you a confirmation link. You cannot sign in until you open it, so check your spam folder if it does not arrive within a few minutes. Your trial starts when your account is ready: 5,000 credits for 14 days across every available family, plus 500 free sandbox calls a day. No card is needed. If you signed up with Google, or your account is older than these details, you are asked for them once on a short onboarding page before the dashboard opens. Account and billing has the rest.

2. Create a key

In the dashboard, open API keys and create a sandbox key. Store it in your server's secret store or an environment variable. If you need it again later, press Show next to it on the same page. Inside the dashboard you never paste it: API testing, PDF and audio jobs, AI chat and the photo readings let you pick the key from a list.

export ASTRO_API_KEY="sk_test_..."

Keys belong on your server. Never put a key in a mobile app, a browser bundle or a public repository.

3. Make your first call

curl https://api.96astroapi.com/v1/vedic-charts/planet-positions \
  -H "Authorization: Bearer $ASTRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "datetime": "1990-10-18T14:30:00",
    "timezone": "Asia/Kolkata",
    "latitude": 28.6139,
    "longitude": 77.2090,
    "ayanamsha": "lahiri"
  }'

Or use an SDK, which adds retries, idempotency keys and typed inputs. They are on npm (@96astro/api), PyPI (astro96-api) and Packagist (96astro/api), and the Java, .NET, Ruby, Swift, Dart/Flutter, Go and Rust clients are on Maven Central, NuGet, RubyGems, Swift Package Manager, pub.dev, the Go module proxy and crates.io (cargo add astro96-api).

// npm install @96astro/api
import { Astro96Client } from "@96astro/api";

const astro = new Astro96Client({ apiKey: process.env.ASTRO_API_KEY });
const { data } = await astro.vedicCharts.planetPositions({
  datetime: "1990-10-18T14:30:00",
  timezone: "Asia/Kolkata",
  latitude: 28.6139,
  longitude: 77.209,
  ayanamsha: "lahiri",
});

To explore without code, import the Postman collection.

A successful response looks like this, trimmed to two of the twelve bodies and fewer fields each:

{
  "data": {
    "ayanamsha": { "id": "lahiri", "name": "N.C. Lahiri", "degrees": 23.7285, "degrees_true": 23.7321 },
    "node": "true",
    "house_system": "whole_sign",
    "ascendant": { "sign": "Capricorn", "degree": 23.8935, "nakshatra": "Dhanishta", "pada": 1 },
    "planets": [
      { "name": "Sun", "sign": "Libra", "degree": 0.9951, "nakshatra": "Chitra", "pada": 3, "house": 10 },
      { "name": "Moon", "sign": "Virgo", "degree": 27.8766, "nakshatra": "Chitra", "pada": 2, "house": 9 }
    ]
  },
  "meta": {
    "request_id": "req_6e985a89a166b73ea220",
    "api_version": "v1",
    "credits_used": 0,
    "warnings": [],
    "language": "en"
  }
}

credits_used is 0 because sandbox calls are free. With a live key, planet positions is a heavy calculation and costs 3 credits.

4. Go live

When you are ready, choose a plan under Billing (see Account and billing), create a live key and swap it in. Sandbox and live keys never cross over, so testing cannot spend live credits. After the trial, an account without a paid plan stays on the Free plan: 100 live credits a month, without AI readings, and PDF and audio jobs.

Next steps

Was this page helpful?

On this page

Send us feedback

What is it about?