Skip to content

Compatibility

Calculate astrological compatibility between two birth charts based on sun sign elements and the aspect between their natal Sun positions.

Required Module

Requires the compatibility:calc module.

Calculate Compatibility

bash
curl -X POST "https://api.astroapi.cloud/api/calc/compatibility" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "dateTime1": "1990-06-15T14:30",
    "location1": {
      "longitude": -0.1278,
      "latitude": 51.5074,
      "timezone": "Europe/London"
    },
    "dateTime2": "1988-03-22T09:15",
    "location2": {
      "longitude": 2.3522,
      "latitude": 48.8566,
      "timezone": "Europe/Paris"
    },
    "language": "en",
    "includeText": true,
    "includeReadableEntities": true
  }'

Parameters

ParameterTypeRequiredDescription
dateTime1stringYesFirst person's birth date and time in YYYY-MM-DDTHH:mm format
location1objectYesFirst person's birth location (longitude, latitude, timezone)
dateTime2stringYesSecond person's birth date and time in YYYY-MM-DDTHH:mm format
location2objectYesSecond person's birth location (longitude, latitude, timezone)
languagestringNoLanguage code for text content (default: "en")
includeTextbooleanNoInclude interpretation text (default: false)
includeReadableEntitiesbooleanNoInclude human-readable sign titles (default: false)

Location Object

json
{
    "longitude": -0.1278,
    "latitude": 51.5074,
    "timezone": "Europe/London"
}

Response

json
{
    "data": {
        "sign1": "gemini",
        "sign2": "aries",
        "scoreBasedOnElement": 80,
        "scoreBasedOnSunAspect": 85,
        "sign1Title": "Gemini",
        "sign2Title": "Aries",
        "text": "Gemini and Aries form a lively and stimulating combination. Both signs are drawn to new ideas and fast-paced experiences. Aries brings passion and directness while Gemini adds wit and versatility..."
    }
}

Response Fields

FieldTypeDescription
sign1stringZodiac sign of the first person
sign2stringZodiac sign of the second person
scoreBasedOnElementnumberCompatibility score (0–100) based on elemental affinity
scoreBasedOnSunAspectnumberCompatibility score (0–100) based on the exact Sun-to-Sun aspect
sign1Titlestring | nullHuman-readable sign name (only if includeReadableEntities: true)
sign2Titlestring | nullHuman-readable sign name (only if includeReadableEntities: true)
textstring | nullInterpretation text (only if includeText: true)

Scoring Methods

Element-Based Score

Compatibility is assessed based on the elemental relationship between the two Sun signs:

RelationshipScoreSign Pairs
Same element90Fire+Fire, Earth+Earth, Air+Air, Water+Water
Compatible elements80Fire+Air, Earth+Water
Neutral elements65Fire+Earth, Air+Water
Challenging elements50Fire+Water, Earth+Air

Sun Aspect Score

Compatibility is also assessed based on the exact aspect between the two natal Sun positions:

AspectScoreNotes
Conjunction (0°)95Same degree, very strong bond
Trine (120°)92Natural harmony and ease
Sextile (60°)85Friendly and supportive
Opposition (180°)70Magnetic attraction with tension
Square (90°)55Dynamic but challenging
Quincunx (150°)45Adjustment and growth required

Two Scores

The element score gives a quick overview based on traditional sign affinities. The Sun aspect score is more precise because it is calculated from the exact degree of both natal Suns, making it unique to the specific individuals rather than their signs alone.


Elemental Groups

ElementSigns
FireAries, Leo, Sagittarius
EarthTaurus, Virgo, Capricorn
AirGemini, Libra, Aquarius
WaterCancer, Scorpio, Pisces

Going Deeper

For a more comprehensive compatibility analysis, consider using the Synastry endpoint, which calculates inter-chart aspects between all planets in both charts and provides house overlays.

AstroAPI Documentation