Birth Chart

Vedic birth chart with planetary positions

POST /v2/astrology/birth-chart See current pricing

Overview

Vedic birth chart with planetary positions

Request

curl -X POST "https://api.vedika.io/v2/astrology/birth-chart" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "datetime": "1990-05-15T10:30:00",
    "latitude": 19.07,
    "longitude": 72.87,
    "timezone": "+05:30",
    "ayanamsa": "lahiri"
  }'

Parameters

Parameter Type Required Description
datetime string Either this or date and time Birth date/time in ISO 8601 format
latitude number Yes Birth location latitude (-90 to 90)
longitude number Yes Birth location longitude (-180 to 180)
timezone string or number No IANA timezone, UTC offset such as +05:30, or offset hours
ayanamsa string No lahiri, kp, raman, or yukteshwar

Response

A successful response contains success, data, meta, and billing. The data object includes computed ascendant, planets, and houses. See the live OpenAPI specification for the current response schema.

Error Handling

Handle non-2xx responses by HTTP status. The live OpenAPI specification lists the current error responses.

Pricing and limits

The free sandbox returns mock data without an API key. Production calls are billed under your account plan; check current pricing and your dashboard for applicable limits.

SDKs

JavaScript/Node.js

const vedika = require('@vedika-io/sdk');
const client = new vedika.VedikaClient({ apiKey: 'YOUR_API_KEY' });

const result = await client.astrology.birth_chart({
  datetime: '1990-05-15T10:30:00+05:30',
  latitude: 28.6139,
  longitude: 77.2090
});

Python

from vedika import VedikaClient

client = VedikaClient('YOUR_API_KEY')

result = client.astrology.birth_chart(
    datetime='1990-05-15T10:30:00+05:30',
    latitude=28.6139,
    longitude=77.2090
)

Ready to Build with Vedika?

Get your API key and start building astrology features today.