/v1/radix
API-Key noetig Berechnung Kompletter Radix: Planeten + Haeuser + Aspekte in einer Antwort.
Beschreibung
Der zentrale Radix-Endpunkt. Nimmt Geburtsdaten und Ort entgegen und liefert per "include"-Parameter steuerbar Planetenpositionen, Haeusersystem und Aspekte. Default: alle drei.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
birth.datetime |
body | string | ja | ISO 8601, z.B. "1980-05-17T14:32:00". |
birth.timezone |
body | string | nein | IANA-Zone. Pflicht, wenn datetime keinen Offset enthaelt. |
birth.location.latitude |
body | number | ja | Dezimalgrad. |
birth.location.longitude |
body | number | ja | Dezimalgrad. |
options.house_system |
body | string | nein | Default "koch". Alle Werte siehe Doku "Haeusersysteme". |
options.include |
body | array | nein | Teilmenge von ["planets","houses","aspects"]. Default alle drei. |
options.aspects.orbs |
body | mixed | nein | Orben-Konfiguration wie bei /v1/aspects. |
options.aspects.aspect_types |
body | array | nein | Welche Kategorien. |
options.aspects.include_axes |
body | boolean | nein | AC und MC als Aspekt-Punkte? Default true. |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"birth": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"options": {
"house_system": "koch",
"aspects": {
"orbs": "classic",
"aspect_types": [
"major"
]
}
}
}' \
"https://astroapi.services/v1/radix"
<?php
$ch = curl_init("https://astroapi.services/v1/radix");
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, '{"birth":{"datetime":"1980-05-17T14:32:00","timezone":"Europe/Berlin","location":{"latitude":52.52,"longitude":13.405}},"options":{"house_system":"koch","aspects":{"orbs":"classic","aspect_types":["major"]}}}');
$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->radix([
'birth' => [
'datetime' => '1980-05-17T14:32:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 52.52,
'longitude' => 13.405,
],
],
'options' => [
'house_system' => 'koch',
'aspects' => [
'orbs' => 'classic',
'aspect_types' => [
'major',
],
],
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/radix', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"birth": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"options": {
"house_system": "koch",
"aspects": {
"orbs": "classic",
"aspect_types": [
"major"
]
}
}
}),
});
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.radix({
"birth": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"options": {
"house_system": "koch",
"aspects": {
"orbs": "classic",
"aspect_types": [
"major"
]
}
}
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/radix'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"birth": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"options": {
"house_system": "koch",
"aspects": {
"orbs": "classic",
"aspect_types": [
"major"
]
}
}
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.radix({
'birth': {
'datetime': '1980-05-17T14:32:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 52.52,
'longitude': 13.405,
},
},
'options': {
'house_system': 'koch',
'aspects': {
'orbs': 'classic',
'aspect_types': [
'major',
],
},
},
})
print(response)