/v1/relationship
API-Key noetig Partnerschaft Synastrie, Komposit oder Kombin (Davison) fuer zwei Personen.
Beschreibung
Drei Methoden in einem Endpunkt. "synastry": Kreuz-Aspekte zwischen zwei Radix-Charts. "composite": Mittelpunkt-Horoskop (jeder Planet als Mittelpunkt der beiden Radix-Positionen, Haeuser als Mittelpunkt der Radix-Hauspitzen). "davison" (Alias "kombin"): echtes Horoskop am zeitlichen UND raeumlichen Mittelpunkt beider Geburten — Grosskreis-Mittelpunkt der Erdkoordinaten.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
method |
body | string | ja | "synastry" | "composite" | "davison" (Alias "kombin"). |
person_a |
body | object | ja | { name, birth: { datetime, timezone, location } }. |
person_b |
body | object | ja | { name, birth: { datetime, timezone, location } }. |
options.house_system |
body | string | nein | Haeusersystem (Default: koch). |
options.aspects |
body | object | nein | { orbs, aspect_types, aspects } wie bei /v1/radix. |
options.include_natal_charts |
body | boolean | nein | Nur Synastrie: wenn true, werden beide Radix-Charts mitgeliefert. |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"method": "davison",
"person_a": {
"name": "Anna",
"birth": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
}
},
"person_b": {
"name": "Bernd",
"birth": {
"datetime": "1978-03-08T09:12:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
}
}
}' \
"https://astroapi.services/v1/relationship"
<?php
$ch = curl_init("https://astroapi.services/v1/relationship");
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, '{"method":"davison","person_a":{"name":"Anna","birth":{"datetime":"1980-05-17T14:32:00","timezone":"Europe/Berlin","location":{"latitude":52.52,"longitude":13.405}}},"person_b":{"name":"Bernd","birth":{"datetime":"1978-03-08T09:12:00","timezone":"Europe/Berlin","location":{"latitude":48.137,"longitude":11.575}}}}');
$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->relationship([
'method' => 'davison',
'person_a' => [
'name' => 'Anna',
'birth' => [
'datetime' => '1980-05-17T14:32:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 52.52,
'longitude' => 13.405,
],
],
],
'person_b' => [
'name' => 'Bernd',
'birth' => [
'datetime' => '1978-03-08T09:12:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 48.137,
'longitude' => 11.575,
],
],
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/relationship', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"method": "davison",
"person_a": {
"name": "Anna",
"birth": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
}
},
"person_b": {
"name": "Bernd",
"birth": {
"datetime": "1978-03-08T09:12:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
}
}
}),
});
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.relationship({
"method": "davison",
"person_a": {
"name": "Anna",
"birth": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
}
},
"person_b": {
"name": "Bernd",
"birth": {
"datetime": "1978-03-08T09:12:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
}
}
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/relationship'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"method": "davison",
"person_a": {
"name": "Anna",
"birth": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
}
},
"person_b": {
"name": "Bernd",
"birth": {
"datetime": "1978-03-08T09:12:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
}
}
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.relationship({
'method': 'davison',
'person_a': {
'name': 'Anna',
'birth': {
'datetime': '1980-05-17T14:32:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 52.52,
'longitude': 13.405,
},
},
},
'person_b': {
'name': 'Bernd',
'birth': {
'datetime': '1978-03-08T09:12:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 48.137,
'longitude': 11.575,
},
},
},
})
print(response)