/v1/parans
API-Key noetig Kartografie Parans (Paranatellonta): Breitengrade, auf denen zwei Koerper gleichzeitig auf zwei Achsen stehen.
Beschreibung
Die Verstaerkungs-Breiten der Astrokartographie: Koerper A auf MC oder IC, Koerper B gleichzeitig auf AC oder DC — geschlossene Loesung tan(φ) = −cos(RA_A − RA_B)/tan(δ_B). Validitaet beruecksichtigt Auf-/Untergangsrichtung. AC×AC u. ae. sind transzendent und bewusst nicht enthalten. Sortiert Nord → Sued.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
birth |
body | object | ja | {datetime, timezone, location}. |
bodies |
body | array | nein | 2..16 Koerper. Default: Sonne..Pluto. |
max_abs_latitude |
body | number | nein | Filter |φ| ≤ Wert (1..89). Default 75. |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"bodies": [
"sun",
"moon",
"mars"
]
}' \
"https://astroapi.services/v1/parans"
<?php
$ch = curl_init("https://astroapi.services/v1/parans");
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, '{"birth":{"datetime":"1987-06-21T04:30:00","timezone":"Europe/Berlin","location":{"latitude":48.137,"longitude":11.575}},"bodies":["sun","moon","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->parans([
'birth' => [
'datetime' => '1987-06-21T04:30:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 48.137,
'longitude' => 11.575,
],
],
'bodies' => [
'sun',
'moon',
'mars',
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/parans', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"bodies": [
"sun",
"moon",
"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.parans({
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"bodies": [
"sun",
"moon",
"mars"
]
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/parans'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"bodies": [
"sun",
"moon",
"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.parans({
'birth': {
'datetime': '1987-06-21T04:30:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 48.137,
'longitude': 11.575,
},
},
'bodies': [
'sun',
'moon',
'mars',
],
})
print(response)