# Vedic Astrology API — Kundli, KP, Dasha & Lal Kitab (`yugenox/vedic-kundli-api`) Actor

Vedic birth charts (kundli) for any date, time and place: planets with nakshatra, KP cusps with sub lords, D1-D60 vargas, Vimshottari dasha, panchang, Manglik, Sade Sati, Kaal Sarp, yogas and Lal Kitab. Batch runs or a real-time API, pay per chart.

- **URL**: https://apify.com/yugenox/vedic-kundli-api.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** Developer tools, Other
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 birth charts

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Vedic Astrology API — Kundli, KP, Lal Kitab & Dasha

Compute complete **Vedic birth charts (kundli / janam kundali)** for any date, time and place and get clean, structured JSON back. The actor covers the planets, **KP system** cusps and lords, **divisional charts D1–D60**, **Vimshottari and Yogini dashas**, panchang at birth, **Manglik (Mangal dosha)**, **Shani Sade Sati**, **Kaal Sarp dosha**, yogas and **Lal Kitab**. Run thousands of charts in a batch, or call it in real time as an HTTP API with no subscription.

### What you get for every chart

| Module | What it contains |
|---|---|
| `planets` | Ascendant + 12 grahas: sign, exact longitude, degree in sign, nakshatra, pada, nakshatra lord, sign lord, house, retrograde |
| `kp` | KP (Krishnamurti) positions with **sign / star / sub / sub-sub lords**, 12 Placidus cusps with lords, planet significations, house significators, ruling planets, KP house of each planet |
| `vargas` | 16 divisional charts: D1, D2, D3, D4, D7, D9 (navamsha), D10 (dashamsha), D12, D16, D20, D24, D27, D30, D40, D45, D60 |
| `vimshottari` | Mahadasha → antardasha → pratyantardasha (→ sookshma) with exact dates, balance at birth, and the **current period down to 5 levels** |
| `birthDetails` | Tithi, paksha, yoga, karana, sunrise, sunset, ishtkaal, local mean time, war-time correction |
| `avkahada` | Varna, vashya, yoni, gana, nadi, paya, rasi, nakshatra-pada, ayanamsa, sidereal time |
| `manglik` | Manglik yes/no, severity, Mars house from Lagna and from Moon |
| `sadeSati` | All Sade Sati and Dhaiya (small panoti) periods with phases, plus whether one is running today |
| `kalsarpa` | Kaal Sarp dosha present / absent and its type |
| `yogas` | Yogas and doshas present (Gaj Kesari, Dhan, Raj yogas, Panch Mahapurush, Neech Bhang…) |
| `lalKitab` | Lal Kitab house of each planet, teva type (dharmi, andha, ratandh, minor), the nine debts (rin) |

**Optional modules:** `yogini` dasha, `charDasha` (Jaimini), `ashtakavarga` (bhinna + sarva), `prastharashtakavarga`, `bhavChalit`, `shadbala`, `ghatak` + favourable points, `upagrahas` (Gulika, Maandi…), `karakas` (chara & sthira), `avasthas`, `navtara`, `friendship` (5-fold), `westernAspects`, `bhavMadhyaAspects`, `kpCuspAspects`, `lalKitabDasha`, `lalKitabVarshphal`, `panchadhikari`, `rulingPlanetsNow` (KP horary ruling planets for this moment).

**Text reports (optional, billed as add-ons):** `lalKitabPredictions` (readings + remedies per planet), `lifePredictions`, `ascendantReport`, `nakshatraReport`, `moonSignReport`, `mahadashaPredictions`, `transitPredictions`, `gemstoneReport`, `rudrakshaReport`, `remedies`, `manglikRemedies`. Reports are returned in English as headed sections.

### Input

```json
{
  "charts": [
    { "name": "Sample chart", "gender": "male", "date": "1990-06-15", "time": "10:30", "place": "Delhi, India" },
    { "name": "Second chart", "gender": "female", "date": "1985-07-04", "time": "6:45 PM", "place": "Toronto, Canada" },
    { "id": "crm-123", "date": "2001-09-11", "time": "08:46", "latitude": 40.7128, "longitude": -74.006 }
  ],
  "modules": ["planets", "kp", "vargas", "vimshottari", "manglik"],
  "ayanamsa": "lahiri",
  "dashaLevels": 2
}
```

- **date** `YYYY-MM-DD` (also `DD/MM/YYYY`), years 1800–2150.
- **time** `HH:mm`, `HH:mm:ss` or `10:30 PM`. Unknown birth time? Use `12:00` (the ascendant and houses will not be reliable).
- **place** `"City, Country"` or `"City, State"` (`"London, ON"`, `"Austin, TX"`, `"Hyderabad, Pakistan"`). Old names work too (`Bombay`, `Calcutta`, `Madras`, `Benares`). Or give **latitude** + **longitude**.
- **Time zones and daylight saving time are automatic.** The offset is taken from the place's time-zone history for that exact date and time, including summer time, British Double Summer Time, India's 1942–45 war time, Nepal's +5:30 before 1986 and local mean time before 1900. You can override it with `timezone` (e.g. `"Asia/Kolkata"`) or `utcOffset` (e.g. `5.5` or `"+05:30"`).
- Clock times that happened twice (when clocks go back) or never happened (when clocks jump forward) are resolved and flagged in `birth.timeStatus` with a note.
- **modules**: leave empty for the default set, `"allFacts"` for every computed module, or `"all"` for everything including text reports.
- **ayanamsa**: `lahiri` (default), `kpNew`, `kpOld`, `raman`, `kpKhullar`, `tropical`. The KP module always uses the KP (Krishnamurti new) ayanamsa, as the KP system prescribes.
- **engine**: `auto` (default) or `builtIn`, which computes planets, KP, vargas and dashas entirely inside the actor in about 20 ms per chart.
- **outputFormat**: `perChart` (default) or `perModule` (one row per chart × module, handy for spreadsheets).

### Output (trimmed)

```json
{
  "name": "Test 9",
  "birthDate": "1977-06-06",
  "birthTime": "21:03:00",
  "birthPlace": "New York City, New York, United States",
  "birth": { "utcOffset": -4, "timezone": "America/New_York", "timeStatus": "ok", "utc": "1977-06-07T01:03:00Z",
             "place": { "name": "New York City", "region": "New York", "country": "United States", "latitude": 40.7143, "longitude": -74.006 } },
  "summary": { "ascendant": "Sagittarius", "moonSign": "Aquarius", "sunSign": "Taurus", "nakshatra": "Dhanishta", "nakshatraPada": 4,
               "nakshatraLord": "Mars", "tithi": "Sashti", "currentDasha": "Saturn / Mars / Moon", "manglik": false, "sadeSatiNow": true, "kaalSarp": false },
  "planets": [
    { "planet": "Moon", "sign": "Aquarius", "signNumber": 11, "longitude": 303.3542, "degreeInSign": "3°21'15\"",
      "nakshatra": "Dhanishta", "nakshatraPada": 4, "nakshatraLord": "Mars", "signLord": "Saturn", "retrograde": false, "house": 3 }
  ],
  "kp": {
    "planets": [ { "planet": "Moon", "longitudeDms": "303°26'37\"", "signLord": "Saturn", "starLord": "Mars", "subLord": "Venus", "subSubLord": "Mars", "house": 2 } ],
    "cusps":   [ { "cusp": 1, "longitudeDms": "242°10'17\"", "sign": "Sagittarius", "starLord": "Ketu", "subLord": "Venus", "subSubLord": "Jupiter" } ],
    "rulingPlanets": { "ascendantNakshatraLord": "Ketu", "ascendantSignLord": "Jupiter", "moonNakshatraLord": "Mars", "moonSignLord": "Saturn", "dayLord": "Moon", "ascendantSubLord": "Venus", "moonSubLord": "Venus" }
  },
  "vargas": [ { "division": "D9", "name": "Navamsha", "Ascendant": "Aries", "Sun": "Cancer", "Moon": "Scorpio", "Mars": "Gemini", "Mercury": "Capricorn",
                 "Jupiter": "Cancer", "Venus": "Gemini", "Saturn": "Sagittarius", "Rahu": "Virgo", "Ketu": "Pisces" } ],
  "vimshottari": { "balanceAtBirth": { "lord": "Mars", "years": 1, "months": 8, "days": 26 },
                   "current": { "mahadasha": { "lord": "Saturn", "start": "2013-03-03", "end": "2032-03-03" },
                                "antardasha": { "lord": "Mars", "start": "2025-09-05", "end": "2026-10-15" } },
                   "periods": [ { "lord": "Mars", "start": "…", "end": "…", "antardashas": [ … ] } ] },
  "manglik": { "isManglik": false, "presentInLagnaChart": false, "presentInMoonChart": false, "marsHouseFromLagna": 5, "marsHouseFromMoon": 3,
               "verdict": "Mangal Dosha is present neither in Lagna Chart nor in Moon Chart" },
  "meta": { "status": "ok", "modules": { "planets": "ok", "kp": "ok" } }
}
```

Every chart carries `meta.modules` with a per-module status (`ok`, `ok (built-in ephemeris)` or `error`). If one module can't be computed, the rest of the chart still comes back. Charts with invalid input (for example 30 February) come back as a row with an `error` message and are not charged.

### Real-time API (Standby mode)

The actor also runs as a low-latency HTTP API, which suits apps, chatbots and websites:

```
GET  https://<your-standby-url>/?date=1990-06-15&time=10:30&place=Delhi,%20India&modules=planets,vimshottari
POST https://<your-standby-url>/   {"charts":[{…},{…}], "modules":[…]}      (up to 10 charts per request)
```

Pass your Apify API token as `Authorization: Bearer <token>`. The response is `{ "message", "count", "items": [ … ] }` with the same item shape as the dataset. The first request after a quiet spell takes a few extra seconds while the API starts up. Requests after that are answered right away.

### Use cases

- **Astrology apps and websites**: kundli generation, KP charts, dasha timelines and Manglik checks without building an ephemeris.
- **Matrimony and matchmaking platforms**: Manglik status, nakshatra, rasi, gana, nadi, varna and yoni for every profile, in bulk.
- **KP astrologers**: star, sub and sub-sub lords for every planet and cusp, significators and ruling planets for many charts at once.
- **Content and newsletters**: Sade Sati calendars, current dasha, moon sign and nakshatra for a subscriber list.
- **Research and data science**: consistent, structured chart data for thousands of birth records.

### Accuracy

- Planet positions are checked against Swiss Ephemeris. With `engine: "builtIn"`, the Sun, Moon and Jupiter were verified to within 10 arcseconds from 1850 to 2050. The default online engine can differ by up to about 2 arcminutes on slow-moving planets. KP cusps use true Placidus.
- Divisional charts use the standard Parashari formulas. Vimshottari dates use a 365.25-day year.
- If the primary calculation service is unavailable, planets, KP, vargas and dashas are computed by the built-in ephemeris and flagged `ok (built-in ephemeris)` in `meta.modules`.

### FAQ

**The place was matched to the wrong city.** Add the state or country (`"Toronto, Canada"`, `"Paris, TX"`) or give `latitude` and `longitude`. The resolved place and other close matches are echoed in `birth.place`, so you can check them.

**Is daylight saving time handled?** Yes. It is applied automatically from the place and date, so don't adjust the birth time yourself.

**Which ayanamsa is used?** Lahiri by default. KP positions always use the KP (Krishnamurti new) ayanamsa.

**Can I get output in Hindi or other languages?** Not at the moment. Everything is returned in English, and planet, sign and nakshatra names use standard transliterations.

**How am I billed?** You pay per computed chart: $0.005 per chart, which is $5 per 1,000 charts. Optional text reports cost $0.002 each. Charts with invalid input and charts whose core modules failed are not charged.

**How fast is it?** About 1–3 seconds per chart with the default modules, and many charts run in parallel. With `engine: "builtIn"` it takes about 20 ms per chart.

**Is it legal to scrape kundli data from astrology websites?** This actor only uses publicly available calculation pages. It never logs in, and nothing it uses is behind an account or a paywall. Planet positions, dashas and the other chart values are astronomical calculations, which are facts. Your results contain the names and birth details you supply. Those count as personal data in most countries, so store and use them in line with GDPR, PIPEDA, CCPA and any other laws that apply to you, and follow the terms of the websites involved. The optional text reports are prose written by a third-party astrology publisher, so if you plan to republish them, check that your use is allowed. If you're unsure, check with a lawyer. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

**Does it access any private data?** No. It never logs in, uses no accounts or cookies, and reads nothing private. It works only from the birth details you send. To compute a chart, the date, time, gender, place and coordinates are sent to an online astrology calculation service. The names you give are never sent: they are only echoed back in your own results. With `engine: "builtIn"`, charts are computed entirely inside the actor and no birth details are sent anywhere.

***

Place data © [GeoNames](https://www.geonames.org), licensed under CC BY 4.0.

# Actor input Schema

## `charts` (type: `array`):

One object per person. Required: "date" (YYYY-MM-DD), "time" (HH:mm, 24h, or "10:30 PM") and "place" ("City, Country"), or "latitude" + "longitude" instead of the place. Optional: "name", "gender" (male/female), "id" (your own reference, echoed back), "timezone" (IANA, e.g. "Asia/Kolkata"), "utcOffset" (e.g. 5.5 or "+05:30", overrides the time zone), "countryHint". Daylight saving time and historical offsets are applied automatically from the place. Also accepted: dates like 15/06/1990 or "15 June 1990", ISO timestamps with an offset ("1990-06-15T10:30:00+05:30"), times like "10.30" or "1030", and coordinates like "28N39" / "77E13" or "28.65N".

## `modules` (type: `array`):

What to compute for every chart. Leave empty for the default set (birthDetails, avkahada, planets, kp, vargas, vimshottari, manglik, sadeSati, kalsarpa, yogas, lalKitab). Modules marked \[text report] return narrative text and are billed as premium add-ons. Use "all" for everything or "allFacts" for everything except the text reports.

## `ayanamsa` (type: `string`):

Sidereal zodiac used for planets, vargas and dashas. The KP module always uses the KP (Krishnamurti new) ayanamsa, as the KP system prescribes.

## `dashaLevels` (type: `integer`):

Levels of Vimshottari / Yogini periods to list: 1 = mahadashas, 2 = + antardashas, 3 = + pratyantardashas, 4 = + sookshma. The current period is always given down to 5 levels.

## `engine` (type: `string`):

Auto: full module set, with automatic fallback to the built-in ephemeris for the core numbers. Built-in only: planets, KP positions/cusps/lords, divisional charts and dashas computed entirely inside the actor (fastest; other modules unavailable).

## `outputFormat` (type: `string`):

One dataset row per chart (all modules nested), or one row per chart × module.

## `maxCharts` (type: `integer`):

Stop after this many charts ("maxItems" is accepted too). Duplicate charts in the list are computed and billed once.

## `maxConcurrency` (type: `integer`):

How many requests run at once. The default is a good balance of speed and reliability.

## `includeRawText` (type: `boolean`):

Debugging aid: attach the plain text each module was parsed from.

## `proxyConfiguration` (type: `object`):

Apify Proxy is used by default. Residential proxies take over automatically if requests start getting blocked.

## Actor input object example

```json
{
  "charts": [
    {
      "name": "Sample chart",
      "gender": "male",
      "date": "1990-06-15",
      "time": "10:30",
      "place": "Delhi, India"
    },
    {
      "name": "Second chart",
      "gender": "female",
      "date": "1985-07-04",
      "time": "18:45",
      "place": "Toronto, Canada"
    }
  ],
  "ayanamsa": "lahiri",
  "dashaLevels": 2,
  "engine": "auto",
  "outputFormat": "perChart",
  "maxCharts": 1000,
  "maxConcurrency": 10,
  "includeRawText": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All computed charts.

## `run` (type: `string`):

Status and statistics for this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "charts": [
        {
            "name": "Sample chart",
            "gender": "male",
            "date": "1990-06-15",
            "time": "10:30",
            "place": "Delhi, India"
        },
        {
            "name": "Second chart",
            "gender": "female",
            "date": "1985-07-04",
            "time": "18:45",
            "place": "Toronto, Canada"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/vedic-kundli-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "charts": [
        {
            "name": "Sample chart",
            "gender": "male",
            "date": "1990-06-15",
            "time": "10:30",
            "place": "Delhi, India",
        },
        {
            "name": "Second chart",
            "gender": "female",
            "date": "1985-07-04",
            "time": "18:45",
            "place": "Toronto, Canada",
        },
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/vedic-kundli-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "charts": [
    {
      "name": "Sample chart",
      "gender": "male",
      "date": "1990-06-15",
      "time": "10:30",
      "place": "Delhi, India"
    },
    {
      "name": "Second chart",
      "gender": "female",
      "date": "1985-07-04",
      "time": "18:45",
      "place": "Toronto, Canada"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/vedic-kundli-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/vedic-kundli-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/iYLVoJk1qvkF96Zcg/builds/WlXAR300ScUlRDMyP/openapi.json
