Synastry Analysis

Western relationship compatibility

POST /v2/western/synastry $0.050

Overview

Western relationship compatibility

Request

curl -X POST "https://api.vedika.io/v2/western/synastry" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "person1": {
      "datetime": "1990-05-15T10:30:00+05:30",
      "latitude": 28.6139,
      "longitude": 77.209,
      "timezone": "+05:30"
    },
    "person2": {
      "datetime": "1992-08-20T14:00:00+05:30",
      "latitude": 19.076,
      "longitude": 72.877,
      "timezone": "+05:30"
    }
  }'

Parameters

Parameter Type Required Description
person1 object - See the request example
person2 object - See the request example

Response

{
  "success": true,
  "data": {
    // Endpoint-specific response data
  },
  "metadata": {
    "requestId": "req_123456",
    "timestamp": "2026-01-07T00:00:00Z",
    "cost": 0.120
  }
}

Error Handling

{
  "success": false,
  "error": {
    "code": "INVALID_DATETIME",
    "message": "Invalid datetime format. Use ISO 8601.",
    "details": { ... }
  }
}

Rate Limits

  • Free Sandbox: Mock data for testing (no auth required)
  • Starter ($12/mo): 300 credits/month
  • Pro ($60/mo): 1,500 credits/month
  • Business ($120/mo): 3,000 credits/month
  • Enterprise ($240/mo): 6,000 credits/month
  • Enterprise ($240/mo): 6,000 credits + custom limits

SDKs

JavaScript/Node.js

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

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

async function main() {
  const result = await client.post('/v2/western/synastry', {
    person1: {
      datetime: '1990-05-15T10:30:00+05:30',
      latitude: 28.6139,
      longitude: 77.209,
      timezone: '+05:30'
    },
    person2: {
      datetime: '1992-08-20T14:00:00+05:30',
      latitude: 19.076,
      longitude: 72.877,
      timezone: '+05:30'
    }
  });
  console.log(result);
}

main().catch(console.error);

Python

from vedika import VedikaClient

client = VedikaClient(api_key="YOUR_API_KEY")
result = client.request("POST", "/v2/western/synastry", json={
    "person1": {
        "datetime": "1990-05-15T10:30:00+05:30",
        "latitude": 28.6139,
        "longitude": 77.209,
        "timezone": "+05:30"
    },
    "person2": {
        "datetime": "1992-08-20T14:00:00+05:30",
        "latitude": 19.076,
        "longitude": 72.877,
        "timezone": "+05:30"
    }
})
print(result)

Ready to Build with Vedika?

Get your API key and start building astrology features today.