Moon API

Chandra Calculations

Moon (Chandra) API

Calculate Moon positions and transits with Vedika API.

Endpoints

  • POST /v2/astrology/planet-positions - Moon position in a birth chart (sign, house, degree, nakshatra)
  • POST /v2/astrology/planet-transit - Current Moon transit: the sign and degree it holds now

Example

const { VedikaClient } = require('@vedika-io/sdk');

const client = new VedikaClient({ apiKey: 'YOUR_API_KEY' });

async function main() {
  const result = await client.post('/v2/astrology/planet-positions', {
    datetime: '1990-06-15T10:30:00',
    latitude: 18.5204,
    longitude: 73.8567,
    timezone: 'Asia/Kolkata',
    ayanamsa: 'lahiri'
  });
  console.log(result);
}

main().catch(console.error);

The SDK returns the planets in planets (a raw HTTP response wraps them in data.planets). Pick Moon by its name field.

Build with Vedika API

Get started with our comprehensive API

Get API Key