AstroWay/api v2.173.1 · de
alle Systeme in Ordnung
// astrology api · POST /v1/chinese/feng-shui/flying-star

Flying star (Xuan Kong) feng shui API

A facing direction and a construction period produce the full nine-palace flying-star chart: the period star, the mountain star and the facing star in each of the nine sectors, with the element, the nature and the meaning of every one.

Endpunkt
POST /v1/chinese/feng-shui/flying-star
Kosten
10 Credits
Latenz
~70 ms
Stufe
Tier 1
// 01 / Was es berechnet

Flying star (Xuan Kong) feng shui API

The bearing is resolved to one of the 24 mountains, which is the resolution the system actually works at: 15 degrees each, three per sector, and the polarity of the mountain decides the direction the stars fly. From the period number the endpoint places the period star into the centre and flies the remaining eight through the palaces in Luo Shu order. The sitting and facing mountains then give the mountain star and the facing star, each flown forward or backward according to the polarity of the mountain it starts on, which is the rule most implementations get subtly wrong. Every palace comes back with all three stars, their elements, whether each is timely or hostile in the period, and the pair reading that practitioners actually work from.

// 02 / Live-Anfrage

POST/v1/chinese/feng-shui/flying-star

curl -X POST https://api.astroway.info/v1/chinese/feng-shui/flying-star \
  -H "X-Api-Key: aw_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "facing": 180,
    "period": 8
  }'
Antwort (Auszug)
{
  "ok": true,
  "data": {
    "period": { "number": 8, "source": "given" },
    "facing": { "degrees": 180, "mountain": "S2", "chinese": "午", "sector": "S", "polarity": "yin" },
    "sitting": { "mountain": "N2", "chinese": "子", "sector": "N", "degrees": 0 },
    "palaces": [
      {
        "palace": "N",
        "degrees": "337.5-22.5",
        "mountainStar": { "star": 9, "name": "Purple Fire", "element": "Fire", "nature": "auspicious" },
        "periodStar": { "star": 4, "name": "Green Wood", "element": "Wood", "nature": "mixed" },
        "facingStar": { "star": 7, "name": "Red Metal", "element": "Metal", "nature": "inauspicious" },
        "pair": "9-7"
      }
    ]
  }
}
// 03 / Parameter

Parameter

nametypeErforderlich
facing number (degrees) ja Compass bearing the building faces, clockwise from true north. Or send facingMountain as one of the 24 mountains.
period number (1-9) ja Construction period. Not defaulted to the current one: a building occupied in 1998 belongs to period 7, and answering with 9 would be a confident chart for the wrong building.
occupiedDate string (YYYY-MM-DD) nein Alternative to period. The period is derived from the date of occupation.
language string nein Any of 21 codes for the element names.
// 04 / Wann verwenden

Wann verwenden

Use it behind a consultation tool, a property listing feature, an interior-design workflow or an app that annotates a floor plan. The response is pure structure, so you can render it as a nine-square grid, overlay it on a plan, or feed it to an interpretation layer. Pair it with the annual stars endpoint when you need the current year laid over the natal chart of the building, and with the Kua number when the reading has to account for the occupant rather than the building alone.

// 05 / Hinweise

Hinweise

The period is required rather than defaulted, deliberately: silently assuming the current period produces a confident chart for a building that does not exist. The flight direction follows the polarity of the starting mountain, and the tables are pinned against published almanac charts. Star names carry their Chinese characters alongside the English gloss.

Flying star feng shui-API ausprobieren

Hol dir einen Key und mach deinen ersten Aufruf in unter einer Minute.

99,9% SLA · kostenpflichtige Tarife · 30 Tage Status →