Calculate numerology compatibility
Computes compatibility between two people from their numerology signatures. Each person uses name and date (BirthInput-aligned). Requires authenticated API key access (Core tier or above in product terms). Returns score, level, and explanatory strengths/challenges.
Endpoint
POST /v1/numerology/compatibility
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
| person1 | object | Yes | |
| person1.name | string | Yes | Name of the person in compatibility calculation |
| person1.date | string (date) | Yes | Birth date for compatibility calculation (YYYY-MM-DD) |
| person2 | object | Yes | |
| person2.name | string | Yes | Name of the person in compatibility calculation |
| person2.date | string (date) | Yes | Birth date for compatibility calculation (YYYY-MM-DD) |
Example request
- curl
- Python
- TypeScript
curl -X POST "https://api.asterwise.com/v1/numerology/compatibility" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"person1":{"name":"Arjun Mehta","date":"1985-11-12"},"person2":{"name":"Sofia Rossi","date":"1990-06-21"}}'
import asterwise
from asterwise.api.numerology_api import NumerologyApi
from asterwise.models.compatibility_request import CompatibilityRequest
configuration = asterwise.Configuration(
host="https://api.asterwise.com",
access_token="YOUR_API_KEY",
)
request = CompatibilityRequest(
person1={'name': 'Arjun Mehta', 'date': '1985-11-12'},
person2={'name': 'Sofia Rossi', 'date': '1990-06-21'},
)
with asterwise.ApiClient(configuration) as client:
api = NumerologyApi(client)
result = api.numerology_compatibility(compatibility_request=request)
print(result)
import { createClient, createConfig, numerologyCompatibility } from 'asterwise';
const client = createClient(createConfig({
baseUrl: 'https://api.asterwise.com',
headers: { Authorization: 'Bearer YOUR_API_KEY' },
}));
const result = await numerologyCompatibility({
client,
body: {
"person1": {
"name": "Arjun Mehta",
"date": "1985-11-12"
},
"person2": {
"name": "Sofia Rossi",
"date": "1990-06-21"
}
},
});
console.log(result.data);
Example response
Response fields
| Field | Type | Description |
|---|---|---|
| success | boolean | True if the request succeeded |
| message | string | Human-readable status message |
| data | object | |
| data.life_path_1 | integer | First person's life path number |
| data.life_path_2 | integer | Second person's life path number |
| data.compatibility_score | integer | Compatibility score (1-10) |
| data.compatibility_level | string | Compatibility level (Excellent, Good, Fair, Challenging) |
| data.interpretation | string | Detailed compatibility interpretation |
| data.strengths | array[string] | Relationship strengths |
| data.challenges | array[string] | Potential challenges |
| data.advice | string | Relationship advice |
Errors
| Code | Description | Reference |
|---|---|---|
| authentication_failed | Missing or invalid API key. | authentication_failed |
| ephemeris_unavailable | Upstream ephemeris service error. | ephemeris_unavailable |
| insufficient_tier | API key tier does not include this endpoint. | insufficient_tier |
| internal_error | Unexpected server error. | internal_error |
| ip_rate_limit_exceeded | Too many requests in a short window. | ip_rate_limit_exceeded |
| payload_too_large | Request body exceeds the size limit. | payload_too_large |
| resource_not_found | Referenced resource was not found. | resource_not_found |
| validation_error | Request body failed schema validation. | validation_error |