/v1/gauquelin-sectors
API-Key noetig Berechnung Die 36 Gauquelin-Sektoren entlang des Tagesbogens (Forschungs-Klassiker, Mars-Effekt).
Beschreibung
Sektor-Position 1..36.99 jedes Koerpers entlang seines taeglichen Laufs: Sektor 1 beginnt am Aufgang, die Kulmination liegt bei Sektor 10, der Untergang bei Sektor 19 — gezaehlt gegen die taegliche Bewegung. Grundlage von Michel Gauquelins Statistik-Studien (Mars in Sektor 1/4-Zonen bei Sportlern). "method" 0/1 rechnet ueber Laenge (mit/ohne Breite), 2/3 ueber Auf-/Untergangszeiten (mit/ohne Refraktion).
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
datetime |
body | string | ja | ISO 8601 UTC. |
location |
body | object | ja | {latitude, longitude, altitude?}. |
bodies |
body | array | nein | Default: Sonne..Pluto. |
method |
body | integer | nein | 0 (Default) .. 3, siehe Beschreibung. |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"datetime": "1987-06-21T04:30:00Z",
"location": {
"latitude": 48.137,
"longitude": 11.575
},
"bodies": [
"mars"
]
}' \
"https://astroapi.services/v1/gauquelin-sectors"
<?php
$ch = curl_init("https://astroapi.services/v1/gauquelin-sectors");
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, '{"datetime":"1987-06-21T04:30:00Z","location":{"latitude":48.137,"longitude":11.575},"bodies":["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->gauquelinSectors([
'datetime' => '1987-06-21T04:30:00Z',
'location' => [
'latitude' => 48.137,
'longitude' => 11.575,
],
'bodies' => [
'mars',
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/gauquelin-sectors', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"datetime": "1987-06-21T04:30:00Z",
"location": {
"latitude": 48.137,
"longitude": 11.575
},
"bodies": [
"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.gauquelinSectors({
"datetime": "1987-06-21T04:30:00Z",
"location": {
"latitude": 48.137,
"longitude": 11.575
},
"bodies": [
"mars"
]
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/gauquelin-sectors'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"datetime": "1987-06-21T04:30:00Z",
"location": {
"latitude": 48.137,
"longitude": 11.575
},
"bodies": [
"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.gauquelin_sectors({
'datetime': '1987-06-21T04:30:00Z',
'location': {
'latitude': 48.137,
'longitude': 11.575,
},
'bodies': [
'mars',
],
})
print(response)