# Kundli API

> Kundli API. Calculate complete Vedic birth chart (Janam Kundli, natal chart) with all 9 planetary positions (Sun through Ketu) plus Ascendant (Lagna).

- Capability page: https://roxyapi.com/apis/kundli-api
- Full domain: https://roxyapi.com/products/vedic-astrology-api
- OpenAPI spec: https://roxyapi.com/api/v2/vedic-astrology/openapi.json
- Remote MCP server: https://roxyapi.com/mcp/vedic-astrology

## Overview

Calculate complete Vedic birth chart (Janam Kundli, natal chart) with all 9 planetary positions (Sun through Ketu) plus Ascendant (Lagna). Kundli calculator API for astrology apps, matrimonial sites. Returns accurate graha positions grouped by zodiac signs (rashis) with nakshatra details and pada. Perfect for kundli generation, horoscope matching, and Vedic astrology software integration.

## Endpoints

- `POST /api/v2/vedic-astrology/birth-chart` Get birth chart (D1 Rashi chart) - Kundli Calculator API

## Example request

```bash
curl -X POST "https://roxyapi.com/api/v2/vedic-astrology/birth-chart" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"1990-07-04","time":"10:12:00","latitude":28.6139,"longitude":77.209}'
```

## Example response

```json
{
  "aries": {
    "rashi": "aries",
    "signs": []
  },
  "meta": {
    "Sun": {
      "graha": "Sun",
      "rashi": "Leo",
      "longitude": 132.45,
      "nakshatra": {
        "name": "Magha",
        "pada": 2,
        "key": 9,
        "lord": "Ketu"
      },
      "isRetrograde": false,
      "house": 5,
      "awastha": "Vriddha"
    },
    "Moon": {
      "graha": "Moon",
      "rashi": "Cancer",
      "longitude": 98.32,
      "nakshatra": {
        "name": "Punarvasu",
        "pada": 4,
        "key": 6,
        "lord": "Jupiter"
      },
      "isRetrograde": false,
      "house": 4,
      "awastha": "Yuva"
    }
  }
}
```

## Remote MCP

Every endpoint is a callable tool on the Remote MCP server at https://roxyapi.com/mcp/vedic-astrology over Streamable HTTP. Tool name for `POST /vedic-astrology/birth-chart`: `post_vedic_astrology_birth_chart`. `tools/list` is free; `tools/call` bills the same as REST.

## FAQ

### What does the Kundli API return?

Calculate complete Vedic birth chart (Janam Kundli, natal chart) with all 9 planetary positions (Sun through Ketu) plus Ascendant (Lagna). Every response is structured JSON with documented fields, not free text, so you map it straight into your product.

### How do I authenticate with the Kundli API?

Pass your key in the X-API-Key header on every request. Keys are delivered instantly at checkout with no approval queue. Use a secret sk key server side, or mint a publishable pk key locked to your origins for browser and no-code use.

### Does the Kundli API support multiple languages?

Yes. Append the lang query parameter to any endpoint for responses in English, German, Spanish, French, Hindi, Portuguese, Russian and Turkish. The translated payload includes the full interpretation text, not just field labels.

### Do I need coordinates to call the Kundli API?

No. Call GET /location/search with a city name first, then pass latitude, longitude, and timezone from the first result into the request. Never ask users to type coordinates. Timezone accepts a decimal offset or an IANA name.

### Is the Kundli API available over Remote MCP for AI agents?

Yes. Every endpoint is exposed as a callable tool on the Remote MCP server at https://roxyapi.com/mcp/vedic-astrology over Streamable HTTP, so Claude, ChatGPT, Cursor, and any MCP client auto-discover it with no local setup or Docker.

### How is the Kundli API billed?

Flat pricing: 1 request equals 1 quota unit, REST and MCP identical, with no credit weighting or per-token markup. Every plan includes all 12 domains, so the Kundli API is included at no extra cost.

### What lang values does the Kundli API accept?

The lang parameter accepts en, tr, de, es, hi, pt, fr, ru. Case-insensitive where it is a path value.

## Full reference

Fetch the OpenAPI spec at https://roxyapi.com/api/v2/vedic-astrology/openapi.json. Master agent manifest at https://roxyapi.com/llms.txt.
