/v1/void-of-course
API-Key noetig Berechnung Mond void-of-course-Phasen im Window.
Beschreibung
Findet alle Mond-VOC-Phasen im Zeitraum: vom letzten exakten ptolemaeischen Aspekt (Konjunktion 0°, Sextil 60°, Quadrat 90°, Trigon 120°, Opposition 180°) zu einem klassischen Planeten bis zum naechsten Mond-Sign-Ingress. Klassische Definition (Default): Sonne + Merkur..Saturn als Aspekt-Bezugsplaneten. Mit `include_outer_planets: true` werden zusaetzlich Uranus, Neptun und Pluto einbezogen (moderne Definition). Maximales Fenster 90 Tage (~30-40 VOCs).
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
start |
body | string | ja | ISO 8601 UTC, Beginn des Suchfensters. |
end |
body | string | ja | ISO 8601 UTC, Ende. Maximal 90 Tage nach "start". |
step_days |
body | number | nein | Abtast-Schrittweite. Default 0.05 (~1.2h), Range 0.01-0.5. Kleiner waehlen bei sehr engen VOC-Definitionen. |
include_outer_planets |
body | boolean | nein | true → Uranus/Neptun/Pluto in Aspekt-Pruefung einbeziehen. Default false (klassisch). |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"start": "2026-04-01T00:00:00Z",
"end": "2026-05-01T00:00:00Z"
}' \
"https://astroapi.services/v1/void-of-course"
<?php
$ch = curl_init("https://astroapi.services/v1/void-of-course");
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, '{"start":"2026-04-01T00:00:00Z","end":"2026-05-01T00: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->voidOfCourse([
'start' => '2026-04-01T00:00:00Z',
'end' => '2026-05-01T00:00:00Z',
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/void-of-course', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"start": "2026-04-01T00:00:00Z",
"end": "2026-05-01T00: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.voidOfCourse({
"start": "2026-04-01T00:00:00Z",
"end": "2026-05-01T00:00:00Z"
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/void-of-course'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"start": "2026-04-01T00:00:00Z",
"end": "2026-05-01T00: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.void_of_course({
'start': '2026-04-01T00:00:00Z',
'end': '2026-05-01T00:00:00Z',
})
print(response)