/v1/patterns
API-Key noetig Berechnung Aspekt-Pattern-Erkennung (Grand Trine, T-Square, Yod, Stellium etc.).
Beschreibung
Erkennt acht klassische Aspekt-Patterns in einer Konstellation: stellium (3+ Bodies im selben Sign), grand_trine (3 Bodies im Trigon), t_square (Opposition + Apex im Quadrat), yod (Sextil-Basis + Apex im Quincunx), grand_cross (4 Bodies, 2 Oppositionen + 4 Quadrate), kite (Grand Trine + 4. Body in Opposition zu einem und Sextilen zu beiden anderen), mystic_rectangle (4 Bodies, 2 Oppositionen + 2 Sextile + 2 Trine), grand_sextile (6 Bodies in 60°-Hexagram). Default-Bodies: 14 (10 Planeten + Knoten mean+true + Lilith mean + Chiron). Default-Orbs pro Aspekt: Konjunktion 8°, Sextil/Quadrat/Trigon 6°, Quincunx 3°, Opposition 8°. Mit `orb` ueberschreibt man alle gleichmaessig (1..15°).
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
datetime |
body | string | ja | ISO 8601 UTC. |
bodies |
body | array | nein | Liste von Body-Namen. Default 14 Standard-Bodies. Mindestens 3. |
orb |
body | number | nein | Einheitlicher Orb in Grad fuer alle Aspekte (Range 1..15). Default: per-Aspekt-Orbs. |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"datetime": "2026-04-20T12:00:00Z"
}' \
"https://astroapi.services/v1/patterns"
<?php
$ch = curl_init("https://astroapi.services/v1/patterns");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: ak_test_<DEIN_KEY>", "Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"datetime":"2026-04-20T12:00:00Z"}');
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);
<?php
require 'astroapi-client.php';
$api = new AstroApiClient('ak_test_<DEIN_KEY>');
$response = $api->patterns([
'datetime' => '2026-04-20T12:00:00Z',
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/patterns', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"datetime": "2026-04-20T12:00:00Z"
}),
});
const data = await response.json();
console.log(data);
import { AstroApiClient } from './astroapi-client.js';
const api = new AstroApiClient('ak_test_<DEIN_KEY>');
const response = await api.patterns({
"datetime": "2026-04-20T12:00:00Z"
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/patterns'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"datetime": "2026-04-20T12:00:00Z"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.patterns({
'datetime': '2026-04-20T12:00:00Z',
})
print(response)