AstroNirnayDeveloper API
Developer API

Vedic astrology API for your app or website

Birth chart, dasha, panchang, sade sati, manglik and Ashtakoot matching, calculated, never guessed. Pay as you go with prepaid credits that never expire.

No card neededNo monthly feeFailed calls cost nothing
POST /v1/chart
# one call, full Vedic chart
curl -X POST https://api.astronirnay.com/v1/chart \
  -H "x-api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"birth":{"date":"1990-05-15","time":"10:30",
        "latitude":19.076,"longitude":72.8777,
        "timezone":"Asia/Kolkata"}}'

# 200 OK · X-Credits-Cost: 1
{ "success": true,
  "data": { "summary": {
    "ascendant": "Cancer",
    "moon_sign": "Sagittarius" } } }
20Calculation endpoints
< 0.006°Match with NASA JPL ephemeris
1 creditStarts at about ₹0.02 per call
0 AIIn calculations: same input, same answer
Why developers pick it

Built to be trusted in production

Accurate astronomy, predictable JSON and the controls a backend team expects.

Pure calculation

No AI in the calculation endpoints. The same birth details always return the same result.

Checked for accuracy

Planet positions agree with NASA JPL's ephemeris to a few thousandths of a degree. Lahiri sidereal zodiac.

Clean JSON

Consistent field names, ISO 8601 dates with local offset, and errors that name the field that is wrong.

Built for production

API keys you can lock to your server's IP addresses, usage reports and a full transaction history.

Endpoints

Pay per call with credits

Each successful call spends a few credits. At the base rate 1 credit = ₹0.02, so a chart call costs about 2 paise. Every verified account gets 1,000 free credits once, on signup, so you can build and test for free. Credits you buy never expire, and there is no monthly commitment.

EndpointWhat you getCredits per call
POST/v1/chartAscendant, nine planets, houses and divisional charts (D1–D60)1about ₹0.02
POST/v1/planets, /housesPlanet positions; houses with occupants1about ₹0.02
POST/v1/dasha/vimshottariRunning dasha down to prana level and a nested timeline2about ₹0.04
POST/v1/panchangTithi, nakshatra, yoga, karana with end times; Rahu kaal and more2about ₹0.04
POST/v1/doshas/sade-satiSade sati and dhaiya status with a lifetime timeline3about ₹0.06
POST/v1/doshas/manglikManglik status, severity and cancellations1about ₹0.02
POST/v1/matching/ashtakootEight koota scores out of 36 with manglik compatibility2about ₹0.04
POST/v1/chart/imageBirth or divisional chart as an SVG picture (North or South Indian style)2about ₹0.04
POST/v1/ashtakvargaBhinna and Sarva Ashtakvarga points by sign and house2about ₹0.04
POST/v1/dasha/yogini36-year Yogini dasha with nested periods2about ₹0.04
POST/v1/dasha/charJaimini Chara dasha from the Lagna2about ₹0.04
POST/v1/varshaphalAnnual chart: exact Varsha Pravesh, Muntha, the five officers and Mudda dasha for any year3about ₹0.06
POST/v1/yogasClassical yogas in a chart: Mahapurusha, Gajakesari, Budhaditya, Viparita Raja and more, with the exact conditions met2about ₹0.04
POST/v1/doshas/kalsarpaKaal Sarp dosha: full or partial, direction and type1about ₹0.02
POST/v1/muhurta/chaughadiyaDay and night choghadiya with exact times2about ₹0.04
POST/v1/muhurta/hora24 planetary hours with exact times2about ₹0.04
POST/v1/biorhythmPhysical, emotional and intellectual cycles1about ₹0.02
GET/v1/ayanamshaLahiri ayanamsha for any date1about ₹0.02
POST/v1/ai/predictionAI-written prediction (career, finance, marriage, family, education, health) for a day, week, month or year, in 21 languages15+about ₹0.30 and up
POST/v1/ai/askFree-text astrology Q&A, chat-style, in 21 languages15+about ₹0.30 and up
POST/v1/ai/reportsBranded PDF report with your logo (Sade Sati report, Manglik report, 12-month roadmap, Premium Personalized Kundali, 5-Year Roadmaps (Career, Wealth, Love, Marriage, Health, Business)) in English, Hindi, Marathi, Tamil and Telugu40+about ₹0.80 and up
GET/v1/places/search, /timezonePlace name to coordinates and time zone1about ₹0.02
GET/v1/usageYour balance and usagefree₹0
Pricing

Top up once, use whenever

Bigger packs add bonus credits. Base price is ₹0.02 per credit; bigger packs bring it down to ₹0.0119. Prices are in Indian rupees, and you get a receipt for every purchase.

Starter

₹500
25,000 credits
₹20.00 per 1,000 credits
Base credits
25,000
Bonus credits
–
Chart calls
~25,000
Expiry
Never
Get started

Growth

+10% bonus
₹5,000
2,75,000 credits
₹18.18 per 1,000 credits
Base credits
2,50,000
Bonus credits
+25,000
Chart calls
~2,75,000
Expiry
Never
Get started

Scale

+20% bonus
₹20,000
12,00,000 credits
₹16.67 per 1,000 credits
Base credits
10,00,000
Bonus credits
+2,00,000
Chart calls
~12,00,000
Expiry
Never
Get started

Volume

+68% bonus
₹50,000
42,00,000 credits
₹11.90 per 1,000 credits
Base credits
25,00,000
Bonus credits
+17,00,000
Chart calls
~42,00,000
Expiry
Never
Get started

Start with 1,000 free credits on signup, no card needed. Buy a pack from your dashboard when you need more.

Quick start

Make your first call in a minute

Create a free accountVerify your email and your 1,000 credits arrive instantly.
Create an API keyOptionally lock it to your server's IP addresses.
Call the API from your serverOne HTTPS request, JSON in, JSON out.
Create free account   See every endpoint
JavaScript
const res = await fetch("https://api.astronirnay.com/v1/dasha/vimshottari", {
  method: "POST",
  headers: {
    "x-api-key": process.env.ASTRONIRNAY_KEY,
    "content-type": "application/json"
  },
  body: JSON.stringify({ birth: {
    date: "1990-05-15", time: "10:30",
    latitude: 19.076, longitude: 72.8777,
    timezone: "Asia/Kolkata"
  }})
});
const { data } = await res.json();
FAQ

Questions

Do credits expire?

No. Credits stay in your account until you use them.

What happens if a request fails?

Nothing is charged. Calls that return an error cost no credits.

Does the API use AI?

The calculation endpoints do not: everything is calculated or looked up, so results are repeatable. The separate AI Predictions endpoints (/v1/ai/...) use OpenAI to write predictions in 21 Indian languages from facts we calculate. They are clearly marked ai_generated and priced separately.

Can I restrict who can use my key?

Yes. Each key can be limited to specific IP addresses or ranges, and revoked instantly.

Do you give receipts?

Yes. Every purchase gets a receipt you can download from your dashboard.

Build with Vedic astrology today

1,000 free credits on signup. No card. Be live in minutes.

Create free account