Developer API

Vedic Astrology API for Developers

Add kundali, dasha, panchang, sade sati, manglik and matching to your app or website. Every answer is calculated, never guessed — the same birth details always return the same result.

Pay as you go · credits never expire · no monthly fee · failed requests are never charged

Pure calculation

No AI guesswork in the API. Planet positions, dashas and panchang come from astronomical calculation, so results are repeatable.

Checked for accuracy

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

Clean JSON

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

Built for production

Restrict each API key to your server's IP addresses, see usage by endpoint, and download your full transaction history.

What you can build with it

Twelve endpoints today, with more on the way.

EndpointWhat you getCredits per call
POST /v1/chartAscendant, nine planets (sign, degree, nakshatra, pada, dignity, retrograde, combust), twelve houses, and divisional charts D1–D601
POST /v1/planets, /housesPlanet positions on their own; houses as whole-sign or equal-house, with occupants1
POST /v1/dasha/vimshottariBalance at birth, the running mahadasha down to prana, and a nested timeline2
POST /v1/panchangTithi, nakshatra, yoga and karana with exact end times; sunrise, sunset, Rahu kaal, Gulika, Yamaganda, Abhijit2
POST /v1/doshas/sade-satiSade sati and dhaiya status, current cycle, and a lifetime timeline3
POST /v1/doshas/manglikManglik status, severity, cancellations, Navamsa position — with the rule set shown in the response1
POST /v1/matching/ashtakootEight koota scores out of 36, verdict, nadi and bhakoot doshas, manglik compatibility2
GET /v1/places/search, /timezonePlace name to coordinates and time zone, so your users only type a city1

Make your first call in a minute

Request

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"
    }
  }'

The same call in JavaScript

const res = await fetch("https://api.astronirnay.com/v1/chart", {
  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 } }),
});
const { data } = await res.json();
console.log(data.summary.moon_sign); // "Sagittarius"

Response (shortened)

{
  "success": true,
  "data": {
    "ascendant": { "sign": "Cancer", "degree_in_sign": 2.42, "nakshatra": { "name": "Punarvasu" } },
    "planets": [
      { "name": "Sun",  "sign": "Taurus", "degree_in_sign": 0.39,
        "nakshatra": { "name": "Krittika", "pada": 2 }, "house": 11, "retrograde": false },
      { "name": "Moon", "sign": "Sagittarius", "degree_in_sign": 29.84,
        "nakshatra": { "name": "Uttara Ashadha", "pada": 1 }, "house": 6, "retrograde": false }
    ],
    "summary": { "moon_sign": "Sagittarius", "birth_nakshatra": { "name": "Uttara Ashadha" } }
  },
  "meta": { "request_id": "req_0123456789abcdef", "api_version": "v1" }
}

Keep your key on your server. Call the API from your backend and pass the result to your app.

Pay for what you use

No subscription. Buy credits when you need them, and spend them as you call the API.

500

Free credits to start

Added when you verify your email. Enough to try every endpoint.

Never

Credits never expire

Top up whenever you like. Unused credits stay in your account.

₹0

For failed requests

Calls that return an error cost nothing; credits are refunded automatically.

Credit packs with bonus credits for bigger top-ups are bought from your dashboard. Prices are in Indian rupees; a GST invoice is provided.

Create your free account

Common questions

Does the API use AI?

No. Everything in the API is calculated or looked up, so the same input always gives the same output. (Our consumer chat app is separate.)

How do credits work?

Each successful call spends a few credits (1 for a chart, 2 for a dasha or panchang, 3 for a sade sati timeline). Your dashboard shows your balance, usage by endpoint and every transaction.

Which zodiac and calculation settings are used?

Sidereal zodiac with the Lahiri ayanamsa and the mean lunar node (Rahu/Ketu). Options we have not verified yet are rejected with a clear error instead of returning a guess.

Can I limit who can use my key?

Yes. Each API key can be restricted to specific IP addresses or ranges, and revoked instantly from the dashboard.

Can I call it from a browser?

It is possible, but anyone could then read your key. Call the API from your server and send the result to your app.

I need a higher rate limit or have questions first

Write to support@astronirnay.com with your expected volume.