/v1/midpoints
API-Key noetig Berechnung Halbsummen-Analyse nach Ebertin. Liste, aktivierte Halbsummen und Wurzelbaum.
Beschreibung
Berechnet alle Halbsummen fuer eine Positionsliste (fuer n Punkte entstehen n*(n-1)/2 Halbsummen) und identifiziert, welche dritten Punkte mit 8.-Harmonie-Aspekten (0°, 45°, 90°, 135°, 180°) in engem Orb (Default 1.5°) auf diesen Halbsummen stehen. Drei Sichten: flache Liste, aktivierte Halbsummen und Baumstruktur pro Punkt.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
natal |
body | object | nein | { datetime, timezone, location } — API berechnet Radix-Positionen und Haeuser (AC+MC als Punkte einbezogen). |
positions |
body | object | nein | { sun: 25.53, moon: 358.79, ... } — direkt Laengen uebergeben. |
points |
body | array | nein | Nur diese Punkte einbeziehen. Default: alle vorhandenen. |
aspect_angles |
body | array | nein | Welche Winkel-Ideale. Default: [0,45,90,135,180] (Ebertin 8.-Harmonie). |
orb |
body | number | nein | Orb in Grad. Default 1.5. |
include |
body | array | nein | Teilmenge von ["list","activated","tree"]. Default: alle drei. |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"natal": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"orb": 1
}' \
"https://astroapi.services/v1/midpoints"
<?php
$ch = curl_init("https://astroapi.services/v1/midpoints");
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, '{"natal":{"datetime":"1980-05-17T14:32:00","timezone":"Europe/Berlin","location":{"latitude":52.52,"longitude":13.405}},"orb":1}');
$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->midpoints([
'natal' => [
'datetime' => '1980-05-17T14:32:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 52.52,
'longitude' => 13.405,
],
],
'orb' => 1,
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/midpoints', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"natal": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"orb": 1
}),
});
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.midpoints({
"natal": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"orb": 1
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/midpoints'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"natal": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"orb": 1
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.midpoints({
'natal': {
'datetime': '1980-05-17T14:32:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 52.52,
'longitude': 13.405,
},
},
'orb': 1,
})
print(response)