/v1/venus-return
API-Key noetig Berechnung Venus-Return — Convenience-Alias fuer /v1/returns mit planet=venus.
Beschreibung
Identisch zu /v1/returns, der Transitplanet ist auf Venus fixiert. Auch Venus-Returns koennen in Retrograd-Phasen drei Treffer pro Zyklus aufweisen. Body und Antwort identisch zum generischen Endpunkt — siehe /v1/returns.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
natal |
body | object | nein | |
from |
body | string | nein | |
count |
body | integer | nein | |
location |
body | object | nein | |
include |
body | array | nein | |
house_system |
body | string | nein |
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
}
}
}' \
"https://astroapi.services/v1/venus-return"
<?php
$ch = curl_init("https://astroapi.services/v1/venus-return");
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}}}');
$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->venusReturn([
'natal' => [
'datetime' => '1980-05-17T14:32:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 52.52,
'longitude' => 13.405,
],
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/venus-return', {
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
}
}
}),
});
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.venusReturn({
"natal": {
"datetime": "1980-05-17T14:32:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 52.52,
"longitude": 13.405
}
}
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/venus-return'
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
}
}
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.venus_return({
'natal': {
'datetime': '1980-05-17T14:32:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 52.52,
'longitude': 13.405,
},
},
})
print(response)