/v1/lots
API-Key noetig Berechnung Hellenistische Lots (arabische Punkte): Fortune, Spirit, Eros, Necessity, Courage, Victory, Nemesis, Basis u.a.
Beschreibung
Berechnet die klassischen Lots nach der Formel A + B − C (mod 360) mit automatischer Day/Night-Regel (Tag-Horoskop = Sonne ueber dem Horizont). Einige Lots referenzieren andere (z.B. Eros nutzt Spirit) — wird intern aufgeloest. Katalog in config/lots.json, editierbar fuer eigene Punkte.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
natal |
body | object | nein | { datetime, timezone, location } — API rechnet Sonne, Mond, AC, alle Radix-Planeten. |
positions |
body | object | nein | Vorberechnete Laengen. Pflicht: sun, moon, ascendant. Fuer bestimmte Lots zusaetzlich venus, mars, jupiter, saturn, mercury. |
lots |
body | array | nein | Liste der gewuenschten Lots ("fortune","spirit","eros",...). Default: alle aus dem Katalog. |
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
}
},
"lots": [
"fortune",
"spirit",
"eros"
]
}' \
"https://astroapi.services/v1/lots"
<?php
$ch = curl_init("https://astroapi.services/v1/lots");
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}},"lots":["fortune","spirit","eros"]}');
$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->lots([
'natal' => [
'datetime' => '1980-05-17T14:32:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 52.52,
'longitude' => 13.405,
],
],
'lots' => [
'fortune',
'spirit',
'eros',
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/lots', {
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
}
},
"lots": [
"fortune",
"spirit",
"eros"
]
}),
});
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.lots({
"natal": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
},
"lots": [
"fortune",
"spirit",
"eros"
]
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/lots'
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
}
},
"lots": [
"fortune",
"spirit",
"eros"
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.lots({
'natal': {
'datetime': '1980-05-17T14:32:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 52.52,
'longitude': 13.405,
},
},
'lots': [
'fortune',
'spirit',
'eros',
],
})
print(response)