/v1/stations
API-Key noetig Berechnung Stationen (Wendepunkte) der Planeten im Window.
Beschreibung
Findet alle Punkte, an denen ein Planet die Bewegungsrichtung wechselt: kind="station_retrograde" wenn longitude_speed von positiv nach negativ kreuzt (Beginn der Rueckwaertsphase), kind="station_direct" beim umgekehrten Wechsel. Default-Bodies: 8 Planeten (Merkur, Venus, Mars, Jupiter, Saturn, Uranus, Neptun, Pluto). Sonne und Mond haben keine Stationen — sie werden auch bei expliziter Angabe still ignoriert. Maximales Fenster: 365 Tage.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
start |
body | string | ja | ISO 8601 UTC, Beginn des Fensters. |
end |
body | string | ja | ISO 8601 UTC, Ende des Fensters. Maximal 365 Tage nach "start". |
bodies |
body | array | nein | Liste von Body-Namen. Default: ["mercury","venus","mars","jupiter","saturn","uranus","neptune","pluto"]. Bodies ohne Stationen (sun, moon, Knoten, Lilith) werden gefiltert. |
step_days |
body | number | nein | Abtast-Schrittweite. Default 1.0, Range 0.1-7.0. |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"start": "2026-01-01T00:00:00Z",
"end": "2026-12-31T23:59:59Z",
"bodies": [
"mercury",
"mars"
]
}' \
"https://astroapi.services/v1/stations"
<?php
$ch = curl_init("https://astroapi.services/v1/stations");
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-01-01T00:00:00Z","end":"2026-12-31T23:59:59Z","bodies":["mercury","mars"]}');
$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->stations([
'start' => '2026-01-01T00:00:00Z',
'end' => '2026-12-31T23:59:59Z',
'bodies' => [
'mercury',
'mars',
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/stations', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"start": "2026-01-01T00:00:00Z",
"end": "2026-12-31T23:59:59Z",
"bodies": [
"mercury",
"mars"
]
}),
});
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.stations({
"start": "2026-01-01T00:00:00Z",
"end": "2026-12-31T23:59:59Z",
"bodies": [
"mercury",
"mars"
]
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/stations'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"start": "2026-01-01T00:00:00Z",
"end": "2026-12-31T23:59:59Z",
"bodies": [
"mercury",
"mars"
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.stations({
'start': '2026-01-01T00:00:00Z',
'end': '2026-12-31T23:59:59Z',
'bodies': [
'mercury',
'mars',
],
})
print(response)