AI-powered compatibility analysis for relationships
AI-powered compatibility analysis for relationships
curl -X POST "https://api.vedika.io/api/v1/compatibility" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"person1": {
"dateOfBirth": "1990-05-15",
"timeOfBirth": "10:30",
"latitude": 19.07,
"longitude": 72.87,
"placeOfBirth": "Mumbai, India"
},
"person2": {
"dateOfBirth": "1992-08-22",
"timeOfBirth": "14:15",
"latitude": 28.61,
"longitude": 77.21,
"placeOfBirth": "Delhi, India"
},
"analysisType": "comprehensive"
}'
| Parameter | Type | Required | Description |
|---|---|---|---|
person1 |
object | - | See the request example |
person2 |
object | - | See the request example |
analysisType |
string | - | See the request example |
{
"success": true,
"data": {
// Endpoint-specific response data
},
"metadata": {
"requestId": "req_123456",
"timestamp": "2026-01-07T00:00:00Z",
"cost": 0.35
}
}
{
"success": false,
"error": {
"code": "INVALID_DATETIME",
"message": "Invalid datetime format. Use ISO 8601.",
"details": { ... }
}
}
const { VedikaClient } = require('@vedika-io/sdk');
const client = new VedikaClient({ apiKey: 'YOUR_API_KEY' });
async function main() {
const result = await client.post('/api/v1/compatibility', {
person1: {
dateOfBirth: '1990-05-15',
timeOfBirth: '10:30',
latitude: 19.07,
longitude: 72.87,
placeOfBirth: 'Mumbai, India'
},
person2: {
dateOfBirth: '1992-08-22',
timeOfBirth: '14:15',
latitude: 28.61,
longitude: 77.21,
placeOfBirth: 'Delhi, India'
},
analysisType: 'comprehensive'
});
console.log(result);
}
main().catch(console.error);
from vedika import VedikaClient
client = VedikaClient(api_key="YOUR_API_KEY")
result = client.request("POST", "/api/v1/compatibility", json={
"person1": {
"dateOfBirth": "1990-05-15",
"timeOfBirth": "10:30",
"latitude": 19.07,
"longitude": 72.87,
"placeOfBirth": "Mumbai, India"
},
"person2": {
"dateOfBirth": "1992-08-22",
"timeOfBirth": "14:15",
"latitude": 28.61,
"longitude": 77.21,
"placeOfBirth": "Delhi, India"
},
"analysisType": "comprehensive"
})
print(result)
Get your API key and start building astrology features today.