Astrology API for developers
LifeAstroAPI is a REST API for Vedic astrology and the Hindu calendar: panchang, festivals and vrats, kundli, dasha, kundli matching, muhurat, horoscopes, numerology, tarot and Western astrology.
- 333 REST endpoints under one API key, including 12 composed report endpoints that return JSON; the open-source SDKs render that JSON as branded PDFs on your side.
- Festival and vrat dates verified entry for entry against the printed panchang calendars of 14 cities on four continents (4,427 of 4,427 entries).
- Computed with the Swiss Ephemeris; Lahiri ayanamsa by default, other ayanamsas on request.
- Astronomy checked against NASA JPL Horizons and NASA eclipse data with a published, rerunnable script: planet positions median 0.05 arc-seconds, sunrise/sunset/moonrise within 10 seconds, all 44 eclipses of 2021–2030 found with the same type (lifeastroapi.com/accuracy/#astronomy).
- KP astrology (Krishnamurti Paddhati): star, sub and sub-sub lords for every planet and every Placidus cusp, house and planet significators (four levels), the 4-step chain, ruling planets, KP horary for numbers 1–249, and the KP ayanamsa (/v1/chart/kp-sublord, /v1/chart/kp-house-significator, /v1/prashna/kp-horary).
- Chart symbols for every planet in every divisional chart (retrograde, combust, vargottama, exalted, debilitated), charts from the Moon, the Sun or the Karakamsha, and aspect strength in degrees (sphuta drishti); the SDK PDF reports draw these symbols on every chart with a legend in the report language.
- Location-aware calculations such as birth charts and Panchang take latitude, longitude and an IANA timezone for locations worldwide.
- Independent uptime monitoring: an outside monitor checks the API's readiness endpoint every 3 minutes; live status and uptime history are public at status.lifeastroapi.com.
- Lightning-fast: median 24 ms server response over the last 30 days of production traffic; 81% of calls answered in under 100 ms and 83% of endpoints in under 20 ms at the median (kundli matching 8 ms, navamsa chart 9 ms).
- Localized Vedic names, labels and authored readings are available in English, Hindi, Marathi, Gujarati, Bengali, Telugu, Tamil, Kannada, Malayalam and Punjabi. Use `lang` or `locale` on supported endpoints. English is the default.
- Open-source MCP server 1.3.0 with 332 tools for Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Codex and other MCP clients; the assistant asks and answers in the same 10 languages: github.com/ayanshulife/lifeastroapi-mcp.
- Official Node.js / TypeScript SDK on npm: `npm install [email protected]`; every Vedic method takes `lang`, and PDF reports render in the same 10 languages (source: github.com/ayanshulife/lifeastroapi-node).
- The same npm package runs in React Native and Expo; report PDFs are printed on the device from `lifeastroapi/pdf-html` with expo-print.
- Official Flutter / Dart SDK: `flutter pub add lifeastroapi:1.3.0` (source: github.com/ayanshulife/lifeastroapi-flutter). Official Python SDK with sync and async clients: `pip install lifeastroapi==1.3.0` (source: github.com/ayanshulife/lifeastroapi-python). Official PHP SDK for PHP 8.1+: `composer require lifeastroapi/lifeastroapi:1.3.0` (source: github.com/ayanshulife/lifeastroapi-php); it also renders branded report PDFs on your own server with headless Chrome or Gotenberg. Official Java SDK for Java 17+ on Maven Central: `com.lifeastroapi:lifeastroapi-java:1.3.0`, with a Spring Boot 3 starter `com.lifeastroapi:lifeastroapi-spring-boot-starter:1.3.0` (source: github.com/ayanshulife/lifeastroapi-java).
- Official C# / .NET SDK on NuGet for .NET 8, 9 and 10 and .NET Framework 4.6.2+: `dotnet add package LifeAstroApi --version 1.3.0`, with ASP.NET Core dependency injection in `LifeAstroApi.Extensions.DependencyInjection` (source: github.com/ayanshulife/lifeastroapi-dotnet).
- Official Go SDK for Go 1.22+: `go get github.com/ayanshulife/[email protected]`, with typed requests and branded HTML reports. Render branded PDFs using Chrome, Chromium or a Gotenberg server (source: github.com/ayanshulife/lifeastroapi-go).
- Free tier: 7,500 welcome credits plus 1,500 credits a month, no card required. Paid plans from ₹999 / $29 a month; pay-as-you-go also available.
What an astrology API does
An astrology API turns a date, time and place into astrological data your software can use: the position of each planet, the ascendant and houses of a birth chart, the day's panchang, the dates of festivals and vrats, a compatibility score for two charts, or the best muhurat in a date range. You send an HTTPS request with your API key; you get JSON back. No ephemeris files to manage, no almanac tables to transcribe, no timezone arithmetic to get wrong.
The Vedic API covers Panchang, Kundli, dasha, matching, muhurat and the Hindu festival calendar. The Western API covers natal charts, synastry, transits, returns and 23 house systems. Both use the Swiss Ephemeris. The Accuracy Lab publishes the test inputs, API responses and comparisons with NASA JPL Horizons for birth chart positions and Panchang timings.
What is covered
| Area | Endpoints give you |
|---|---|
| Panchang | Tithi, nakshatra, yoga, karana with end times; sunrise, moonrise, Rahu Kaal, Choghadiya, Hora, Abhijit |
| Hindu calendar & festivals | Every festival, Ekadashi with parana, Pradosh, Sankashti, Purnima, Amavasya, Sankranti, eclipses, for any city |
| Kundli (birth chart) | Planets, lagna, houses, D1–D60 divisional charts, Shadbala, Ashtakavarga, yogas, doshas, arudha padas, Upapada, argala |
| KP astrology | Krishnamurti Paddhati: star, sub and sub-sub lords of every planet and Placidus cusp, house and planet significators, 4-step chain, ruling planets, KP horary (1–249), KP ayanamsa |
| Dasha & transits | Vimshottari to the prana level, Yogini, Char and Ashtottari dasha, Sade Sati, tarabala, planet ingress and retrograde moments |
| Kundli matching | Ashtakoota with every koota, Mangal dosha, Nadi dosha, Navamsa compatibility |
| Muhurat | Validators and a best-time scan for vivah, graha pravesh, naamkaran, vyapar, yatra, vahan and bhoomi pujan; upanayan, annaprashan, vidyarambh and karnavedha; classical prohibitions, chandra bala, tara bala, panchaka |
| Horoscopes & narratives | Daily, weekly and monthly horoscopes; authored readings in 10 languages |
| Numerology & tarot | Chaldean and Pythagorean numbers, personal periods, all 78 tarot cards |
| Western astrology | Natal, synastry, composite, transits, returns, progressions, Hellenistic lots, 23 house systems, asteroids |
Your first call
For daily Panchang, pass a local date, IANA time zone and coordinates. This request returns the daily Panchang for New Delhi.
curl "https://api.lifeastroapi.com/v1/panchang/basic?date=2027-01-15&tz=Asia/Kolkata&lat=28.6139&lon=77.209" \
-H "Authorization: Bearer YOUR_API_KEY"See the recorded JSON in the Panchang Playground or follow the quickstart to make an authenticated call.
How to choose an astrology API
- Location-aware results. Tithi, sunrise and festival dates change with latitude, longitude and timezone. An API that assumes one city gives diaspora users the wrong day.
- Verified accuracy you can rerun. Ask for the comparison against an independent reference, not just the name of the ephemeris.
- Real response examples in the docs, so you know the field names before you write code.
- A free tier large enough to build a prototype, and pricing that scales with calls, not seats.
- Narratives written by people in the languages your users read, if you show readings and not just numbers.
- A way for AI assistants to call it (an MCP server or tool definitions) if you are building an agent.
What makes the calculations different
Real-time panchang and muhurta
Every panchang element with its exact start and end time, and muhurta scored for the exact minute you ask about, not one value per day.
Hindu calendar, festivals and vrat
335 festival rules, about 720 dated observances per city per year, 19 vrat families, each decided at the moment its classical rule demands.
Choose an API
Vedic Astrology API
A Vedic astrology (Jyotish) API for developers: panchang, Hindu festival calendar, kundli, dashas, transits, kundli matching, muhurat, horoscopes, Varshaphal, Prashna, Lal Kitab, remedies and PDF reports, with narratives in 10 languages.
Panchang API
A REST API for the daily Hindu panchang: tithi, nakshatra, yoga, karana and vara with exact end times, sunrise, moonrise, Rahu Kaal, Choghadiya, Hora, Abhijit and Brahma Muhurat, for any place and date.
Hindu Calendar & Festival API
A Hindu festival and vrat calendar API: every festival, Ekadashi with parana, Pradosh, Sankashti, Purnima, Amavasya, Sankranti, Shraddha and eclipse for any city and year, verified against printed panchangs of 14 cities.
Kundli API
A Kundli (Vedic birth chart) API: planet positions, lagna, houses, divisional charts D1–D60, Vimshottari, Yogini, Char and Ashtottari dashas, arudha padas, Upapada and argala, Ashtakavarga, Shadbala, yogas, KP sub-lords and significators, transits and Sade Sati from a birth date, time and place.
Kundli Matching API
A Kundli matching (Guna Milan) API: the 36-point Ashtakoota score with all eight kootas, Mangal, Nadi and Shani Dosha with cancellation rules, Navamsa compatibility and dasha synchronisation from two birth details.
Horoscope API
A Vedic horoscope API: daily, weekly and monthly rashifal for all 12 Moon signs, plus personalised predictions from a birth chart, written in 10 languages.
Muhurat API
A Muhurat API that scores and finds auspicious times for weddings, griha pravesh, naming, business openings, travel, vehicle purchase, bhoomi pujan, upanayan, annaprashan, vidyarambh and karnavedha, using tithi, nakshatra, yoga, Tara Bala, Chandra Bala, Panchaka and the classical prohibitions.
Numerology API
A numerology API returning driver (Mulank), conductor (Bhagyank), soul, personality and destiny numbers, personal year, challenges and lucky factors from a name and date of birth.
Tarot API
A tarot API with the full 78-card deck, upright and reversed meanings, a daily card, yes/no readings and single, three-card and Celtic Cross spreads.
Western Astrology API
A Western (tropical) astrology API: natal charts in 23 house systems, aspects, synastry, transits, progressions, Hellenistic Lots, midpoints, asteroids and astrocartography.
Frequently asked questions
Is there a free tier?
Yes. Every new account gets 7,500 welcome credits (valid 30 days) plus 1,500 free credits a month with no card required. Paid plans start at ₹999 / $29 a month, and pay-as-you-go is available.
Can AI assistants such as Claude or Cursor call it directly?
Yes. The open-source LifeAstro MCP server exposes every endpoint as a tool for Claude Desktop, Cursor, Codex and other MCP clients that run local servers, using your existing API key.
Which ephemeris and ayanamsa does it use?
Planet positions come from the Swiss Ephemeris. Vedic calculations use the Lahiri (Chitrapaksha) ayanamsa by default; other ayanamsas can be selected per request.