Skip to content

Transits

Calculez les transits planétaires et leurs aspects par rapport à un thème natal sur une période de temps spécifiée.

Calculer des Transits

Calculez les transits pour une plage de dates :

bash
curl -X POST "https://api.astroapi.cloud/api/calc/transit" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "birthDate": "1990-06-15T14:30",
    "birthLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "transitDateStart": "2024-01-01T00:00",
    "transitDateEnd": "2024-01-31T23:59",
    "transitLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    }
  }'
javascript
const response = await fetch("https://api.astroapi.cloud/api/calc/transit", {
    method: "POST",
    headers: {
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    body: JSON.stringify({
        birthDate: "1990-06-15T14:30",
        birthLocation: {
            latitude: 51.5074,
            longitude: -0.1278,
            timezone: "Europe/London"
        },
        transitDateStart: "2024-01-01T00:00",
        transitDateEnd: "2024-01-31T23:59",
        transitLocation: {
            latitude: 51.5074,
            longitude: -0.1278,
            timezone: "Europe/London"
        }
    })
});

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

response = requests.post(
    "https://api.astroapi.cloud/api/calc/transit",
    headers={
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "birthDate": "1990-06-15T14:30",
        "birthLocation": {
            "latitude": 51.5074,
            "longitude": -0.1278,
            "timezone": "Europe/London"
        },
        "transitDateStart": "2024-01-01T00:00",
        "transitDateEnd": "2024-01-31T23:59",
        "transitLocation": {
            "latitude": 51.5074,
            "longitude": -0.1278,
            "timezone": "Europe/London"
        }
    }
)

print(response.json())

Paramètres

ParamètreTypeRequisDescription
birthDatestringOuiDate/heure de naissance au format YYYY-MM-DDTHH:mm
birthLocationobjectOuiLieu de naissance avec latitude, longitude et fuseau horaire
transitDateStartstringOuiDébut de la période de transit au format YYYY-MM-DDTHH:mm
transitDateEndstringOuiFin de la période de transit au format YYYY-MM-DDTHH:mm
transitLocationobjectOuiLieu de transit avec latitude, longitude et fuseau horaire
houseSystemstringNonSystème de maisons (défaut : "placidus")
pointsarrayNonPoints célestes à calculer
orbsobjectNonValeurs d'orbe personnalisées par type d'aspect
languagestringNonCode de langue pour le contenu textuel (défaut : "en")
includeTextbooleanNonInclure le texte d'interprétation (défaut : false)
includeReadableEntitiesbooleanNonInclure les titres d'entités lisibles par l'humain (défaut : false)

Objet de Localisation

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

Réponse

La réponse inclut les passages de transit (quand les planètes entrent/sortent des signes ou maisons), les positions de maisons de transit, les aspects entre les planètes de transit et natales, et les URLs des thèmes.

json
{
  "data": {
    "crossings": [...],
    "transitHouses": [...],
    "aspects": [
      {
        "point1": "saturn",
        "point2": "sun",
        "aspect": "conjunction",
        "orb": 1.2,
        "applying": true
      }
    ],
    "charts": {
      "transit": {
        "title": "Transit Chart (Bi-wheel)",
        "url": "..."
      },
      "natal": {
        "title": "Natal Chart",
        "url": "..."
      }
    },
    "natalPoints": [...],
    "natalHouses": [...],
    "transitPoints": [...]
  }
}

Orbes Personnalisés

Spécifiez des valeurs d'orbe personnalisées pour différents types d'aspects :

bash
curl -X POST "https://api.astroapi.cloud/api/calc/transit" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "birthDate": "1990-06-15T14:30",
    "birthLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "transitDateStart": "2024-01-01T00:00",
    "transitDateEnd": "2024-01-31T23:59",
    "transitLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "orbs": {
      "conjunction": 3,
      "opposition": 3,
      "trine": 2,
      "square": 2
    }
  }'

Avec Texte d'Interprétation

Incluez le texte d'interprétation avec vos calculs de transits :

bash
curl -X POST "https://api.astroapi.cloud/api/calc/transit" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "birthDate": "1990-06-15T14:30",
    "birthLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "transitDateStart": "2024-01-15T00:00",
    "transitDateEnd": "2024-01-15T23:59",
    "transitLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "includeText": true,
    "language": "en"
  }'

Export iCal

Exportez les événements de transit sous forme de fichier iCal (.ics) pouvant être importé dans des applications de calendrier comme Google Agenda, Apple Calendar ou Outlook.

POST /api/calc/transit/ical

bash
curl -X POST "https://api.astroapi.cloud/api/calc/transit/ical" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "birthDate": "1990-06-15T14:30",
    "birthLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "transitDateStart": "2024-01-01T00:00",
    "transitDateEnd": "2024-03-31T23:59",
    "transitLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    }
  }' --output transits.ics

La réponse est un fichier text/calendar avec Content-Disposition: attachment; filename="transits.ics".

Paramètres

L'export iCal accepte les mêmes paramètres que l'endpoint de transit standard, plus :

ParamètreTypeRequisDescription
aspectsarrayNonFiltrer par types d'aspects (ex. ["conjunction", "trine"])

TIP

Importez le fichier .ics téléchargé dans votre application de calendrier pour voir les événements de transit sous forme d'entrées de calendrier avec des descriptions de chaque aspect.

AstroAPI Documentation