Back to Docs

Vedic Chart (Basic)

POST/api/v1/vedic/chart

Get essential Vedic chart data: Ascendant, planetary positions with Nakshatra details, and house placements. This is a lightweight endpoint ideal for applications that need core chart data without Dasha, Yogas, or Strength calculations.

Full URL

https://astro-api-1qnc.onrender.com/api/v1/vedic/chart

Request Parameters

ParameterTypeRequiredDescription
yearintegerYesYear of birth (e.g., 1990)
monthintegerYesMonth of birth (1-12)
dayintegerYesDay of birth (1-31)
hourintegerYesHour of birth (0-23)
minuteintegerYesMinute of birth (0-59)
latfloatYesLatitude of birth location (-90 to 90)
lngfloatYesLongitude of birth location (-180 to 180)
citystringNoCity name (for display purposes)
tz_strstringNoTimezone string (e.g., 'Asia/Kolkata'). Use 'AUTO' for automatic detection.
ayanamshastringNoAyanamsha system: 'lahiri' (default), 'raman', 'krishnamurti'
house_systemstringNoHouse system: 'whole_sign' (default), 'placidus', 'equal'
node_typestringNoLunar node type: 'mean' (default) or 'true'

Sample Code

import requests
import json

url = "https://astro-api-1qnc.onrender.com/api/v1/vedic/chart"

payload = {
    "year": 1990,
    "month": 5,
    "day": 15,
    "hour": 10,
    "minute": 30,
    "city": "New Delhi",
    "lat": 28.6139,
    "lng": 77.2090,
    "tz_str": "Asia/Kolkata",
    "ayanamsha": "lahiri",
    "house_system": "whole_sign",
    "node_type": "mean"
}

headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())

Response Data

{
  "ascendant": {
    "sign": "Cancer",
    "sign_num": 4,
    "degree": 15.234,
    "nakshatra": {
      "name": "Pushya",
      "pada": 2,
      "lord": "Saturn"
    }
  },
  "planets": [
    {
      "name": "Sun",
      "sign": "Taurus",
      "sign_num": 2,
      "degree": 0.543,
      "house": 11,
      "nakshatra": {
        "name": "Krittika",
        "pada": 2,
        "lord": "Sun"
      },
      "is_retrograde": false
    },
    {
      "name": "Moon",
      "sign": "Aquarius",
      "sign_num": 11,
      "degree": 14.234,
      "house": 8,
      "nakshatra": {
        "name": "Shatabhisha",
        "pada": 3,
        "lord": "Rahu"
      },
      "is_retrograde": false
    }
    // ... other planets
  ],
  "houses": [
    { "house": 1, "sign": "Cancer", "sign_num": 4 },
    { "house": 2, "sign": "Leo", "sign_num": 5 }
    // ... 12 houses
  ],
  "metadata": {
    "ayanamsha": "lahiri",
    "ayanamsha_value": 23.456,
    "house_system": "whole_sign",
    "julian_day": 2448000.0,
    "timezone": "Asia/Kolkata"
  }
}

Related Endpoints