Skip to content

Synastrie & Thèmes Composites

Comparez deux thèmes natals pour l'analyse relationnelle.

Synastrie

Calculez les aspects entre deux thèmes :

bash
curl -X POST "https://api.astroapi.cloud/api/calc/synastry" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "dateTime1": "1990-06-15T14:30",
    "location1": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "dateTime2": "1988-03-22T09:15",
    "location2": {
      "latitude": 48.8566,
      "longitude": 2.3522,
      "timezone": "Europe/Paris"
    }
  }'
javascript
const response = await fetch("https://api.astroapi.cloud/api/calc/synastry", {
    method: "POST",
    headers: {
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    body: JSON.stringify({
        dateTime1: "1990-06-15T14:30",
        location1: {
            latitude: 51.5074,
            longitude: -0.1278,
            timezone: "Europe/London"
        },
        dateTime2: "1988-03-22T09:15",
        location2: {
            latitude: 48.8566,
            longitude: 2.3522,
            timezone: "Europe/Paris"
        }
    })
});

const data = await response.json();
console.log(JSON.stringify(data, null, 2));
python
import requests

response = requests.post(
    "https://api.astroapi.cloud/api/calc/synastry",
    headers={
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "dateTime1": "1990-06-15T14:30",
        "location1": {
            "latitude": 51.5074,
            "longitude": -0.1278,
            "timezone": "Europe/London"
        },
        "dateTime2": "1988-03-22T09:15",
        "location2": {
            "latitude": 48.8566,
            "longitude": 2.3522,
            "timezone": "Europe/Paris"
        }
    }
)

print(response.json())

Réponse

json
{
  "data": {
    "type": "synastry",
    "attributes": {
      "aspects": [
        {
          "planet1": "sun",
          "chart1": true,
          "planet2": "moon",
          "chart2": true,
          "aspect": "trine",
          "orb": 2.3
        }
      ],
      "houseOverlays": {
        "chart1InChart2": {
          "sun": 7,
          "moon": 4
        },
        "chart2InChart1": {
          "sun": 10,
          "moon": 1
        }
      }
    }
  }
}

Thèmes Composites

Générez un thème composite (par points médians) :

bash
curl -X POST "https://api.astroapi.cloud/api/calc/composite" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "dateTime1": "1990-06-15T14:30",
    "location1": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "dateTime2": "1988-03-22T09:15",
    "location2": {
      "latitude": 48.8566,
      "longitude": 2.3522,
      "timezone": "Europe/Paris"
    },
    "compositeLocation": {
      "latitude": 50.1234,
      "longitude": 1.5678
    }
  }'
javascript
const response = await fetch("https://api.astroapi.cloud/api/calc/composite", {
    method: "POST",
    headers: {
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    body: JSON.stringify({
        dateTime1: "1990-06-15T14:30",
        location1: {
            latitude: 51.5074,
            longitude: -0.1278,
            timezone: "Europe/London"
        },
        dateTime2: "1988-03-22T09:15",
        location2: {
            latitude: 48.8566,
            longitude: 2.3522,
            timezone: "Europe/Paris"
        },
        compositeLocation: {
            latitude: 50.1234,
            longitude: 1.5678
        }
    })
});

const data = await response.json();
console.log(JSON.stringify(data, null, 2));
python
import requests

response = requests.post(
    "https://api.astroapi.cloud/api/calc/composite",
    headers={
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "dateTime1": "1990-06-15T14:30",
        "location1": {
            "latitude": 51.5074,
            "longitude": -0.1278,
            "timezone": "Europe/London"
        },
        "dateTime2": "1988-03-22T09:15",
        "location2": {
            "latitude": 48.8566,
            "longitude": 2.3522,
            "timezone": "Europe/Paris"
        },
        "compositeLocation": {
            "latitude": 50.1234,
            "longitude": 1.5678
        }
    }
)

print(response.json())

Thème de Davison

Calculez un thème relationnel de Davison (point médian espace-temps) :

bash
curl -X POST "https://api.astroapi.cloud/api/calc/davison" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "chart1": { ... },
    "chart2": { ... }
  }'

Score d'Aspects

Obtenez un score de compatibilité basé sur les aspects de synastrie :

bash
curl -X POST "https://api.astroapi.cloud/api/calc/synastry/score" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "chart1": { ... },
    "chart2": { ... },
    "weights": {
      "sun": 10,
      "moon": 10,
      "venus": 8,
      "mars": 7
    }
  }'

AstroAPI Documentation