/v1/vedic
API-Key noetig Berechnung Vedische Module: Nakshatras, Vimshottari-Dashas und Vargas (Teilhoroskope) auf siderischem Fundament.
Beschreibung
Siderische Positionen der Grahas (Sonne..Saturn + Rahu = mittlerer Knoten, Ketu = Rahu+180°) mit Nakshatra/Pada/Herrscher; Vimshottari-Mahadashas ab Geburt (120-Jahres-Zyklus, Balance der ersten Dasha, optional Antardashas) und Vargas nach Parashari-Regeln: D1 Rasi, D2 Hora, D3 Drekkana, D7 Saptamsa, D9 Navamsa, D10 Dasamsa, D12 Dwadasamsa. Jahreslaenge der Dashas: 365.25 Tage.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
birth |
body | object | ja | {datetime, timezone, location}. |
ayanamsa |
body | string | nein | Default "lahiri" (indischer Standard). Alle SE_SIDM-Namen erlaubt. |
include |
body | array | nein | Teilmenge von ["positions","dashas","vargas"]. Default alle. |
vargas |
body | array | nein | Teilmenge von D1,D2,D3,D7,D9,D10,D12. Default ["D1","D9"]. |
dasha_levels |
body | integer | nein | 1 (Default) oder 2 (mit Antardashas; vorgeburtliche werden beschnitten). |
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
}
},
"vargas": [
"D9"
]
}' \
"https://astroapi.services/v1/vedic"
<?php
$ch = curl_init("https://astroapi.services/v1/vedic");
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}},"vargas":["D9"]}');
$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->vedic([
'birth' => [
'datetime' => '1987-06-21T04:30:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 48.137,
'longitude' => 11.575,
],
],
'vargas' => [
'D9',
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/vedic', {
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
}
},
"vargas": [
"D9"
]
}),
});
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.vedic({
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"vargas": [
"D9"
]
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/vedic'
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
}
},
"vargas": [
"D9"
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.vedic({
'birth': {
'datetime': '1987-06-21T04:30:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 48.137,
'longitude': 11.575,
},
},
'vargas': [
'D9',
],
})
print(response)