Vedic Chart (Basic)
POST
/api/v1/vedic/chartGet 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/chartRequest Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| year | integer | Yes | Year of birth (e.g., 1990) |
| month | integer | Yes | Month of birth (1-12) |
| day | integer | Yes | Day of birth (1-31) |
| hour | integer | Yes | Hour of birth (0-23) |
| minute | integer | Yes | Minute of birth (0-59) |
| lat | float | Yes | Latitude of birth location (-90 to 90) |
| lng | float | Yes | Longitude of birth location (-180 to 180) |
| city | string | No | City name (for display purposes) |
| tz_str | string | No | Timezone string (e.g., 'Asia/Kolkata'). Use 'AUTO' for automatic detection. |
| ayanamsha | string | No | Ayanamsha system: 'lahiri' (default), 'raman', 'krishnamurti' |
| house_system | string | No | House system: 'whole_sign' (default), 'placidus', 'equal' |
| node_type | string | No | Lunar 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"
}
}