/v1/fixed-stars
API-Key noetig Berechnung Fixsterne: Positionen und Konjunktionen mit Radix-Punkten.
Beschreibung
Liefert ekliptikale Positionen von Fixsternen zu einem Zeitpunkt. Optional: wenn "natal" oder "points" mitgegeben werden, werden Aspekte (Default: nur Konjunktion, Orbis 1°) zu diesen Punkten berechnet. Standardliste: 22 astrologisch bedeutende Sterne (vier Koenigliche, helle Sterne, mythisch relevante).
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
datetime |
body | string | nein | ISO 8601 UTC. Pflicht, wenn "natal" nicht angegeben ist. |
natal |
body | object | nein | { datetime, timezone, location } — liefert Zeitpunkt UND Vergleichspunkte (alle Radix-Planeten + AC + MC). |
points |
body | object | nein | { sun: 25.53, ascendant: 170.79, ... } — expliziter Vergleichs-Punktekatalog. |
stars |
body | array | nein | Namen wie in sefstars.txt (z.B. "Aldebaran", "Regulus", "Algol"). Default: kuratierter Katalog "common". |
aspect_angles |
body | array | nein | Welche Winkel. Default [0] — nur Konjunktionen, so wie klassisch ueblich. |
orb |
body | number | nein | Orb in Grad. Default 1.0. |
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
}
},
"stars": [
"Aldebaran",
"Regulus",
"Algol",
"Antares"
]
}' \
"https://astroapi.services/v1/fixed-stars"
<?php
$ch = curl_init("https://astroapi.services/v1/fixed-stars");
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}},"stars":["Aldebaran","Regulus","Algol","Antares"]}');
$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->fixedStars([
'natal' => [
'datetime' => '1980-05-17T14:32:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 52.52,
'longitude' => 13.405,
],
],
'stars' => [
'Aldebaran',
'Regulus',
'Algol',
'Antares',
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/fixed-stars', {
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
}
},
"stars": [
"Aldebaran",
"Regulus",
"Algol",
"Antares"
]
}),
});
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.fixedStars({
"natal": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"stars": [
"Aldebaran",
"Regulus",
"Algol",
"Antares"
]
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/fixed-stars'
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
}
},
"stars": [
"Aldebaran",
"Regulus",
"Algol",
"Antares"
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.fixed_stars({
'natal': {
'datetime': '1980-05-17T14:32:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 52.52,
'longitude': 13.405,
},
},
'stars': [
'Aldebaran',
'Regulus',
'Algol',
'Antares',
],
})
print(response)